|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
html text encoding problemI get a html text encoding issue when I assign the NavigateUrl to a
HyperLink web control, e.g. HyperLink.NavigateUrl = "http://www.xxx.com/yyy.aspx?A=1&B=2&C=3" When I view source from browser, the rendered html text are as below <A herf=http://www.xxx.com/yyy.aspx?A=1&B=2&C=3 ></a> The link works but is there is any way to change the href string to the original one? This is exactly what I would expect to see from the source view. So whats
the issue ? BTW. This was a pretty poor example, as when you click on the link it takes you to a dodgy s*x site. Please be more careful when putting links into your questions. G Show quoteHide quote "RedHair" <redhair@u.s.a> wrote in message news:%23SgC5GgNHHA.4720@TK2MSFTNGP03.phx.gbl... >I get a html text encoding issue when I assign the NavigateUrl to a >HyperLink web control, > e.g. HyperLink.NavigateUrl = "http://www.xxx.com/yyy.aspx?A=1&B=2&C=3" > When I view source from browser, the rendered html text are as below > > <A herf=http://www.xxx.com/yyy.aspx?A=1&B=2&C=3 ></a> > > The link works but is there is any way to change the href string to the > original one? > I would left this unchanged as this is the recommended way to encode
ampersands in URLs. Note that this doesn't change anything as this is just a way to write correctly & in *HTML* that is the link received by the web server is the same in both cases.... See : http://www.htmlhelp.com/tools/validator/problems.html.en#amp for details... Patrice "RedHair" <redhair@u.s.a> a écrit dans le message de news: %23SgC5GgNHHA.4***@TK2MSFTNGP03.phx.gbl...Show quoteHide quote >I get a html text encoding issue when I assign the NavigateUrl to a >HyperLink web control, > e.g. HyperLink.NavigateUrl = "http://www.xxx.com/yyy.aspx?A=1&B=2&C=3" > When I view source from browser, the rendered html text are as below > > <A herf=http://www.xxx.com/yyy.aspx?A=1&B=2&C=3 ></a> > > The link works but is there is any way to change the href string to the > original one? > Hello
To formalize the discussion - can you change the date on your computer please? Your question is always on the top till 12-th February :) BR Dark Show quoteHide quote "RedHair" <redhair@u.s.a> wrote in message news:%23SgC5GgNHHA.4720@TK2MSFTNGP03.phx.gbl... >I get a html text encoding issue when I assign the NavigateUrl to a >HyperLink web control, > e.g. HyperLink.NavigateUrl = "http://www.xxx.com/yyy.aspx?A=1&B=2&C=3" > When I view source from browser, the rendered html text are as below > > <A herf=http://www.xxx.com/yyy.aspx?A=1&B=2&C=3 ></a> > > The link works but is there is any way to change the href string to the > original one? > You can just delete the message. At least in the Outlook Express.
-- Show quoteHide quoteEliyahu Goldin, Software Developer & Consultant Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net "Dariusz Tomon" <d.to***@mazars.pl> wrote in message news:e3K0KhXOHHA.4172@TK2MSFTNGP03.phx.gbl... > Hello > > To formalize the discussion - can you change the date on your computer > please? > Your question is always on the top till 12-th February :) > > BR > > Dark > > "RedHair" <redhair@u.s.a> wrote in message > news:%23SgC5GgNHHA.4720@TK2MSFTNGP03.phx.gbl... >>I get a html text encoding issue when I assign the NavigateUrl to a >>HyperLink web control, >> e.g. HyperLink.NavigateUrl = "http://www.xxx.com/yyy.aspx?A=1&B=2&C=3" >> When I view source from browser, the rendered html text are as below >> >> <A herf=http://www.xxx.com/yyy.aspx?A=1&B=2&C=3 ></a> >> >> The link works but is there is any way to change the href string to the >> original one? >> > > But why should we have to? Future posting is a bad "no no".
Show quoteHide quote "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldD***@mMvVpPsS.org> wrote in message news:%23cV7OoXOHHA.4376@TK2MSFTNGP02.phx.gbl... > You can just delete the message. At least in the Outlook Express. > > -- > Eliyahu Goldin, > Software Developer & Consultant > Microsoft MVP [ASP.NET] > http://msmvps.com/blogs/egoldin > http://usableasp.net > > > "Dariusz Tomon" <d.to***@mazars.pl> wrote in message > news:e3K0KhXOHHA.4172@TK2MSFTNGP03.phx.gbl... >> Hello >> >> To formalize the discussion - can you change the date on your computer >> please? >> Your question is always on the top till 12-th February :) >> >> BR >> >> Dark >> >> "RedHair" <redhair@u.s.a> wrote in message >> news:%23SgC5GgNHHA.4720@TK2MSFTNGP03.phx.gbl... >>>I get a html text encoding issue when I assign the NavigateUrl to a >>>HyperLink web control, >>> e.g. HyperLink.NavigateUrl = "http://www.xxx.com/yyy.aspx?A=1&B=2&C=3" >>> When I view source from browser, the rendered html text are as below >>> >>> <A herf=http://www.xxx.com/yyy.aspx?A=1&B=2&C=3 ></a> >>> >>> The link works but is there is any way to change the href string to the >>> original one? >>> >> >> > > "Scott M." wrote ...
> But why should we have to? Future posting is a bad "no no". Agreed, lets chain him up and throw copies of HTML for dummies at him....:o) Rob
New gridview question/problem.....
Invalid postback or callback argument error Problems with Flash in WebBrowser problem with PostBackUrl Menu Control and Sitemap, eliminate the home column on the menu display ASP 2.0 Gridview HOWTO: Persist Scroll Position in Panel Control on Postback part II Access Webcontrols from another file How To Access Design Property Values in Runtime... Accessing the controls in the PagerTemplate when using FormView |
|||||||||||||||||||||||