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
divya reddy
NA
71
1.1k
passing data from view to another by actionlink in mvc
Nov 23 2016 11:11 PM
Hello im having a view when i click on forget password link i have to retrieve the particular user details and display in another view this is my login view:
@Html.LabelFor(model => model.Username, new { @class = "col-sm-4" })
@Html.TextBox("txtUsername")
@Html.LabelFor(model => model.Password, new { @class = "col-sm-4" })
@Html.TextBox("txtPassword")
@Html.ActionLink("Forget Password", "EmployeeDetails", "Home", new { username = "Username"}, null)
When i click on forget password action link i have to redirect to another view and display the data of that particular user information.
im Redirecting to forget password page but i not able to display the data in database. Displaying data of forget password view:
@Html.LabelFor(model => model.Username, new { @class = "col-sm-4" })
@Html.TextBoxFor(model => model.Username, new { @readonly = "readonly", @class = "col-sm-8" })
@Html.LabelFor(model => model.HintQueation1, new { @class = "col-sm-4" })
@Html.TextBoxFor(model => model.HintQueation1, new { @readonly = "readonly", @class = "col-sm-8" })
@Html.LabelFor(model => model.HintQueation2, new { @class = "col-sm-4" })
@Html.TextBoxFor(model => model.HintQueation2, new { @readonly = "readonly", @class = "col-sm-8" })
@Html.LabelFor(model => model.HintQueation3, new { @class = "col-sm-4" })
@Html.TextBoxFor(model => model.HintQueation3, new { @readonly = "readonly", @class = "col-sm-8" })
Im using entity framework.
and to retrieve what code have to write in controller
and how to pass particular user entered in textboxes in action link
Please help me out.
Thanks and Regards,
Divya reddy.
Reply
Answers (
1
)
Dynamically sending catalog from a Windows server to a site
How to save angularjs table data in database in mvc