asp.net中的消息框 [英] Message box in asp.net

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

问题描述

嗨 我想在使用C#将数据成功输入asp.net的数据库中时显示消息框.并单击消息框按钮时,页面将重定向到另一个网页.

Hi I want to show message box when data is successfully enter in data base in asp.net using C#. and when message box button is click the page is redirect to another web page.

推荐答案

if(data entered)
{
ClientScript.RegisterClientScriptBlock(this.GetType(), "ok", "alert("Data entered");",true);
}
else
{
ClientScript.RegisterClientScriptBlock(this.GetType(), "error", "alert("Data not entered");",true);
}


检查一下

如何使用C#在asp.net中显示消息语言? [
Check this out

how to display messages in asp.net using C# language?[^]


这篇关于asp.net中的消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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