F
FoundThisOnline
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;
hylForms.NavigateUrl = "?Dept=" + Request.QueryString["Dept"] +
"&Sect=forms";
------------------------------------------------
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=forms
Thinks I have tried already:
- Delete the dll and recomplie
- Different server
- Move all the code on the asp.net page and no codebehind
- Try different HTML characters (eg "<") that supposingly will render
as well but only "&" will turn into "&"
Could someone give me a clue?
Thanks in advance.
answer for this. I have this hyperlink server control:
------------------------------------------------
<asp:HyperLink ID="hylForms" Runat="server"
NavigateUrl="#">Forms</asp:HyperLink>
Codebehind:
protected HyperLink hylForms;
hylForms.NavigateUrl = "?Dept=" + Request.QueryString["Dept"] +
"&Sect=forms";
------------------------------------------------
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=forms
Thinks I have tried already:
- Delete the dll and recomplie
- Different server
- Move all the code on the asp.net page and no codebehind
- Try different HTML characters (eg "<") that supposingly will render
as well but only "&" will turn into "&"
Could someone give me a clue?
Thanks in advance.