473,385 Members | 1,736 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,385 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 1546
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.