T
theintrepidfox
Hi Everyone
Here's a really simple and fundamental question for you boys and girls.
I'm quite embarrased asking it actually as I've ben programming for
four years now, always working my way around the issue, but thought of
finally coming out of the closet.
Question:
How do I manipulate (reference) an object on a form (.aspx) in ASP.NET
2.0 from a class? There are articles on how pass values between forms
etc etc but I really never figured that out which is really bad I
guess!
Sample:
I've a page called default.aspx with a ASP.NET 2.0 label control
And I've a class in the App_Code folder called clsLabel.vb
In the code-beside of default.aspx I'd like to put something like:
....
Label1.text = clsLabel.SetText()
....
While I've a Sub in clsLabel that sets the label text.
....
Label1.text = "Hello"
....
Note that this is a simple example and
I'd be grateful if you can please explain in plain English and
idiot-proof way.
Thank you for your help, infinite wisdom and efforts!
Martin
Here's a really simple and fundamental question for you boys and girls.
I'm quite embarrased asking it actually as I've ben programming for
four years now, always working my way around the issue, but thought of
finally coming out of the closet.
Question:
How do I manipulate (reference) an object on a form (.aspx) in ASP.NET
2.0 from a class? There are articles on how pass values between forms
etc etc but I really never figured that out which is really bad I
guess!
Sample:
I've a page called default.aspx with a ASP.NET 2.0 label control
And I've a class in the App_Code folder called clsLabel.vb
In the code-beside of default.aspx I'd like to put something like:
....
Label1.text = clsLabel.SetText()
....
While I've a Sub in clsLabel that sets the label text.
....
Label1.text = "Hello"
....
Note that this is a simple example and
I'd be grateful if you can please explain in plain English and
idiot-proof way.
Thank you for your help, infinite wisdom and efforts!
Martin