Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2004, 10:07 AM
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default why not run in MM:update event?

I have download Dreamweaver MX DreamweaverCtrls Replacement and install.

but I find the MM:update's event don't run,why?

please see below code.

<MM:Update
id="myU"
OnUpdated="myU_Updated"
OnPreUpdate="myU_OnPreUpdate"
ConnectionString=
........

</MM:Update>

<script runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
If Not IsPostBack Then
DataBind()
End If
End Sub

Sub myU_Updated(sender As Object, e As DreamweaverCtrls.UpdatedEventArgs)
response.write("¼º¾­¸üÐÂÍê±Ï")
trace.warn("abc","¼º¾­¸üÐÂÍê±Ï")
Page.RegisterStartupScript("warnings","<script language='JavaScript'>alert('±£´æ³É¹¦£¡' );" & chr(60) & "/script>")
End Sub

sub myU_OnPreUpdate(sender As Object, e As DreamweaverCtrls.PreUpdateEventArgs)
response.write("ÕýÔÚ×¼±¸¸üÐÂ!")
end sub

sub butSave_onclick(Sender As Object,e As EventArgs)
page.validate()
if page.isvalid=true then
myU.expression=true
myU.doinit()
end if
end sub
</script>

But myU_OnPreUpdate and myU_Updated not run, why?
please expert help me,thank







Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any metthod to run timer tick event when jitendra_jkr General .NET 1 May 31st, 2007 04:51 PM
Extra conditional update click event in FormView nuttylife2 ASP.NET 2.0 Professional 1 July 31st, 2006 08:00 PM
MsgBox in Enter Event does not allow update richtrini Excel VBA 2 March 8th, 2006 10:43 AM
update qry to run on page load wolfberg Classic ASP Databases 3 February 11th, 2005 01:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.