473,468 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VS2008: should data sets be placed in App_Data?

dan
I'm working on a small Web project in VS2008. In VS2005 it was recommended
that DataSet be placed in App_Data folder (the framework did that
automatically). In VS2008 the framework does not give me that option. The
Add.New Item in the App_Data context menu does not even list the DataSet.

Does anyone know what is behind the change and what the recommended practice
is?
Thanks.
Mar 19 '08 #1
7 2294
Datasets are usually stored in memory, as an in-memory database.

Are you writing the Dataset to a file ?
If not, using App_Data doesn't make sense.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"dan" <da*@nospam.comwrote in message news:uo*************@TK2MSFTNGP04.phx.gbl...
I'm working on a small Web project in VS2008. In VS2005 it was recommended that DataSet be placed in App_Data folder
(the framework did that automatically). In VS2008 the framework does not give me that option. The Add.New Item in
the App_Data context menu does not even list the DataSet.

Does anyone know what is behind the change and what the recommended practice is?
Thanks.

Mar 19 '08 #2
Try to add them from the main menu. It should suggest to add them in
App_Code...

It looks like to me you are confusing DataSets with data files (such as a
SQL Server MDF file) ???

--
Patrice

"dan" <da*@nospam.coma écrit dans le message de news:
uo*************@TK2MSFTNGP04.phx.gbl...
I'm working on a small Web project in VS2008. In VS2005 it was
recommended that DataSet be placed in App_Data folder (the framework did
that automatically). In VS2008 the framework does not give me that
option. The Add.New Item in the App_Data context menu does not even list
the DataSet.

Does anyone know what is behind the change and what the recommended
practice is?
Thanks.

Mar 19 '08 #3
dan
In VS2008 it does not suggest as it used to in VS2005. The only way to
place DataSets (i.e. xsd) in App_Code is to drag them into the folder after
creating them. It is not a big deal but I'm curious what the best practice
is.
Another difference is that when you Add a DataSet the TableAdapter wizard is
no longer automatically launched.
Does your VS2008 behave like VS2005 in the above scenarios?

And I don't mean data files.

"Patrice" <http://www.chez.com/scribe/wrote in message
news:ug**************@TK2MSFTNGP03.phx.gbl...
Try to add them from the main menu. It should suggest to add them in
App_Code...

It looks like to me you are confusing DataSets with data files (such as a
SQL Server MDF file) ???

--
Patrice

"dan" <da*@nospam.coma écrit dans le message de news:
uo*************@TK2MSFTNGP04.phx.gbl...
>I'm working on a small Web project in VS2008. In VS2005 it was
recommended that DataSet be placed in App_Data folder (the framework did
that automatically). In VS2008 the framework does not give me that
option. The Add.New Item in the App_Data context menu does not even
list the DataSet.

Does anyone know what is behind the change and what the recommended
practice is?
Thanks.


Mar 19 '08 #4
dan
I did not mean instantiated DataSets objects at run time. I was referring
to the process of creating/adding strongly typed data sets to a project in
VS2008 (i.e. Solution Explorer.Add New Item).

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:e$**************@TK2MSFTNGP02.phx.gbl...
Datasets are usually stored in memory, as an in-memory database.

Are you writing the Dataset to a file ?
If not, using App_Data doesn't make sense.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"dan" <da*@nospam.comwrote in message
news:uo*************@TK2MSFTNGP04.phx.gbl...
>I'm working on a small Web project in VS2008. In VS2005 it was
recommended that DataSet be placed in App_Data folder (the framework did
that automatically). In VS2008 the framework does not give me that
option. The Add.New Item in the App_Data context menu does not even
list the DataSet.

Does anyone know what is behind the change and what the recommended
practice is?
Thanks.


Mar 19 '08 #5
Yes, I have the same behavior that is if I chosose "WebSite", "Add new
item", "Dataset" it suggest to add to app_code. BTW which model are you
using for your project (web site or web application ?)

--
Patrice
"dan" <da*@nospam.coma écrit dans le message de news:
%2***************@TK2MSFTNGP06.phx.gbl...
In VS2008 it does not suggest as it used to in VS2005. The only way to
place DataSets (i.e. xsd) in App_Code is to drag them into the folder
after creating them. It is not a big deal but I'm curious what the best
practice is.
Another difference is that when you Add a DataSet the TableAdapter wizard
is no longer automatically launched.
Does your VS2008 behave like VS2005 in the above scenarios?

And I don't mean data files.

"Patrice" <http://www.chez.com/scribe/wrote in message
news:ug**************@TK2MSFTNGP03.phx.gbl...
>Try to add them from the main menu. It should suggest to add them in
App_Code...

It looks like to me you are confusing DataSets with data files (such as a
SQL Server MDF file) ???

--
Patrice

"dan" <da*@nospam.coma écrit dans le message de news:
uo*************@TK2MSFTNGP04.phx.gbl...
>>I'm working on a small Web project in VS2008. In VS2005 it was
recommended that DataSet be placed in App_Data folder (the framework did
that automatically). In VS2008 the framework does not give me that
option. The Add.New Item in the App_Data context menu does not even
list the DataSet.

Does anyone know what is behind the change and what the recommended
practice is?
Thanks.



Mar 20 '08 #6
dan
I just noticed that made a silly mistake in my original post. It should've
read 'App_Code' instead of 'App_Data'.
Sorry about the confusion.

I'm going back to VS2005. Could not get it to work. I've got also other
issues with VS2008: no table templates, no ATL server libraries for native
development, etc. Simply not worth the trouble.

Thanks to everyone who tried to help.

"dan" <da*@nospam.comwrote in message
news:uo*************@TK2MSFTNGP04.phx.gbl...
I'm working on a small Web project in VS2008. In VS2005 it was
recommended that DataSet be placed in App_Data folder (the framework did
that automatically). In VS2008 the framework does not give me that
option. The Add.New Item in the App_Data context menu does not even list
the DataSet.

Does anyone know what is behind the change and what the recommended
practice is?
Thanks.

Mar 20 '08 #7
dan
I created a new project (i.e. web application) instead of new web site as I
used to in VS2005. I was happy to see the model back (i.e. like in VS2003).
Thanks for bringing it up. Do you think that could've made a difference?
I'll try web site later today.
Do you know if best practices are different for web applications? Any links
that deal with the subject?
Thanks
Dan
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Yes, I have the same behavior that is if I chosose "WebSite", "Add new
item", "Dataset" it suggest to add to app_code. BTW which model are you
using for your project (web site or web application ?)

--
Patrice
"dan" <da*@nospam.coma écrit dans le message de news:
%2***************@TK2MSFTNGP06.phx.gbl...
>In VS2008 it does not suggest as it used to in VS2005. The only way to
place DataSets (i.e. xsd) in App_Code is to drag them into the folder
after creating them. It is not a big deal but I'm curious what the best
practice is.
Another difference is that when you Add a DataSet the TableAdapter wizard
is no longer automatically launched.
Does your VS2008 behave like VS2005 in the above scenarios?

And I don't mean data files.

"Patrice" <http://www.chez.com/scribe/wrote in message
news:ug**************@TK2MSFTNGP03.phx.gbl...
>>Try to add them from the main menu. It should suggest to add them in
App_Code...

It looks like to me you are confusing DataSets with data files (such as
a SQL Server MDF file) ???

--
Patrice

"dan" <da*@nospam.coma écrit dans le message de news:
uo*************@TK2MSFTNGP04.phx.gbl...
I'm working on a small Web project in VS2008. In VS2005 it was
recommended that DataSet be placed in App_Data folder (the framework
did that automatically). In VS2008 the framework does not give me that
option. The Add.New Item in the App_Data context menu does not even
list the DataSet.

Does anyone know what is behind the change and what the recommended
practice is?
Thanks.



Mar 20 '08 #8

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

Similar topics

5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
9
by: dennist685 | last post by:
Walkthrough: Creating a Web Page to Display Access Database Data I've started the above walkthrough. However, near the beginning it gives the following instructions To set permissions in the...
2
by: Victor Paraschiv | last post by:
In a webservice I need to store the credentials in a xml file.Of course the password string is hashed. The XML is stored in App_Data. Now I need to open this file for read/write. I've tryed a lot...
1
by: kurt sune | last post by:
This drives me nuts,I have put a textfile in App_GlobalResources. How do I read it in runtime? I have googled for two days now. GetExecutingAssembly.GetManifestResourceStream("XYZ.xml") returns...
5
by: wwwmike | last post by:
I have an asp.net 2.0 application where I move about 200,000 text files daily in and out. When using VS 2005 to debug my application everything works find if only a few files are in the folder....
4
by: Joey | last post by:
asp.net 2/C#/VS2005 I have a web app where I use a stream writer to create a CSV (text) file. I then use my code to save the file in the site's 'App_Data' folder, in a subfolder called 'Temp'....
4
by: slinky | last post by:
I'm making a OLE DB connection in code and was wondering if anyone could identify what the syntax errors I have. I've tried countless combinations and all give errors. New...
2
by: Academia | last post by:
I have vs2005 installed on the System disk and vs2008 installed on a different disk. I want to remove VS2005. I read one time about some problem with uninstalling vs2005 after vs2008 is...
7
by: Arthur | last post by:
hi, this might be a simple one to them who know: i'm developing an asp.net project and use the debug mode. i have a xml file which contains data, that shall be read, if a specific page is...
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
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...
1
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...
0
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...
0
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.