TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ganesh raghuwanshi
NA
1
920
MVC
Mar 21 2015 10:45 AM
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.
Reply
Answers (
0
)
Entitydatasource filter with IN clause
How to Refresh a dataGridView in C#