Having a question in mvc, I need ur help.
The task is I have given a text file in that file I have created some html controls like
first name, last name, email id, gender etc and from that text file I have to read properties of each control and represent it in a view. Plz see the given html script.
==========================
FirstName:id="TxtFirstName" maxlength="20" name="TxtFirstName" size="20" type="text" validate="Mandatory" />
LastName:id="TxtLastName" maxlength="20" name="TxtLastName" size="20" type="text" validate="Mandatory" />
Email: name="txtEmail" type="text" validate="Email" />
Gender:
==========================
Now I have to read this whole script from text file in controller section and store in a string variable(that I have done),
now from that string I have to read Id, name and type for each control and
after that I have to represent that in view section like a simple table. Plz let me know what code should i write in controller and view section.
Replies
Know the answer? Post it — somebody with the same question will find it here.