473,326 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

passing form data to a new class, not code behind

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
Jul 19 '05 #1
1 1543
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
-----Original Message-----
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
.

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Garma | last post by:
According to what I have learnt so far, instantiating global objects should be the last resort. Is there any reasons why so? Sometimes some objects or their pointers have to be shared among...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
1
by: Stu | last post by:
Hi, I have a class that is going to format all the fileds in a form post and send them in an html email. How do I pass the Request.Form contenst to a class? I know I can get the raw data by...
1
by: Ray Cheung | last post by:
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...
7
by: Drum2001 | last post by:
I am creating a database to track employee time. I have created a form that allows them to select from a combo box their task, enter their hours, and add any comments they may have. In the...
14
by: Anja | last post by:
Hi everyone, I have a sub form that references a query to get the results. However, what I want to do is filter the results further based on a certain criteria. How can I tell the sub form to...
9
by: =?Utf-8?B?VGVycnk=?= | last post by:
Hi, Is it possible (w/o generating a gazillion errors) to copy a form in VS 2005 so that it can be modified and reused. In other words, I have a form, alot of which I wish to use in a different...
6
by: The Frog | last post by:
Hi Guys, Just wanting some opinions on best method to approach this. I am working on an Access97 db and we have two forms and an ADO connection object to contend with. The desired state is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.