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
How to Take ownership of folder and all subdirectories and files?
How to tell if Windows server 2008 is in Native mode
Using Server.Mappath to get a file from a virtual directory
What is the MS Access 2007 version of this code?
Excel 2007 Worksheet with Counter
Backup and restore of Win2k Server to a different machine
Format the Expression with Hyphen
Error "windows cannot access the specified device path, or file. you may not have the appropriate permissions to access them"
Where and how can i use silent switches for a MSI file in the group policy.
sql server login