Microsoft
Software
Hardware
Network
Question : To get url query string value
THis is the url i ve...and my cid value will change , Wat i need is .
i need to assign that respective cid value to all the links here
http://localhost/home.aspx
?cid=29
And also assign cid to a label control .....
Code Snippet:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22:
Open in New Window
Select All
Answer : To get url query string value
you can try:
%>">
then in code behind:
public string getQueryString(string qname)
{
if (Request.QueryString[qname
] == null) {
return "";
} else {
return Request.QueryString[qname]
.ToString(
);
}
}
Random Solutions
Remote Desktop - Prevent/Restrict remote log off
Cast from type 'TimeSpan' to type 'String' is not valid.
Copy From One Line to the Next
using Access to create email message bounces back if user changes message body
Search a word in a folder
How do you secure a C# Web Service
Selecting and Viewing Range of Dates by Month in Access Query
What does Crawling Full status mean?
changing CMD prompt window properties in batch
cannot start ccmsetup service error 1053 sccm