hyperlink in asp net

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 3
Reputation: gobi_roy is an unknown quantity at this point 
Solved Threads: 0
gobi_roy gobi_roy is offline Offline
Newbie Poster

hyperlink in asp net

 
0
  #1
Jul 2nd, 2009
hi,
there, i want to use .gif button and use in the hyperlink. i am not able to move to another page by clicking it. the code is as below:

  1. <asp:HyperLink ID="HyperLink1" runat="server"><img alt=""
  2. longdesc="file:///C:/Documents and Settings/user/My Documents/Visual Studio 2008/WebSites/WebSite9/Images/line.gif"
  3. src="Images/line.gif" style="width: 1273px; height: 6px" /></asp:HyperLink>
Last edited by cscgal; Jul 5th, 2009 at 1:12 am. Reason: Fixed code tags
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 432
Reputation: Ramesh S will become famous soon enough Ramesh S will become famous soon enough 
Solved Threads: 82
Ramesh S Ramesh S is offline Offline
Posting Pro in Training

Re: hyperlink in asp net

 
0
  #2
Jul 2nd, 2009
Use NavigateUrl property to move to another page.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 74
Reputation: kameswari is an unknown quantity at this point 
Solved Threads: 15
kameswari kameswari is offline Offline
Junior Poster in Training

Re: hyperlink in asp net

 
0
  #3
Jul 3rd, 2009
Hi you can set the navigateURL property as follows...

<asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/images/Avatars/12.gif"
NavigateUrl="~/Default2.aspx">HyperLink</asp:HyperLink>


BYE..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC