如何在Asp.net中打开登录页面Pop或带有登录链接的Pop [英] How to open login page Pop Or a Pop With Login Link In Asp.net

查看:105
本文介绍了如何在Asp.net中打开登录页面Pop或带有登录链接的Pop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Helo .....



我的代码问题只显示警告框但我想打开网页或弹出链接..我可以这样做...





我的代码是这个





Helo.....

I have a problem with my code ut showing only alert box but i want to open a web page or pop up with link..how can i do this...


My code is this


protected void BtnDonld_Click(object sender, EventArgs e)
   {
         string text1 = User.Identity.Name.ToString();
         if (text1 == "" || text1 == string.Empty)
         {
             Page.ClientScript.RegisterStartupScript(this.GetType(), "ShowMessage", string.Format("<script type='text/javascript'>alert('{0}')</script>", "for Download Pdf YOu have to Login"));




         }

推荐答案

您可以执行HTML块,浮动在页面顶部的div,以及您希望以与上述类似的方式查看的内容。
You can execute an HTML block, with a div floating on top of the page and with the content you want to see in similar way you have done above.


您可以尝试使用以下基于JQUERY的解决方案.. 。



我在我自己的应用程序中嵌入了这个弹出窗口,发现它非常可靠。



万一如有任何疑问,请告诉我...



http:// jquerymsgbox。 ibrahimkalyoncu.com/ [ ^ ]
You can try to use the following JQUERY based solution...

I have embedded this popup in my own application and found it really reliable.

In case of any query, do let me know...

http://jquerymsgbox.ibrahimkalyoncu.com/[^]


这篇关于如何在Asp.net中打开登录页面Pop或带有登录链接的Pop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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