passing form data to a new class, not code behind

  • Thread starter Thread starter Ray Cheung
  • Start date Start date
R

Ray Cheung

I have a file: here.aspx
within this aspx file, there are 2 textbox, name and age.
I call a new class from within this file.
The new class is in the file yaya.vb
The main purpose of yaya.vb is to fill a xml file using
xmltextwriter.
I can post any constant data to the xml file. BUT
I do not know how to post the name.text and age.text onto
the xmlfile because I cannot use the code behind in this
case because the new class is not inherit from the
here.aspx file.

I have checked the microsoft web site and the
Reference: dot net framework help - SaveXmlDocument Sample.

Anyone help please. Thanks a million

Ray
 
I found a solution to the problem.
Do not call the class from the here.aspx file
call it from the vb file.
Then everything fixed.

Ray
 
Back
Top