473,545 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with & in hyperlink.navig ate (which is converted to &)

Hello,

I have been searching online for a whole day and couldn't find an answer for
this. I have this hyperlink server control:

------------------------------------------------------------------------------------
Design mode:

<asp:HyperLin k ID="MyHyperlink " Runat="server"
NavigateUrl="#" >Forms</asp:HyperLink>

Code-behind:

protected HyperLink MyHyperlink;

MyHyperlink.Nav igateUrl = "?Dept=" + Request.QuerySt ring["Dept"] +
"&Sect=form s";
------------------------------------------------------------------------------------

Very straight forward right? I think so too but when it renders the
HTML the "&Sect" part turned into "&Sect" and the whole link would
be

?Dept=HR&Sect=f orms

And the problem is that VPN doesn't like that kind of malformed urls.

I am using VS.NET 2003 & VS.NET 2005 (beta).

So, if someone have any idea... :)

Thanks in advance.

P. Mellerin
Oct 21 '05 #1
2 2259
CT
P,

I'm not quite sure what you're asking. If set the NavigateUrl property as
shown below, the link works fine, doesn't it?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"P. Mellerin" <P. Me******@discus sions.microsoft .com> wrote in message
news:FB******** *************** ***********@mic rosoft.com...
Hello,

I have been searching online for a whole day and couldn't find an answer
for
this. I have this hyperlink server control:

------------------------------------------------------------------------------------
Design mode:

<asp:HyperLin k ID="MyHyperlink " Runat="server"
NavigateUrl="#" >Forms</asp:HyperLink>

Code-behind:

protected HyperLink MyHyperlink;

MyHyperlink.Nav igateUrl = "?Dept=" + Request.QuerySt ring["Dept"] +
"&Sect=form s";
------------------------------------------------------------------------------------

Very straight forward right? I think so too but when it renders the
HTML the "&Sect" part turned into "&Sect" and the whole link would
be

?Dept=HR&Sect=f orms

And the problem is that VPN doesn't like that kind of malformed urls.

I am using VS.NET 2003 & VS.NET 2005 (beta).

So, if someone have any idea... :)

Thanks in advance.

P. Mellerin

Oct 21 '05 #2
The link works fine, it's true. Anyway, it is a malformed url
(http://...?param1=a&amps;param2=b...). And with a reverse-proxy connection,
it is a bad thing... : it intercepts only "&", not "&"... :(((

Is it a Dotnet's "bug by design" ?

"CT" wrote:
P,

I'm not quite sure what you're asking. If set the NavigateUrl property as
shown below, the link works fine, doesn't it?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"P. Mellerin" <P. Me******@discus sions.microsoft .com> wrote in message
news:FB******** *************** ***********@mic rosoft.com...
Hello,

I have been searching online for a whole day and couldn't find an answer
for
this. I have this hyperlink server control:

------------------------------------------------------------------------------------
Design mode:

<asp:HyperLin k ID="MyHyperlink " Runat="server"
NavigateUrl="#" >Forms</asp:HyperLink>

Code-behind:

protected HyperLink MyHyperlink;

MyHyperlink.Nav igateUrl = "?Dept=" + Request.QuerySt ring["Dept"] +
"&Sect=form s";
------------------------------------------------------------------------------------

Very straight forward right? I think so too but when it renders the
HTML the "&Sect" part turned into "&Sect" and the whole link would
be

?Dept=HR&Sect=f orms

And the problem is that VPN doesn't like that kind of malformed urls.

I am using VS.NET 2003 & VS.NET 2005 (beta).

So, if someone have any idea... :)

Thanks in advance.

P. Mellerin


Oct 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3776
by: Zaidan | last post by:
I am running Excel2000 under WIN98 2nd edition, and I am writing a VBA code (I will consider using javascript if I have to) that does the following, at the user command: 1- Start MS Explorer and go to my website. Login (enter ID and Password) 2- It will go and update some prices of some products that I sell 3- It will add new products or...
1
1286
by: ashoo | last post by:
Guys! I am trying to use a dropdownlist click event in my header page to link to my main page in a frameset type of form. I try to link to my main page with a hyperlink control.It works fine. But I would like to use the click event of my dropdownlist to do the samething. so I thought if could trigger the clik event of the hyperlink within...
4
13448
by: | last post by:
Does anyone know how to trigger the click event of a hyperlink control programmatically? Thanks for helping.
5
6684
by: Martin Dew | last post by:
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below but here is the snippet of my asp:hyperlink object; <asp:HyperLink NavigateUrl="authonly/clientdetails.aspx?searchID="+<%#DataBinder.Eval(Conta...
6
4544
by: FoundThisOnline | last post by:
I have been searching online for a whole day and couldn't find an answer for this. I have this hyperlink server control: ------------------------------------------------ <asp:HyperLink ID="hylForms" Runat="server" NavigateUrl="#">Forms</asp:HyperLink> Codebehind: protected HyperLink hylForms;
19
3467
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred to here as page_2). I need to cache the value of the link's text (hyperlink.text property) so that I can use it in the page_load event of page_2....
2
304
by: P. Mellerin | last post by:
Hello, I have been searching online for a whole day and couldn't find an answer for this. I have this hyperlink server control: ------------------------------------------------------------------------------------ Design mode: <asp:HyperLink ID="MyHyperlink" Runat="server" NavigateUrl="#">Forms</asp:HyperLink>
16
4877
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by Microsoft must be installed on their servers. Now german Umlaute (ä, ü, ö) and quotes are returned incorrectly in SOAP fault responses. This can be...
5
4257
by: Silgd1 | last post by:
Hey All.... I am creating web page using Netbeans 6.0. I use A jspf (java server page fragment) that is included in most of the other pages. There are several hyperlinks on the jspf that navigate to other pages. I want to install the ability to onMouseOver the hyperlinks on the jspf to produce submenus that will navigate to other pages. I...
0
7425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7682
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5351
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.