whu do u do

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

i have a string variable for company names. one of the names has an & in it.
i'm getting undesired results, how would you normally handle this?

thanks,
rodchar
 
rodchar said:
i have a string variable for company names. one of the names has an & in
it.
i'm getting undesired results, how would you normally handle this?

Where do you get "undesired results"? If you are displaying the name in a
label, you may want to set its 'UseMnemonic' property to 'False'.
 
well, now that I think about it I might be in the wrong forum because my
example is when a user clicks a link and redirects to the next webform. in
the response.redirect("default.aspx?id=" & value) where value would contain
the company with the ampersand in it. and the only thing that gets put into
the query string is everything before the ampersand.
 
Rodchar,
well, now that I think about it I might be in the wrong forum because my
example is when a user clicks a link and redirects to the next webform. in
the response.redirect("default.aspx?id=" & value) where value would
contain
the company with the ampersand in it. and the only thing that gets put
into
the query string is everything before the ampersand.

Not the wrong forum, you did not described the problem well. Herfried (and
others) would have given you directly this answer when you had told it as
now.

urlencode

http://msdn.microsoft.com/library/d...rfsystemwebhttputilityclassurlencodetopic.asp

I hope this helps,

Cor
 

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

Similar Threads

deploy win2000 server 2
from db to textbox 10
string formatting 5
can't retrieve field 1
Part2 csv to xml 2
how to: contents of cd 2
sb to text 14
property name 4

Back
Top