P
Piotr Karwatka
Hi!
I have a little problem an qeustion.
In .NET Windows Forms I can do something like that:
- i have forms - Form1 Form2, on first form i have TextBox1 control on 2nd
form I have Button1 control
- on second Form i can acces data from Form1 like that:
for example: MessageBox.Show(Form1.TextBox1.Text);
That's simply and logical.
But Can i do something like that in WebForms?
I have problems with transfering data between to WebForms (2 *.aspx pages) -
i can't have acces to WebForm2.TextBox1 (example) from any method
implemented in WebForm1 - namespace is the same and that is not so logical
for me. That way of transferig data could be very easy to use and useful but
i don't know is that possible? And if is in what way?
Of course i can use Page.FORM collection but this is not so easy.
If you can write me how i would acces control from one page on the other i
will be very thankfull
I have programmed a lot in PHP, Java and asp.net is something totally new
for me.
ps. Sorry for not sa good english
I have a little problem an qeustion.
In .NET Windows Forms I can do something like that:
- i have forms - Form1 Form2, on first form i have TextBox1 control on 2nd
form I have Button1 control
- on second Form i can acces data from Form1 like that:
for example: MessageBox.Show(Form1.TextBox1.Text);
That's simply and logical.
But Can i do something like that in WebForms?
I have problems with transfering data between to WebForms (2 *.aspx pages) -
i can't have acces to WebForm2.TextBox1 (example) from any method
implemented in WebForm1 - namespace is the same and that is not so logical
for me. That way of transferig data could be very easy to use and useful but
i don't know is that possible? And if is in what way?
Of course i can use Page.FORM collection but this is not so easy.
If you can write me how i would acces control from one page on the other i
will be very thankfull
I have programmed a lot in PHP, Java and asp.net is something totally new
for me.
ps. Sorry for not sa good english