Hide panel control in javascript.
-
Hi, I have used panel server control on my webpage in asp.net. I want to hide this panel on button click. which property I need to set. I tried document.getElementById(pnlColumn).style.display=none but it won't work. Thanks, Nagraj.
-
Hi, I have used panel server control on my webpage in asp.net. I want to hide this panel on button click. which property I need to set. I tried document.getElementById(pnlColumn).style.display=none but it won't work. Thanks, Nagraj.
-
Hi, I have used panel server control on my webpage in asp.net. I want to hide this panel on button click. which property I need to set. I tried document.getElementById(pnlColumn).style.display=none but it won't work. Thanks, Nagraj.
hi i hope following link help u. http://forums.asp.net/p/619746/619901.aspx[^]
no knowledge in .net
-
Hi, I have used panel server control on my webpage in asp.net. I want to hide this panel on button click. which property I need to set. I tried document.getElementById(pnlColumn).style.display=none but it won't work. Thanks, Nagraj.
Try this, document.getElementById('pnlColumn').style.display='none'; Regards N.Surendra Prasad
-
Hi, I have used panel server control on my webpage in asp.net. I want to hide this panel on button click. which property I need to set. I tried document.getElementById(pnlColumn).style.display=none but it won't work. Thanks, Nagraj.
First of all, if it's an ASP.NET control, then the name of the control on the client is not the name on the server, you need to write the name using the server controls 'ClientID' property. Then you can use code like the above, assuming that pnlColumn is a variable that holds the client side Id, and that you put 'none' in quotes.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )