Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I amd using a menu with link buttons like
XML
<tr>
    <td class="LabelText" bgcolor="#aca899">
        <asp:LinkButton ID="LinkButton2" runat="server" Font-Underline="false" PostBackUrl="~/Admin/AdminChangeUserPassword.aspx" CssClass="LeftMenu">Delete User Clients :.</asp:LinkButton></td>
</tr>


i want to pass a querystring object in the postbackurl property - can this be done?

i knw we can do this if teh link utton is a grid view item
as so:
XML
<ItemTemplate>
 <asp:HyperLink ID="hpLinkSurname" runat="server" CssClass="gridLink" NavigateUrl='<%# "~/Admin/AdminChangeUserPassword.aspx?UserID=" + Eval("UserID") %>'Text='<%# Eval("[Email Address]") %>' />
</ItemTemplate>


but i want the same to happen when the menu is clicked too..
Any help please?

Thanks
Posted
Comments
R. Giskard Reventlov 8-Dec-11 10:30am    
Have you tried setting it from code behind?
thatraja 10-Dec-11 2:09am    
what happened? any error?

1 solution

Double click on linkbutton you will get an event in that event you can write the following.
Response.Redirect("~/Admin/AdminChangeUserPassword.aspx?id="+some vlaue);
this will redirect to above page with id value.through this is id you can do whatever like update,delete

hope it is usefull
 
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