Thursday

How to access Formview textfield Data

How to access Formview textfield Data
If you have a formview, and want to access its controls, here is the code for it:
((HiddenField) MyFormView.FindControl("EventDate")).Value= SomeValue;
Of course, you can replace the (HiddenField) with something else, like (TextBox), (CheckBox), etc.

No comments: