473,661 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

define Namespaces for Dataset in ASP.NET Web Projects for VisualStudio 2005

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

in the Orders folder I have a dataset called DataSet1.xsd
in the Customers folder I have a dataset called DataSet2.xsd

in the two folders there are also .cs files that are grouped in two
custom namespaces (MyNamespaceRoo t.Customers and MyNamespaceRoot .Orders)

The two xsd files are generated at runtime with the default "ASP"
Namespace, but I need to specify a custom namespace for this two datasets
(eg MyNamespaceRoot .Orders for DataSet1.xsd and
MyNamespaceRoot .Customers for DataSet2.xsd )

When a Web project is very large, subdividing it in custom namespaces
still remains a good coding tecnique. And now that the aspx files are
separated from the App_Code folder, the need of grouping logical classes
GROWS.

Since the Visual Studio 2003 custom namespaces were fully supported in
Visual Studio, now I hope to can do the same in the NEW RESTYLED IDE.

I know that the architecture of the ASP .NET project has completly
rewritten, with the compiler...prec ompiler... but the IDE support should
SPEED UP the time of writing application, above all in very large projects.

Any information will be appreciated
Marco Roello
Jan 25 '06 #1
0 1045

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

Similar topics

9
2219
by: Patty O'Dors | last post by:
Hi Can somebody please tell me what namespaces are actually for? I notice that when I start a new project in C#, it puts everything in a namespace of the same name as the project. I found them a bit annoying as when I save a class's .cs file to my 'generic code' folder, and then put it in another project, I have to manually go and change the namespace name. This I find a bit of a PITA. I used VB.NET for a bit and found it didn't have...
3
989
by: Chris Welch | last post by:
I'm developing my company's new site in Visual Studio 2005 (Beta 2) and I'm wondering if anyone knows if there is a way to set the default namespace of the Web project. I can't find it in the Web Properties, or in the Web.Config. Also, I'm trying to access static/shared methods in Page1.aspx from Page2.aspx, however Visual Studio doesn't seem to catch on that the class Page1 even exists. Anyone have any ideas? Thanks,
0
1223
by: dbuchanan | last post by:
Hello, How to I update a table or tableAdapter in my dataset1.xsd after I have added new columns to the underlying table? I refreshed the datasource in server explorer - it worked there but had no effect on my dataset. I tried to refreshed the dataset in Data Sources window - nothing happened - the new columns do not show.
0
1034
by: abunet | last post by:
I have a very large web project converted from ASP 1.1 to 2.0 I my App_Code folder have two subfolders: Orders and Customers (in the real environment I have more folders) inside each folder there are several classes (.cs) define in two different namespaces: All the classes in the Orders folder have a namespace called MyProject.Orders All the classes in the Customers folder have a namespace called yProject.Customers The question is:
2
1337
by: jason | last post by:
Please pardon my completely lack of understanding on the topic. I have a website I developed with another developer. We are both far from experts in VB.NET and OOP. We developed the site WITHOUT VS.NET, compiling vb.net code into a common dll in the bin directory off the root of the website. That one vb code creates a namespace we import in all of our ASP.NET code. Compiling was done fromt he command line use vbc.exec. The site works...
19
19327
by: Dave | last post by:
If Iwant to check if dataset1.SelectQuery1.column1 == System.DBNull.Value. How do I do this? What I wrote above will give an error. -- L. A. Jones
0
1352
by: Steven Prasil | last post by:
When I start my VisualStudio 2005 it creates automatically new folders: D:\work\Visual Studio 2005 D:\work\Visual Studio 2005\Projects D:\work\Visual Studio 2005\Templates Yes, in VS menu tools -options -Projects and Solutions
6
1717
by: =?Utf-8?B?TUNN?= | last post by:
What is the difference between importing a namespace at the: 1. Project level 2. web.config level 3. Page level What are the requirements/benefits of each? If I import a namespace such as System.Collections at the Project level and the user calls a page that does not use that namespace, is that wasting
1
2363
by: jonbartlam | last post by:
Hi There I'm not sure what exactly is going wrong here. I'm writing an application that retreives a table from a database (tbl_internalfaults) and updates it. (Actually, just the status column will need updating with 'CLOSED' where necessary.) I have been trying to use the OLEDB command builder to build the statement to update the database however it is returning an error whenever I try to do this. I already have a dataset full of data, 1...
0
8432
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...
1
8545
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,...
1
6185
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
5653
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
4179
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...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
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 we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.