473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to store info in a file with asp

EMW
My ASPX file is opened with two arguments, namely the Width and Height of
the browser window.
Since I've got more ASPX files, I need to keep these values.
I was thinking of writing them in an XML file, but when I do this I get an
error telling me my application does not have the right to write to disk.

Suppose I place a new dataset file in the solution explorer, by adding it to
my project, do I then always have access to this file from my program and
can I update it whenever I want to or will I get the same error?

rg,
Eric
Nov 18 '05 #1
3 1022
asp.net uses a user account to access operating system resources.
your problem is that the account (i think it's "aspnet_wp")
does not have enough permissions to access the location on the disk.
you can grant permissions to the asp.net account,
but, how about storing these values in the session collection?
Session["width"] = width.
sharon.

"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
My ASPX file is opened with two arguments, namely the Width and Height of
the browser window.
Since I've got more ASPX files, I need to keep these values.
I was thinking of writing them in an XML file, but when I do this I get an
error telling me my application does not have the right to write to disk.

Suppose I place a new dataset file in the solution explorer, by adding it to my project, do I then always have access to this file from my program and
can I update it whenever I want to or will I get the same error?

rg,
Eric

Nov 18 '05 #2
EMW
Thanks!

Could you explain a little bit more about the session collection?
And does this permissions stuff also apply about reading a file?

I want to create an XML file at my own pc with some data in it, then copy
this file to the location on the webserver, where my aspx file opens it,
reads it and then creates a table based on it.

rg,
Eric


"Sharon" <ta*******@hotmail.com> schreef in bericht
news:e9**************@TK2MSFTNGP12.phx.gbl...
asp.net uses a user account to access operating system resources.
your problem is that the account (i think it's "aspnet_wp")
does not have enough permissions to access the location on the disk.
you can grant permissions to the asp.net account,
but, how about storing these values in the session collection?
Session["width"] = width.
sharon.

"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
My ASPX file is opened with two arguments, namely the Width and Height of the browser window.
Since I've got more ASPX files, I need to keep these values.
I was thinking of writing them in an XML file, but when I do this I get an error telling me my application does not have the right to write to disk.
Suppose I place a new dataset file in the solution explorer, by adding it
to
my project, do I then always have access to this file from my program

and can I update it whenever I want to or will I get the same error?

rg,
Eric


Nov 18 '05 #3

"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Thanks!

Could you explain a little bit more about the session collection? session is a basic concept when programming for a multiple users
environment.
(which internet is)
theres plenty to read about it in msdn. And does this permissions stuff also apply about reading a file? yes.
any type of access.
I want to create an XML file at my own pc with some data in it, then copy
this file to the location on the webserver, where my aspx file opens it,
reads it and then creates a table based on it. i can think of two ways to do it:
1. transform the xml against xsl document.
2. load the xml into a dataset from which you can produce a dataview
for a datagrid on your page.
rg,
Eric


"Sharon" <ta*******@hotmail.com> schreef in bericht
news:e9**************@TK2MSFTNGP12.phx.gbl...
asp.net uses a user account to access operating system resources.
your problem is that the account (i think it's "aspnet_wp")
does not have enough permissions to access the location on the disk.
you can grant permissions to the asp.net account,
but, how about storing these values in the session collection?
Session["width"] = width.
sharon.

"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
My ASPX file is opened with two arguments, namely the Width and Height of the browser window.
Since I've got more ASPX files, I need to keep these values.
I was thinking of writing them in an XML file, but when I do this I
get
an error telling me my application does not have the right to write to disk.
Suppose I place a new dataset file in the solution explorer, by adding it
to
my project, do I then always have access to this file from my program

and can I update it whenever I want to or will I get the same error?

rg,
Eric



Nov 18 '05 #4

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

Similar topics

5
by: Lars Behrens | last post by:
Hi there! For a web project I need a little expert help. I don't have written much code yet, just been fiddling around a bit, testing and planning. The web site will have a submission page for...
3
by: faktujaa | last post by:
Hi, Currently im storing the connection info. in XML file on the C drive. the only problem with this is that anybody can open and check the database name. I know encryption can solve this problem...
1
by: rviray | last post by:
I am making multiple web service calls from a single ASPX page, th return from those WS calls are XmlDataDocuments. I am trying to make decision on where I should store the info (i.e., SQL, new xml...
6
by: Rudy | last post by:
Hello all! I am amazed how many posts I have read to store an image in SQL, and just as many against it. So I learned how to store an image in a SQL db and retrieve the image. A little tricky,...
9
by: Ben | last post by:
Hi Please Help?! I have created a file which contains some app settings, plus two images. I used the code below to read the contents of the image, then save it with my app settings: ...
2
by: Mark | last post by:
Hello, I see and read that VS2005 Web apps no longer creates a csproj file. While it says that some of that info is now stored in the web.config, much of it is not. For example, what physical file...
1
by: rdemyan via AccessMonster.com | last post by:
I'm trying to implement a licensing scheme. There are three types of licenses: Trial - good for 30 to 60 days Interim - good for 1 year Fully Paid - no expiration Everything is working fine...
8
by: Merk | last post by:
I'm looking for a safe and maintainable way to store connection string info (connecting to SQL Server 2005 from .NET 2.0 Windows Forms client app); things like server name or IP address and...
1
by: gdarian216 | last post by:
I am trying to read in inputs from a file to my program. I have declared a struct that holds a string and some arrays. struct records { string name; float quizzes; ...
8
by: ahilar12 | last post by:
Hi experts, I have a form with many textboxes,listboxes in php.I have a edit button to edit the values in the form.once i click the edit button the existing values should be displayed so that...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.