473,508 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reference Dataset in App_code directory

HIK
I am trying to write a class which has a function that loads a dataset,
and performs and xslt tranformtion on the dataset and returns the
resulting string.

In asp.net 1.1 I was able to do most of the work with the designer.
1. Create a dataadapter in the designer
2. generate a dataset
3. Create a proceedure that would reference the dataset. Fill it,
convert the dataset to an xmldatadocument and then transform the
xmldatdocument with xsl.

in asp.net 2.0 (beta 2). I tried the following
1. created a dataset with the designer and placed it in the app_code
directory.
2. Configured a tableadapter for the dataset.
3. created a class (in the app_code directory) with a function that
fills the table with the tableadapter.

I cannot, however find a way to reference the dataset and convert it to
xml. The dataset does not show up in intellisense or in the object
browser. I cannot find any methods in the table adaptor to generate xml.

Can someone explain what I am doing wrong, or point me to an article
explaining how to reference the dataset in the app_code directory?

Haim
Nov 19 '05 #1
1 2453
HIK
I found my problem. The name of the datset is called "dataset". This
is in spite of the fact that I gave it a different name. In the
solution explorer the name datset doesn't appear. Maybe its a beta bug.

HIK wrote:
I am trying to write a class which has a function that loads a dataset,
and performs and xslt tranformtion on the dataset and returns the
resulting string.

In asp.net 1.1 I was able to do most of the work with the designer.
1. Create a dataadapter in the designer
2. generate a dataset
3. Create a proceedure that would reference the dataset. Fill it,
convert the dataset to an xmldatadocument and then transform the
xmldatdocument with xsl.

in asp.net 2.0 (beta 2). I tried the following
1. created a dataset with the designer and placed it in the app_code
directory.
2. Configured a tableadapter for the dataset.
3. created a class (in the app_code directory) with a function that
fills the table with the tableadapter.

I cannot, however find a way to reference the dataset and convert it to
xml. The dataset does not show up in intellisense or in the object
browser. I cannot find any methods in the table adaptor to generate xml.

Can someone explain what I am doing wrong, or point me to an article
explaining how to reference the dataset in the app_code directory?

Haim

Nov 19 '05 #2

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

Similar topics

11
29754
by: Steve Franks | last post by:
I'm using VS.NET 2005 Beta 2. I have a helper C# class I wrote that I placed in my /App_Code directory. Everything runs fine locally. However when I use the "Copy Web" function to upload the site...
4
1754
by: paul | last post by:
Hi, Im trying to add a dataset to the app_code directory using vs2005 \ SQL2005 beta 2. When I run through the wizard I select the option to auto create new Stored Procedures (Select, update,...
8
2351
by: PJ | last post by:
How can I get a reference to the master page class? It is defined as a partial class, but I cannot seem to type a variable to the name of the partial class? The compiler continually shows "The...
3
3431
by: GS | last post by:
I noticed that when you right click App_Code directory there is an option to create dataset which creates .xsd file in that directory. I can see that I can design tables and links there but I have no...
0
1042
by: m.roello | last post by:
Hi, Anyone can tell me how to define different custom namespaces for xsd datasets in ASP.NET web sites For example, Suppose to have the above folder tree in the App_Code directory App_Code...
2
1183
by: PeterKellner | last post by:
I'm wanting to reference page controls from a cs file in the app_code directory. I'm getting a _Defaullt could not be found, missing directive or assembly reference error. Very simple example...
1
3616
by: Mac | last post by:
I'm trying to validate input from an xml source to a dataset in dotnet2.0. As far as I can see, type errors correctly cause an exception, but values that are the correct type but do not satisify...
9
2837
by: rn5a | last post by:
Is putting a VB class file in the special directory named App_Code the same as relocating the VB class file from the App_Code directory to another directory & then using the VBC tool, compiling the...
1
1852
by: Frank Miverk | last post by:
Hi, I have a situation which I think is fairly common. 1. Public area 2. Secure area accessed via SSL e.g. MyWebsite/ /MySecureWebsite
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
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
7383
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...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.