如何在点击asp.net mc3中的链接时打开弹出窗口 [英] How to open pop up when click on link in asp.net mc3

查看:82
本文介绍了如何在点击asp.net mc3中的链接时打开弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,





我是asp.net mvc3的新手。现在我正在开发一个mvc3应用程序。那个,我想在点击新参数链接时打开一个弹出窗口,在弹出窗口中,有一些文本框在那里。我们必须用数据填充文本框,并且数据将显示在Gridview。

有人可以打电话给我如何解决它吗?



提前谢谢....

hi friends,


I''m new for asp.net mvc3.Now i am developing a mvc3 application.In that, i want to open a pop up when click on "new parameter" link and in that popup, some text box''s are there.we have to fill the text box''s with data and that data will display into the Gridview.
can anyone tel me how to fix it?

Thank you in advance....

推荐答案

看起来像这样:如何使用Jquery在ASP.NET MVC 3中创建模式弹出窗口 [ ^ ]



大致,这样的事情 [ ^ ]:

Looking something like this: How to create a modal popup in ASP.NET MVC 3 using Jquery [^]

Roughly, something like this[^]:
@Html.ActionLink("OpenPopup", "OpenPopup", new { id = model.Id }, new{ @class = "dialog"} )




<script type="text/javascript">


(function(){
(function (){


('a.dialog')。click(function() {
var url =
('a.dialog').click(function() { var url =


这篇关于如何在点击asp.net mc3中的链接时打开弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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