
通过modify.aspx页面就可以修改现有数据,并可以通过表单提交事件来更新数据。
其更新的主要代码如下:
< MM:Update
runat="server"
CommandText=''< %# "UPDATE LOCATI
SuccessURL=''< %# "locati
>
< Parameters >
< Parameter Name="@CITY" Value=''http://www.dedecms.com/web-art/htmlbase/Dreamweaver/20060602/< %# IIf((Request.Form("city") < > Nothing), Request.Form("city"), "") % >'' Type="WChar" / >
< Parameter Name="@STATE_COUNTRY" Value=''http://www.dedecms.com/web-art/htmlbase/Dreamweaver/20060602/< %# IIf((Request.Form("state") < > Nothing), Request.Form("state"), "") % >'' Type="WChar" / >
< Parameter Name="@FAX" Value=''http://www.dedecms.com/web-art/htmlbase/Dreamweaver/20060602/< %# IIf((Request.Form("fax") < > Nothing), Request.Form("fax"), "") % >'' Type="WChar" / >
< Parameter Name="@TELEPH / >
< Parameter Name="@ADDRESS" Value=''http://www.dedecms.com/web-art/htmlbase/Dreamweaver/20060602/< %# IIf((Request.Form("address") < > Nothing), Request.Form("address"), "") % >'' Type="WChar" / >
< Parameter Name="@CODE" Value=''http://www.dedecms.com/web-art/htmlbase/Dreamweaver/20060602/< %# IIf((Request.Form("hiddenField") < > Nothing), Request.Form("hiddenField"), "") % >'' Type="WChar" / >
< /Parameters >
< /MM:Update >
Dreamweaver MX是通过mm:update来表识更新的代码的。其格式和MM:Insert类似。
欢迎您访问www.5ucms.org