• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 329
  • Last Modified:

asp.net hyperlink change & to &

if I try to set the NavagateURL in the code behind,


<asp:HyperLink NavigateUrl="./editauto.aspx?prod=1&group=234" />
I get this:

the page rendered shows: ./editauto.aspx?prod=1&amp;group=234

how can I get it to stop changing "&" to "&amp;"

thanks
0
john
Asked:
john
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
You're not supposed to, that is the correct way to do that.  The server is supposed to change it back automatically.  Is it causing you an actual problem on 'editauto.aspx'?
0
 
johnAuthor Commented:
I think the problem is in visual studio. It seems to work intermittently.
0
 
Dave BaldwinFixer of ProblemsCommented:
Interesting.  It's known that the 'web server' in Visual Studio is not as complete as IIS or Apache.  Anyway, thanks for the points.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now