advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Partners & Affiliates
Download the free article "Simplifying High Performance" to learn how to boost performance applications—including clusters. Get the free article today! Click Here
advertisement
Tip of the Day
Expertise: Intermediate
Language: .NET
November 11, 2009
ASP.NET Workaround: Calling a JavaScript Function from a HyperLinkField in a GridView

If you place a HyperLinkField in a GridView in an ASP.NET page and link it to a JavaScript function, you'll find that it doesn't work properly. The problem is that the URL specified by the HyperLinkField's NavigateUrl fails to render when you use a JavaScript reference (such as "Javascript:func();") rather than a standard URL.


It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?





Srinath MS
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible. Submit your tip here.
advertisement
advertisement