如何显示确认插入数据的消息 [英] How to display a message confirming the insertion of data

查看:73
本文介绍了如何显示确认插入数据的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Expression Web的新手,我已经使用Web Expression中的表单视图控件创建了输入数据并将其存储在数据库中的表单,一切正常,但我想在插入数据后显示一条消息,信息
已成功存储。 

I am new with Expression Web, I have already created the form to enter data and store it in the database using the Form View Control in Web Expression, everything is working fine, but i would like to display a message after inserting the data, that the information was stored successfully. 

任何帮助?

感谢

Fer

推荐答案

您可以定义另一个页面带来用户在"插入"之后按下按钮。

You can define another page to bring the user to after the "Insert" button is pressed.

编辑您正在使用的模板(我假设是InsertItemTemplate)。 如果您使用的是"设计视图",则在编辑模板时,请使用鼠标选择"插入"链接。 查看左侧的"标记属性"窗格。 向下滚动并找到
PostBackUrl,然后选择您编写的确认页面。  (例如,confirm.aspx)。

Edit the template you are using (I'm assuming InsertItemTemplate).  If you are using Design View, when editing the template, select the Insert link with your mouse.  Look over at the Tag Properties pane on your left.  Scroll down and find PostBackUrl, and select the confirmation page you have written.  (E.g., confirm.aspx).

在代码视图中,只需添加PostBackUrl =" confirm.aspx" < asp:linkbutton id =" InsertButton"的参数...&NBSP;在你的< InsertItemTemplate>。

In Code View, just add the PostBackUrl="confirm.aspx" parameter to the <asp:linkbutton id="InsertButton" ...  in your <InsertItemTemplate>.


这篇关于如何显示确认插入数据的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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