在mvc中登录时从弹出窗口中选择值

编程入门 行业动态 更新时间:2024-10-28 07:27:36
本文介绍了在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中登录时从弹出窗口中选择值

本文发布于:2023-10-31 02:02:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544662.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出   窗口中   mvc

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!