query string issue
-
Hi all, I have a html tag. I'm passing parameters, such as page.aspx?uid=122&name=Ali when it goes to the next page using the link, it works fine in the code behind page. I can use Request["name"] or Request["uid"] but in the aspx page I can't use it. Iniside the generated html of the aspx page, it shows the link as page.aspx?uid=122&name=Ali. I believe the "amp;" is the problem since its the html code for ampersand sign. I'm not sure. Anybody came accross to this problem before? Ali
-
Hi all, I have a html tag. I'm passing parameters, such as page.aspx?uid=122&name=Ali when it goes to the next page using the link, it works fine in the code behind page. I can use Request["name"] or Request["uid"] but in the aspx page I can't use it. Iniside the generated html of the aspx page, it shows the link as page.aspx?uid=122&name=Ali. I believe the "amp;" is the problem since its the html code for ampersand sign. I'm not sure. Anybody came accross to this problem before? Ali
AliHaider wrote: but in the aspx page I can't use it Could you explain how you are trying to use it? AliHaider wrote: I believe the "amp;" is the problem since its the html code for ampersand sign. I'm not sure. Did you by chance use a Server.HtmlEncode on the line? Depending on usage here, you may also be opening yourself to script attacks by trying to solve the issue. Would be able to give more advice if you could post a code snippet. Rocky <>< www.HintsAndTips.com - Includes Developer Tips www.MyQuickPoll.com - Now with Recent Poll List