Solved

asp.net hyperlink change & to &

Posted on 2013-06-19
3
310 Views
Last Modified: 2013-06-19
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
Comment
Question by:john
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39260622
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
 

Author Closing Comment

by:john
ID: 39260630
I think the problem is in visual studio. It seems to work intermittently.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39260652
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
coded character set iptc field within a jpeg 1 70
Problem to error 4 46
Host asp.net pages 5 25
How would you add MULTITHREADING to the attached C# code? 4 52
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now