473,765 Members | 2,086 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 2480
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
29884
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 to the production server, I get the following error when trying to run the page on production: "System.Web.HttpException: The directory '/App_Code' is not allowed because the application is precompiled." Anyone know this works fine locally but...
4
1781
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, delete, insert commands) after already specifying a very basic select command that consists of two fields. All procedures are created fine and i'm able to save the xsd file. Then I create a new gridview in which i use the xsd file object as my
8
2369
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 type 'MyMaster' is not defined." I would like to reference the master page from a control, by casting the Master property of the Page property to the type, but obviously I cannot do this if I can't get a reference to the actual type. Thanks,
3
3445
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 idea what this can be used for. Can somebody provide references or web links about this feature. Thanks, GS
0
1053
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 --->Orders --->Customers
2
1195
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 below. Default.aspx.cs: using System; using System.Web.UI; public partial class _Default : Page
1
3632
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 xsd:restriction conditions are ingested without a murmur. Is this a bug or a feature? Very frustrating. Evidence: 1) XML data <?xml version="1.0" encoding="utf-8"?>
9
2854
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 VB class file into a DLL & putting the DLL in the bin directory? Though while running an ASP.NET app using either of the 2 approaches doesn't make any difference, Visual Web Developer 2005 Express Edition behaves erratically sometimes if the...
1
1872
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
9566
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9946
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8830
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7371
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6646
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5272
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3530
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.