关于弹出窗口 [英] regarding popup window

查看:75
本文介绍了关于弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个文本框,如果在两个texbox中都插入了值,那么它应该显示一个弹出窗口,因为如果任何一个文本框为空,则成功插入数据然后它应该显示一个弹出窗口,因为数据未成功插入。 ..... plz帮我任何人

i had two textboxes if in both texboxes values are inserted then it should display a popup window as your data inserted succesfully if any one of the textbox is empty then it should display a pop window as data not inserted successfully.......plz help me anyone

推荐答案





你不想要使用AJAX,这很好,但你不想也使用Javascript?我想你已经去了javascript以显示通知提醒消息。但是这条消息你也可以从后面的代码中显示出来。请查看以下内容:

Hi,

you don't want to use AJAX, that is fine, but you don't want to use Javascript also ? I think you have go for javascript in order to show the notification alert message. but this message you can show from code behind also. check out below how:
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Notify", "alert('Data Inserted Successfully');", true);





您可以根据条件更改消息文本。



参考 ScriptManager.RegisterStartupScript方法(页面,类型,字符串,字符串,布尔值) [ ^ ]了解更多信息。



希望它有所帮助。



you can change the message text however you need based on the conditions.

refer ScriptManager.RegisterStartupScript Method (Page, Type, String, String, Boolean)[^] for more.

hope it helps.


这篇关于关于弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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