Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange problem...? 1

Status
Not open for further replies.

andym0908

Programmer
Feb 25, 2008
19
0
0
GB
I've just started using .NET (C#). I've got a simple horizontal text display, using the <asp:HyperLink> control, which is databound to a SQL Stored proc.

When I run it, the text displays, though only as normal text, not Hyperlink text. Also, more worryingly, when I View Source in the browser (IE 7), the actual code for the HyperLink code is showing up (ie. it shows <asp:HyperLink> instead of <a>). Why would it not render?!

 
The same as any other server control - if you need to manipulate it or any of it's properties from server-side code. Using HTML controls over ASP.NET controls (when possible) will help reduce ViewState and therefore help increase page performance.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top