Click here to Skip to main content
15,884,974 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my mvc application, In the login page when submitting the form (after entering user name and password) I want to show a pop up window ( a partial view) where I want to select the user role ( gets from database and show in a dropdownlist) and when selecting a role, it should redirect to Dashboard. How can I show a pop up when submitting a form in mvc

what I have done is in login page instead of submit button, on click I have called a jquery function to show pop up, and in that i have used the second partial view to select the roles, but it is not working as we expect, we have to show pop up when submitting the login form.


thanks
Posted
Updated 9-May-15 19:10pm
v2
Comments
F-ES Sitecore 9-May-15 14:31pm    
google "show popup from asp.net mvc" and you'll find lots of examples. Please do basic research like using google before you ask a question as you could have found the solution in less time than it took you to make this post.
Jijutj 10-May-15 1:10am    
what I have done is in login page instead of submit button, on click I have called a jquery function to show pop up, and in that i have used the second partial view to select the roles, but it is not working as we expect, we have to show pop up when submitting the login form.
F-ES Sitecore 10-May-15 8:22am    
You'll need to update your question with your current code.

1 solution

what code are you using for displaying the modal.. Is it a modal?
 
Share this answer
 
Comments
King Fisher 11-May-15 3:11am    
Use Comment widget for your queries, you have posted it on solution Section.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900