Click here to Skip to main content
15,946,179 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
plz help me with the gridview ..
i'm having two buttons in my gridview..
so when i click on "approve button" then the "reject button" should get hidden and label with approve data should display..
plz help with the coding....

<asp:TemplateField HeaderText="Status" >
<asp:Button ID="BtnApprove" Text="Approve" runat="server" />
<asp:Label ID="StatusResult" runat="server" Visible="false" />
<asp:Button ID="btnRejct" runat="server" Text="Reject" />
Updated 1-Feb-13 1:39am

1 solution

Write this code in your button click event

It's very easy if you got any doubt ping me I'll sure help you out from this problem.
Share this answer
Member 9467059 2-Feb-13 2:50am    
ganesh i have tryd your coding
but still i'm getting error's with the code..
Ganesh Kumar Kaki 3-Feb-13 2:40am    
what above I written is in C# try to write it in your own source code language.
Where Button1, Label1 are the control names it may vary. According to your controls change the names

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