By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,283 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,283 IT Pros & Developers. It's quick & easy.

whu do u do

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
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'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
It's an input output text field a user can modify.

"Herfried K. Wagner [MVP]" wrote:
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
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'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
> 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'.


It's an input output text field a user can modify.


Well, what exactly doesn't work?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

P: n/a
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.
"Herfried K. Wagner [MVP]" wrote:
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
> 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'.


It's an input output text field a user can modify.


Well, what exactly doesn't work?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

P: n/a
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/de...ncodetopic.asp

I hope this helps,

Cor
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.