N
Nathan Sokalski
In my *.aspx.vb file, I override the RaisePostBackEvent() method so that I
can run code during any postback. I know that a postback is occurring
because IsPostBack() returns True, but none of the code in the following is
executed:
Protected Overrides Sub RaisePostBackEvent(ByVal sourceControl As
System.Web.UI.IPostBackEventHandler, ByVal eventArgument As String)
Dim outputwriter As System.IO.StreamWriter =
System.IO.File.AppendText(Server.MapPath("debugging.txt"))
outputwriter.WriteLine(String.Format("eventArgument={0}; Time={1}",
eventArgument, Date.Now.ToLongTimeString()))
outputwriter.Close()
MyBase.RaisePostBackEvent(sourceControl, eventArgument)
End Sub
Am I doing something wrong here? Is there something else I must do in order
to use the the RaisePostBackEvent() method? Any help would be appreciated.
Thanks.
can run code during any postback. I know that a postback is occurring
because IsPostBack() returns True, but none of the code in the following is
executed:
Protected Overrides Sub RaisePostBackEvent(ByVal sourceControl As
System.Web.UI.IPostBackEventHandler, ByVal eventArgument As String)
Dim outputwriter As System.IO.StreamWriter =
System.IO.File.AppendText(Server.MapPath("debugging.txt"))
outputwriter.WriteLine(String.Format("eventArgument={0}; Time={1}",
eventArgument, Date.Now.ToLongTimeString()))
outputwriter.Close()
MyBase.RaisePostBackEvent(sourceControl, eventArgument)
End Sub
Am I doing something wrong here? Is there something else I must do in order
to use the the RaisePostBackEvent() method? Any help would be appreciated.
Thanks.