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'>
	<TR>
	<TD>
		<asp:TextBox id='TextBox1' runat='server'></asp:TextBox>
	</TD>
	</TR>
	<TR>
	<TD>
	<asp:Button id='Button1' runat='server' Text='Button'></asp:Button></TD>
	</TR>
	</TABLE>
</asp:Panel>
<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>
</asp:Panel>

On Button Click

VB.NET


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

C#


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.