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.
==========================
<html>
<body>
<div class="container">
<div class="row label1">
<p>FirstName:<input id="TxtFirstName" maxlength="20" name="TxtFirstName" size="20" type="text" validate="Mandatory" /></p>
</div>
<div class="row label1">
<p>LastName:<input id="TxtLastName" maxlength="20" name="TxtLastName" size="20" type="text" validate="Mandatory" /></p>
</div>
<p>Email: <input name="txtEmail" type="text" validate="Email" /> </p>
<div class="row label1">
<p>Gender:<select name="TxtGender" style="margin-left:17px"><option selected="selected" value="1">Male</option><option value="1">Female</option></select></p>
</body>
</html>
==========================
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.