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 TiwariPosted Nov 8, 2013, 7:24 AM
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.........
Saumya AgarwalPosted Nov 8, 2013, 7:31 AM
Saumya AgarwalPosted Nov 8, 2013, 7:09 AM
Mukesh Kumar TiwariPosted Nov 8, 2013, 7:03 AM
your grid is on anther page or same page??????????
Saumya AgarwalPosted Nov 8, 2013, 6:32 AM
Pls help...
Mukesh Kumar TiwariPosted Nov 8, 2013, 6:19 AM
Thanks