473,657 Members | 2,419 Online
Bytes | Software Development & Data Engineering Community
+ 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 2307
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.com wrote in message news:uo******** *****@TK2MSFTNG P04.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.com a écrit dans le message de news:
uo************* @TK2MSFTNGP04.p hx.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******** ******@TK2MSFTN GP03.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.com a écrit dans le message de news:
uo************* @TK2MSFTNGP04.p hx.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.comwrot e in message
news:e$******** ******@TK2MSFTN GP02.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.com wrote in message
news:uo******** *****@TK2MSFTNG P04.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.com a é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******** ******@TK2MSFTN GP03.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.com a écrit dans le message de news:
uo************* @TK2MSFTNGP04.p hx.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.com wrote in message
news:uo******** *****@TK2MSFTNG P04.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******** ********@TK2MSF TNGP06.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.com a é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******* *******@TK2MSFT NGP03.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.com a écrit dans le message de news:
uo************* @TK2MSFTNGP04.p hx.gbl...
I'm working on a small Web project in VS2008. In VS2005 it was
recommende d 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
2774
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 to the database to get the next page. Is there a way to use the dataset to allow us to read back and forth in it instead of going back to the database to get it? Thanks,
9
2423
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 App_Data folder In Windows Explorer, move to the root folder for the Web site. The default location for your new Web site is c:\inetpub\wwwroot\AccessSample.
2
1922
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 of paths but none worked. Cassini tries to open a file from "'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\App_Data\Users.xml' and IIS is not far from that. I've tryed the followind parths: "~/App_Data/Users.xml"
1
2649
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 nothing. Should I put it in App_Data instead? How do I read it from there?
5
3428
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. (The folder is locaed within the project file). Yesterday I did a stress test were I placed 200,000 files into this folder. As a result I took me about 15 mintues to start VS 2005 and I was not able to start debugging since the asp.net compiler...
4
24335
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'. Finally, I redirect the page to that file in order to serve it out (push the download) to the user. This all worked great in .net v1.1. Now, in my new .net v2 app, everytime the page redirect occurs, the browser displays "The webpage cannot be...
4
1505
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 OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data & _ Source=" & Server.MapPath("~/App_Data/Lowes.mdb") & ";" & _ "Initial Catalog=Assets;Integrated Security=SSPI") Thanks!!
2
2439
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 installed but can't find the site now. Is there a problem? Would reinstalling vs2008 fix any problem that may occur because of uninstalling vs2005.
7
2610
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 run. when i build the project the file is correctly copied to the build location (i selected "build action: none" and "copy if newer"). but when the project is run, the xml file is missing at the directory from which the site is executed. it does not...
0
8395
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
7330
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
6166
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
5632
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
4155
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
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
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.