N
NorbertH
Hi,
I am stucked in the following problem: I am using some Ajax
(javascript) code and I call via xmlhttprequest an aspx File. In the
code-behind aspx.vb file, I am creating an XML and want to send it
back.
Now, as soon as I remove all the html-tags (because I don't need it
for xml) in the aspx file (except the first line e.g. "<%@ Page
Language="VB" AutoEventWireup="true" CodeFile="some_main.aspx.vb"
Inherits="_some_main" %>") the page_load event will be ignored.
E.g. When I set the debugger breakpoint to the line "public writer as
xmlwriter = nothing" (see code below) and press f11 (next step) during
debugging, the program jumps to the next free line after "End Class",
and simply ignores the page_load.
------------------------------------------
Imports System.Web
Imports System.Xml
Imports System.Xml.Serialization
Imports System.Net
Imports System.IO
Imports Microsoft.VisualBasic
Partial Class _some_main
Inherits System.Web.UI.Page
Public Writer As XmlWriter = Nothing
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
[.... and so on ...]
------------------------------------------
I've tried some coding with "AddHandler Page.Load, AddressOf
Page_Load" within the added function "Private Function
InitializeComponent()", but I didn't suceed.
Thanks for you help.
Best regards,
Norbert
I am stucked in the following problem: I am using some Ajax
(javascript) code and I call via xmlhttprequest an aspx File. In the
code-behind aspx.vb file, I am creating an XML and want to send it
back.
Now, as soon as I remove all the html-tags (because I don't need it
for xml) in the aspx file (except the first line e.g. "<%@ Page
Language="VB" AutoEventWireup="true" CodeFile="some_main.aspx.vb"
Inherits="_some_main" %>") the page_load event will be ignored.
E.g. When I set the debugger breakpoint to the line "public writer as
xmlwriter = nothing" (see code below) and press f11 (next step) during
debugging, the program jumps to the next free line after "End Class",
and simply ignores the page_load.
------------------------------------------
Imports System.Web
Imports System.Xml
Imports System.Xml.Serialization
Imports System.Net
Imports System.IO
Imports Microsoft.VisualBasic
Partial Class _some_main
Inherits System.Web.UI.Page
Public Writer As XmlWriter = Nothing
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
[.... and so on ...]
------------------------------------------
I've tried some coding with "AddHandler Page.Load, AddressOf
Page_Load" within the added function "Private Function
InitializeComponent()", but I didn't suceed.
Thanks for you help.
Best regards,
Norbert