# in query string......

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
 
K

Ken Cox [Microsoft MVP]

The # will be "eaten" by the browser which assumes it is a reference to a
bookmark.
 
W

Wilson Smith

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
 
D

Darrel

The # will be "eaten" by the browser which assumes it is a reference to a
bookmark.

Or, more specifically, the name and/or ID of an anchor tag.

-Darrel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,786
Messages
2,569,626
Members
45,328
Latest member
66Teonna9

Latest Threads

Top