Image button problem in gridview

Posted by Bhanubysani under ASP.NET on 8/10/2011 | Points: 10 | Views : 2276 | Status : [Member] | Replies : 1

iam using a gridview to display employees that gridview iam uding image button for edit.when user click on image button i write a query string to navigate another page.

when i clicked image button for edit it is navigating to that page but the passing value is not going in correct format..plz help me in writing query string for image button.

i wrote like this:

<asp:ImageButton ID="btnEdit" runat="server" CommandName="Edit" ImageUrl="~/images/pencil.jpg"
Width="25" CssClass="link" CausesValidation="false" ToolTip="Edit Selected Record"
PostBackUrl='EditTasks.aspx?TaskID=<%# Eval("TaskID") %>' />

Bhanu Prakash Bysani


Posted by: Nisar87 on: 8/14/2011 [Member] Starter | Points: 25

please refer below link for query string inside gridview

Nisar Ahmad

Bhanubysani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response