Hi, By using visible property you can hide or visible the controls. For example: you have a DropDownlist control and Gridview control in your web page like:
//you placed the items what's you want
when pageload happens first time it should show only dropdownlist and button.When select one item from dropdownlist and click on the button based on the dropdownlist value it should show the Gridview.
Jiteendra SampathiraoRank #586 · 4.1K pointsPosted Nov 16, 2010, 8:49 PM EST
Solution is::::: visible=false
1. If it is in Database side use status column and set 0 and 1.
2. If it is .net app side....place it in
ex:
//your .........................
if(something == XXXXXX)
{
trXXX.visible=false;
}
If this post helped you, then tick the "Do you like this Answer" checkbox which is placed at above this post.
Abdullah AKALIN22 pointsPosted Nov 17, 2010, 12:56 PM EST
Thanks...
Jiteendra SampathiraoRank #586 · 4.1K pointsPosted Nov 17, 2010, 7:24 PM EST
By using visible property you can hide or visible the controls.
For example: you have a DropDownlist control and Gridview control in your web page like:
//you placed the items what's you want
when pageload happens first time it should show only dropdownlist and button.When select one item from dropdownlist and click on the button based on the dropdownlist value it should show the Gridview.
So in Page_load event
If(!Ispostback)
{
tblfordropdownlist.visible=true;
tblforgridview.visible=false;
}
In button_click event write:
tblforgridview.visible=true;
If this post helped you, then tick the "Do you like this Answer" checkbox which is placed at above this post.