# in query string......

  • Thread starter Thread starter Wilson Smith
  • Start date Start date
W

Wilson Smith

strMyMsg = Request.QueryString("MyString")

In the above query MyString is suppose to have "Test Data # 123"

It appears that the "#" sign and the data after that is not getting
populated in strMyMsg.

Is it not possible to pass "#" as query string data?

I am using .Net Frame work 1.1.

Thanks,

Will
 
The # will be "eaten" by the browser which assumes it is a reference to a
bookmark.
 
I have code like this.

strURL="frmMyPage.aspx?CUST_ID=PIN#456"

Reponse.Redirect(strURL)



In the frmMyPage.aspx page I am using

strCustNo = Request.QueryString("CUST_ID")

How to use the below code in the above case?

Thank you very much for the reply.

Will
 
Back
Top