Trying to figure out what the syntax is to say that I'll except any result of a query value in a string. In the code below, for the first case statement, I want any number returned for "paging=" part of the url to work for that case statement.
Thanks!
Thanks!
Code:
if((Request.ServerVariables["QUERY_STRING"] != null))
{
switch(Request.ServerVariables["QUERY_STRING"])
{
case "Paging=WHAT DO I PUT HERE?":
lnkto.NavigateUrl ="http://dev.xxxxx.com/TitleList.aspx?searchType=" +ms.SearchType.ToString() + "&categoryid=" + ms.SearchCategoryID.ToString() + "&searchText=&CategoryPrefer=tv&category=All";
lblto.Text = "View It worked Content";
break;
case "searchType=2&searchText=&CategoryID=":
lnkto.NavigateUrl = "http://dev.xxxxx.com/TitleList.aspx?searchType=2&CategoryPrefer=movies&searchText=&category=All";
lblto.Text = "View All Movies";
break;
default: lnkto.NavigateUrl ="http://dev.xxxxx.com/TitleList.aspx?searchType=4&searchText=&CategoryPrefer=tv&category=All";
lblto.Text = "View All Content";
break;
}
}
Comment