I have a panel and gridview with hyperlink field in asp.net page. i disable the panel in page load. now i want to eable that panel when hyperlink field in gridview was clicked.
can anyone help in this area. i tried a lot but i didn't get the solution..
Hi, for this passing the page back to the same page it is in and then pass a parameter in the query string of the URL when you click on the hyperlink. Capture the value of the paramter in the hyperlink in your page load event and then enable or disable your
panel. the code for the this as follows:
Jashu
Member
7 Points
27 Posts
Visible panel when a gridview was selected?
Aug 15, 2008 12:38 PM|LINK
Hi,
I have a panel and gridview with hyperlink field in asp.net page. i disable the panel in page load. now i want to eable that panel when hyperlink field in gridview was clicked.
can anyone help in this area. i tried a lot but i didn't get the solution..
thanks in advace..
jashu...
ASP.NET Dynamic Data
pushya
Member
667 Points
153 Posts
Re: Visible panel when a gridview was selected?
Aug 15, 2008 06:54 PM|LINK
Hi, for this passing the page back to the same page it is in and then pass a parameter in the query string of the URL when you click on the hyperlink. Capture the value of the paramter in the hyperlink in your page load event and then enable or disable your panel. the code for the this as follows:
if (!Page.IsPostBack){
SiteCustomFunctionForLoadingData();
string ClickValue = Request.QueryString["Click"];if (ClickValue == "true"){
Panel1.Visible = true;}
else{
Panel1.Visible = false;}
}
thanks.
pushya.
please mark it as an answer if this helps.
Jashu
Member
7 Points
27 Posts
Re: Visible panel when a gridview was selected?
Aug 18, 2008 10:12 AM|LINK
Hi Pushya, thank you very much, I got the solution.
regards....
jashu