在我的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中登录时从弹出窗口中选择值
发布评论