Hi there. I have an ASP.NET / C# project that I'm working on. I have the following value: "Sony-12345-Florida-Miami"
I have used the following code to split it up and it has worked beautifully:
string strMystring = DropDownList1.SelectedValue;
var parts = strMyString.Split('-');
I then use parts[0] for Sony, parts[1] for 12345, etc.
However, the issue is that I need to be able to convert parts[1] to an int value. Can someone please assist?