在mvc中登录时从弹出窗口中选择值 [英] select value from pop up when login in mvc

查看:66
本文介绍了在mvc中登录时从弹出窗口中选择值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的mvc应用程序中,在提交表单的登录页面中(输入用户名和密码后)我想显示一个弹出窗口(部分视图),我想在其中选择用户角色(从数据库获取和显示在下拉列表中)并在选择角色时,它应该重定向到仪表板。如何在mvc中提交表单时弹出窗口



我所做的是在登录页面而不是提交按钮,点击我调用了jquery函数显示弹出窗口,并且我已经使用第二个局部视图来选择角色,但它没有按照我们的预期工作,我们必须在提交登录表单时弹出窗口。





谢谢

解决方案

你用什么代码来显示模态..它是模态吗? / BLOCKQUOTE>

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

解决方案

what code are you using for displaying the modal.. Is it a modal?


这篇关于在mvc中登录时从弹出窗口中选择值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆