Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 22nd, 2006, 04:02 PM
Authorized User
 
Join Date: Dec 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hi,plz solve my problem

my problem is, i m having a datagrid with a template column,i used databinder to bind data to a hyperlink control in that column. I am giving the link on click of that hyperlink control. It works fine when there is data for that control,but when there is no data is there it gives blank brower with url http:///. I want to hide this link control for all records with no data

 
Old December 26th, 2006, 06:39 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi

Use ItemDataBound event instead to bind the values with the NavigateUrl or href property of hyperlink, check if the database is returning any value, set the href, else do not set the href.

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.





Similar Threads
Thread Thread Starter Forum Replies Last Post
plz.....plz solve out my problem.... kethireddy435 ASP.NET 1.x and 2.0 Application Design 1 October 4th, 2007 12:56 PM
plz solve my problem mkazim85 SQL Language 2 May 14th, 2007 05:31 AM
Very urgent(plz solve) Swati_Jain BOOK: Professional Crystal Reports for VS.NET 2 May 30th, 2006 07:12 AM
Solve my prob? plz.......... mkmaurya_it General .NET 0 February 12th, 2005 03:50 AM
plz help me solve this error moushumi Classic ASP Databases 1 March 31st, 2004 10:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.