Live Chat Icon For mobile
Live Chat Icon

How to pass information between panels. Information entered in one panel should be displayed in other panel

Platform: ASP.NET| Category: Controls

<asp:Panel id='Panel1' runat='server' Width='271px' Height='41px'>
	<TABLE id='Table1' cellSpacing='1' cellPadding='1' width='300' border='1'>
		<asp:TextBox id='TextBox1' runat='server'></asp:TextBox>
	<asp:Button id='Button1' runat='server' Text='Button'></asp:Button></TD>
<asp:Panel id='Panel2' style='Z-INDEX: 102; LEFT: 16px; POSITION: absolute; TOP: 120px' runat='server'
	Width='176px' Height='91px' Visible='False'>
	<asp:Label id='Label1' runat='server'></asp:Label>

On Button Click


Panel2.Visible =true
Label1.Text = TextBox1.Text 


Panel2.Visible =true; 
Label1.Text = TextBox1.Text ;

Note: Based on the criteria you can hide and show panels

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.