954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to hide panel?

This is pretty basic guys but i really dont know how to do this.

okay.

i have to panels on my webpage.

what i need to do is i need to hide panel..

i have this

<script runat = "server">
        private void hidepanel()
        {
            pnl_Add.Visible = true;
            pnl_List.Visible = false;
        }    
    </script>


if i click the name, it will hide the panel(the panel which have this code)

<a href="#" onclick ='hidepanel()'><%# Eval("First_name") %> <%# Eval("Last_name") %></a>


i just started asp.net only yesterday. hope you can help me!

thanks guys!!

alleybye
Newbie Poster
20 posts since Sep 2010
Reputation Points: 16
Solved Threads: 0
 

Can you show the code for the panels as well? Also what scripting language are you using? It doesn't look like javascript, yet you have a clientside event?

stbuchok
Master Poster
730 posts since May 2011
Reputation Points: 120
Solved Threads: 93
 
jbisono
Posting Pro in Training
442 posts since May 2009
Reputation Points: 71
Solved Threads: 59
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: