-
Nov 19th, 2013, 05:28 AM
#1
Thread Starter
New Member
How to go to another view by clicking the label
I am using asp.net with MVC architecture. I am designing a web page which displays the user's details in table format. I want to click the label and select the entire row and update the details. ie On clicking the label I want to go to another view. How could I do that?
-
Nov 19th, 2013, 12:07 PM
#2
Re: How to go to another view by clicking the label
Look up model binding. Visual Studio has built-in templates for View, Edit, Create etc. Try creating a new View and and in the "VIEW CONTENT" dropbox, select LIST. VS will generate a list of items with a link for EDIT. You can take this example and adapt it to your application.
-
Nov 20th, 2013, 06:10 AM
#3
Re: How to go to another view by clicking the label
Hello shanida,
Can you please post these questions in the MVC.Net Forum, as this is where they belong.
I will move this one here as well.
Gary
-
Nov 27th, 2013, 04:46 AM
#4
New Member
Re: How to go to another view by clicking the label
Originally Posted by shanida
On clicking the label I want to go to another view. How could I do that?
There may be multiple ways to achieve this any of following would help you:
1. Create actionlink in MVC that would be efficient way (turn text-decoration:none would give a link, label like feel)
2. Create label and bind click event on it via javascript. (Provide relative path to view eg. /controller/view or /view if working on same controller.)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|