Hi nauna,
Refer below example.
C#
protected void Page_Load(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Request.QueryString["Test"]))
{
string str1 = "", str2 = "";
str1 = Request.QueryString["Test"].Split('-')[0];
if (Request.QueryString["Test"].Split('-').Length > 1)
{
str2 = Request.QueryString["Test"].Split('-')[1];
}
}
}
VB.Net
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not String.IsNullOrEmpty(Request.QueryString("Test")) Then
Dim str1 As String, str2 As String
str1 = Request.QueryString("Test").Split("-"c)(0)
If Request.QueryString("Test").Split("-"c).Length > 1 Then
str2 = Request.QueryString("Test").Split("-"c)(1)
End If
End If
End Sub