I am entering some details in my form and i want to save and display it in a gridview, which is being done. Now when i click on edit button i want to go back on the form page and show an update button.
The problem is the button is visible also at the starting when i enter data for the first time. Pls help me where do i enter the visibility option in my application.
Thankx in advance...
Loading

Mukesh Kumar TiwariRank #1,774 · 844 reputationPosted Nov 8, 2013, 2:24 AM EST
take a class and...
take a global variable of int type....
public int a = 0;
when u click on edit button then make that variable true..
a=1;
and then on the page load on which ur update button is..u can write ..
if(a==1)
{
btn_ypdate.enable=true;
}
else
{
btn_ypdate.enable=false;
}
And on the click event of the update button write
a=0;
it will work surly...
all the best.........
Mukesh Kumar TiwariRank #1,774 · 844 reputationPosted Nov 8, 2013, 1:19 AM EST
Thanks
Saumya Agarwal19 reputationPosted Nov 8, 2013, 1:32 AM EST
Pls help...
Mukesh Kumar TiwariRank #1,774 · 844 reputationPosted Nov 8, 2013, 2:03 AM EST
your grid is on anther page or same page??????????
Saumya Agarwal19 reputationPosted Nov 8, 2013, 2:09 AM EST
Saumya Agarwal19 reputationPosted Nov 8, 2013, 2:31 AM EST