Passing web form controls from a page to an external class

A

Andy B

I have a web form that has controls to be modified on it. The class that
will modify the controls is not contained inside the page code. How would I
best pass the controls to the external class?
 
A

Andy B

Hi...

I dont use app_code since I am using web application projects instead of
website projects. This is what is going on. I have a page called Create.aspx
that has some controls on it (3 labels, 2 textboxes, 2
requiredFieldValidators , 2 textboxcounters and a linkButton). I have to
change state of the controls (1 label, 2 textboxes, 2
requiredFieldValidators, 2 textboxCounters and linkButton). The state of
these controls listed above depends on the CommandName of the link button.
Along with all of this control state switching, I need to create and fill
dataset with different values from the 2 textboxes. To reduce code clutter,
I was told that I should put the code that changes the state of these
controls outside of the page itself. Any advice on what way to go from here?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top