且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

访问单独去除属性的字符串

更新时间:2023-02-23 08:53:37

如果我已经阅读了您的正确发出,并且连接的字符串保存在
nav2.Value,那么您只需要根据使用的串联值进行拆分即可.

If I have read your issue correctly and the concatenated strings are held in
nav2.Value then you just need to do a split based on whatever concatenation value you have used

char seperator = '_'; // whatever you use to indicate the concatenation
string[] items = nav2.Value.Split(seperator);

//you should then have the values stored in
items[0]
items[1]
items[2]



您可以通过GetAttribute方法访问属性值吗?
nav2.GetAttribute("FirstName","URI")
Hi
You can access attribute values through GetAttribute method right?
nav2.GetAttribute("FirstName", "URI")