如何建立在asp.net中弹出对话框 [英] How do I build a popup dialog in asp.net

查看:265
本文介绍了如何建立在asp.net中弹出对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立使用asp.net(C#)Web应用程序。我来自窗口形式的发展和发现自己在一个硬点。林提出申请,用户应编辑关于自己的一些简单的信息,因此我需要创建一个新的对话框。我该怎么做,在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...

/ H4mm3rHead

/H4mm3rHead

推荐答案

如果你不关心使用图书馆,尝试的微软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中弹出对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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