Click here to Skip to main content
15,894,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a commandfiled inside my gridview.
ASP.NET
<asp:CommandField ShowEditButton="true"  ShowDeleteButton="true"
                EditImageUrl="~/Icons/1414412214_edit.png" EditText="Edit"
                DeleteImageUrl="~/Icons/1414412198_delete.png" UpdateText="Done"   >
            <itemstyle height="10%" width="10%" />

How can I stop post back on edit link button and still be able to show the update and cancel link on clicking it. I know that I can do that using update panel and I tried it did not work?
Posted
Updated 1-Dec-14 19:24pm
v2
Comments
/\jmot 2-Dec-14 0:52am    
post your update pannel code here.
/\jmot 2-Dec-14 0:53am    
tell us whats the problem??
naseer861 2-Dec-14 3:56am    
I have told what is the problem?

1 solution

1.Regarding the paostback on command field click, the only improvement that I see (because the CommandField objects do not have AutoPostback proprieties) is to put you grid into an UpdatePanel and this panel will use AJAX to postback only you grid and not the entire page.

2.For details about UpdatePanel see into the MSDN[^].
 
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