User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,281 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,294 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1337 | Replies: 2
Reply
Join Date: Aug 2007
Posts: 28
Reputation: ansari.wajid is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
ansari.wajid ansari.wajid is offline Offline
Light Poster

Question How to add mouseover event on hyperlink with in a gridview?

  #1  
Mar 20th, 2008
Hi All

I need to add mouseover event on hyperlink which is in a gridview.

What actually I need is displaying names of states in a gridview as hyperlink and when I take mouse over any state, it should navigate to a new page taking that stateid as querystring, So that I could request that stateid through query string and display information about that particular state in a newpage.
Any help is appreciated, Thanks in advance.

with Regards
wajid
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Posts: 4
Reputation: sms_net is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sms_net sms_net is offline Offline
Newbie Poster

Re: How to add mouseover event on hyperlink with in a gridview?

  #2  
Mar 20th, 2008
Can u show me how u r binding the Gridview, so that i can get an idea on ur Question. Because there is a onmouseover event for hyperlink which u can use in ur case
Reply With Quote  
Join Date: Mar 2008
Posts: 1
Reputation: aankurpatel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aankurpatel aankurpatel is offline Offline
Newbie Poster

Re: How to add mouseover event on hyperlink with in a gridview?

  #3  
Mar 22nd, 2008
Originally Posted by sms_net View Post
Can u show me how u r binding the Gridview, so that i can get an idea on ur Question. Because there is a onmouseover event for hyperlink which u can use in ur case


You can use RowDataBound event of the GridView(GV) and then can use the eventarg e to Find the HyperLink using FindControl() method. Then you can insert a attriubute to that hyperlink of Mouseover.

hyplink.Attributes.Add("onmouseover","<text>");
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 10:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC