Image button problem in gridview

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

iam using a gridview to display employees data.in 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") %>' />

Regards,
Bhanu Prakash Bysani



Responses

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

Up
0
Down
please refer below link for query string inside gridview
http://csharpdotnetfreak.blogspot.com/2009/04/linkbutton-gridview-querystring.html

_______________________________________
Nisar Ahmad
http://www.dotnetobject.com/

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

Login to post response