如何使用ModalPopupExtender返回字符串?(ASP.Net 3.5 C#) [英] How return string with ModalPopupExtender?(ASP.Net 3.5 C#)

查看:74
本文介绍了如何使用ModalPopupExtender返回字符串?(ASP.Net 3.5 C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好。我需要做一个moda。我有一个新闻注册的屏幕。在这个屏幕上,我想在文本中间插入图片。我想使用一个模式,当用户单击按钮并列出系统中注册的图片时打开该模态。当用户单击任何图片时,模态必须返回一个字符串,其中包含所选图片的Id和Type od并关闭模态。我找不到一个模态,返回上一个屏幕的值。怎么做?

Good afternoon. I nedd to make a moda. I have a screen to news registration. On this screen, I want insert pictures in middle the text. I want to use a modal that opens when the user click in button and list the pictures registered in the system. When the user click on any picture, the modal must return a string with the Id and Type od the selected picture and close the modal. I cant't find a modal the returns a value to the previous screen. How to do this?

推荐答案

看看:模态窗口 [ ^ ]



由于显而易见的原因,该演示使用DevExpress ASPx.Net弹出控件,但您应该可以使用类似ASP.NET Popup Control [ ^ ]或 jQuery UI Dialog [ ^ ],即使需要付出更多努力。



最好的问候

Espen Harlinn
Have a look at: Modal Window[^]

The demo, for obvious reasons, uses the DevExpress ASPx.Net Popup Control, but you should be able to do something similar using something like ASP.NET Popup Control[^] or jQuery UI Dialog[^], even if a little more effort is required.

Best regards
Espen Harlinn


嗨。我尝试过使用ModalPopupExtender,但我不能,所以我使用了jQuery。
Hi. I tried use ModalPopupExtender, but I can't, so I used jQuery.


这篇关于如何使用ModalPopupExtender返回字符串?(ASP.Net 3.5 C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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