How do I build a popup dialog in asp.net(如何在 asp.net 中构建弹出对话框)
问题描述
我正在使用 asp.net (C#) 构建一个 Web 应用程序.我来自 Windows 窗体开发,发现自己陷入了困境.我正在制作一个应用程序,用户应该在其中编辑一些关于他自己的简单信息,因此我需要创建一个新对话框.我如何在 asp.net 中做到这一点?我有一个在服务器端处理事件的按钮,当我单击 lthis 按钮时,我想弹出一个对话框,我可以在其中显示我的自定义 Web 控件(或任何 Web 控件,让它从一开始就通用).我该怎么做?
I am building a Web Application using asp.net (C#). I come from windows forms development and find myself in a hard spot. Im making an application where the user should edit some simple information about himself, and thus i need to create a new dialog. How do I do that in asp.net? I have a button which event is handled serverside, and when i click lthis button i want to popup a dialog where i can show my custom web control (or any web control, lets make it generic from the start). How do I go about with doing so?
通过查看互联网,我得到了一些方法,我需要制作一个部分并将 z-index 设置为 1000,但我如何使其可见(块)?请在这里帮忙,因为我完全迷路了......
I got some part of the way by looking at the internet, that i need to make a section and set the z-index to 1000, but how do i make it visible (block)? Please help here as i am completely lost...
/H4mm3r头
推荐答案
如果您不担心使用库,请尝试 Microsoft ASP.NET AJAX 控件工具包,他们有几个控件可以创建你想要的东西(ModalPopup 控件).
If you're not concerned about using a library, try Microsoft ASP.NET AJAX Control Toolkit, they have several controls that can create something you want (the ModalPopup control).
这篇关于如何在 asp.net 中构建弹出对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 asp.net 中构建弹出对话框


- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 输入按键事件处理程序 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01