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
Convert Hex to Dec from mscomm
Windows 2008 R2 cannot resolve SIDs
Microsoft Great Plains Dynamics 10.0 Trial Download???
2007 - Text fields imported from Excel have a format property of '@'
SBS 2008 slow internet browsing
Multiple XAP files in same clientbin?
Access - SQL Trim Inner Join
How do I embed video in word document?
SQL Problem: Property Owner is not available for Database '[databasename]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.
"Welcome System Account" when logging into SharePoint sites