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
Problems when running VB.NET app as a scheduled task
Making custom PowerPoint template the default for all users
hide in form closing....can not shut down
Need to migrate off NT4 domain where in addition to NT4 server there are two 2003 servers and an SBS 2003 server on the network
Code retriving duplicated numbers.
How can we display employee contact photos in the Office Communicator contact card
Access Secruity.
How do I extract all the Windows XP and Internet Explorer passwords?
Looking for a control to visibly show capacity of components
how to calculate buisness day : hours : including saturdays and excluding public holidays ,lunch break and sunday