hi,
assume you have a value in TB1 in form1
on BT1 click event carry that TB1 value in the session like
void BT1_click(sender,e)
{
session["TB1value"]=TB1.text;
}
in form2 page load event
pageload
{
show("session["TB1value"].Tostring()");
}
function for show.
public static void Show( string sMessage )
{
if( !m_executingPages.Contains( HttpContext.Current.Handler ) )
{
Page executingPage = HttpContext.Current.Handler as Page;
if( executingPage != null )
{
Queue messageQueue = new Queue();
messageQueue.Enqueue( sMessage );
m_executingPages.Add( HttpContext.Current.Handler, messageQueue );
executingPage.Unload += new EventHandler( ExecutingPage_Unload );
}
}
else
{
Queue queue = (Queue) m_executingPages[HttpContext.Current.Handler ];
queue.Enqueue( sMessage );
}
}
hope this may help
hi @ all,
i have a little problem...
i have 2 forms (form1 and form2)
on form1 threre is a textbox TB1 and a button BT1
by clicking on BT1 i switch to form2
so now the problem:
in TB1 is a text which i want to give out via a messagebox on form2... but form2 don't know about the TB1... also when i save the content of TB1 in a string at form1 an switch to form2 the string don't be known
could anybody help me?
PS: sorry about the teriible english, i hope you can understand it ^^
thanks