Click here to Skip to main content
16,014,952 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In my asp.net project Iam displaying a gridview showing the name and mailid of some persons.My requirement is,I want to navigate to the profile of a person while clicking on his name.But I can't provide the name in the form of a link.Without providing a link how the navigation is possible?Please suggest some examples.
Posted
Updated 19-Dec-12 22:29pm
v2
Comments
Abhishek Pant 20-Dec-12 4:30am    
use ajaxcontrol toolkit-HoverMenu Demonstration[^]
danil33 20-Dec-12 5:53am    
Hi Abhishek,
The tutorial is helpful.But my gridview contains names of different persons.And on clicking on a particular name should take me to his profile.So how can we set the TargetControlID
Abhishek Pant 20-Dec-12 6:00am    
add linklabel button and and set its id as targetid to the hover menu options
danil33 20-Dec-12 4:33am    
Hi Abhishek,
Thanks for the reply.Can you provide an example program?
Abhishek Pant 20-Dec-12 4:37am    
Ajax HoverMenuExtender - How to use HoverMenuExtender in asp.net ajax [^] use link in place of update part of gridview.

<asp:Label runat="server" ID="lblname" Text="ClickHere" onclick="Name()"></asp:Label>

<script type="text/javascript" language="javascript">
function Name() {
debugger;
var name = "";
}
</script>
 
Share this answer
 
You can write an onclick method that sets the window.location to your url.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900