Problem Saving Data
I am a Begginers in ASP programing, so I've been reading some tutorials and making some programs. The've been working son fine, until I begin working in database access, saving/retrieving data in reports.
I make a program to save data, and I call a friend that knows ASP and ASP.NET asking why I cannot save data in the tables if the programs does not vah errors, and he told me "You just have to go to the folder inside of the wwwroot, select properties->Web sharing" and share this folder putting write permisions". OH! this works very good, and I could save data in access table, and some reports.
A few days ago I tryied to do a form saving data in access table, but It doesn't work.
I tried the solution a friend of mine gived to me, but id doesn't work, I reinstalled IIS and it doesn't work neither.
View Replies
ADVERTISEMENT
i have been trying to save data collected from a form to a access db. The problem is that whenever the page refreshes the asp script to save the data is executing. how
can i make sure that the insert statement is executed only if the button is clicked.
View Replies
View Related
I have been playing with some things and with lots of help from Doug and Techniweb I have a script that parses data from a sports web page and returns the results of a table with all the html stripped out - or most of it anyway.
Now I have been working on saving the info to a file so that I can input it to my DB. As far as I can tell the script info is in an array called "myarray" and I have come up with the following code to try and save it:
if Not objFSO.FileExists("nbastats.txt") Then objFSO.CreateTextFile(Server.MapPath("nbastats.txt"))
Set objFile = objFSO.GetFile(Server.mapPath("nbastats.txt"))
Set objWrite = objFile.OpenAsTextStream( 2,-2 )
'Response.Write( myarray )
'Response.End()
objWrite.Write( myarray )
objWrite.Close()
Set objFile = Nothing
Set objWrite = Nothing
If I change obj.write and response.write to any of the other named process of the script i get results - obviously they are not completely parsed. When I try it as it is above - which should be the completley parsed data. I get this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Write'
/scrapes/nbaleaders.txt, line 52
Line 52 is in bold.
View Replies
View Related
I want to display multiple records on a form. The user has the choice of editing 1 or more records and then saving the changes. What would be the basic code I need to save the changed records? How would I capture the individual changes?
Right now the only thing that I can get to save is one record per page, not multiple records on a page, because the request.form variables come in in an array format when I put more than one record on a page.
View Replies
View Related
Does anyone know a website with a guide on how to upload binary data to a MySQL database using ASP?I have a script that i spent a lot of hours on getting to work,but after i upgraded my MySQL server it doesn't work anymore
I'm just getting an error from the odbc driver(upgraded from 2.5X odbc driver to 3.51X):
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Invalid string or buffer length
I'm trying to do the upload via AspSmartUpload,with a script that opens the record and uses .AddNew to the recordset.
View Replies
View Related
I have an MS Access database within the same folder as the web pages on my IIS server. I input data into the forms but the data isn't being saved to Access. Is there a problem with this code?
View Replies
View Related
Is there a way to save post data or post data from a redirect like this: Response.Write("<meta http-equiv=""Refresh"" content=""4; URL=AdminSelectAction.asp"">") If there is not, I'll have to spend a LOT of time coding in session variables and what not.
View Replies
View Related
When I try to save any ASP page, I get the message that "The page will not save correctly". Even though I go ahead and when I go offline the space of images is blank.
I have this website also where I am using ASP pages and my users are facing the same problem. HTML page is created but images are not saved.
What changes are required in ASP code so that images are also saved.
View Replies
View Related
I recieved an FTP address and found no files in html, but in asp. The source code of the site looks like normal html and I updated it locally but don't know how to save it to .asp and replace the file on the server. I can't open the .asp file. What do I need to do this?
View Replies
View Related
How do I load and save a UTF-8 document in XML in ASP/VBS?
Well, the loading* is not the problem actually -- the file is in UTF-8,
and understood correctly -- but once saved, the UTF-8 is replaced by
what seems to be iso-8859-1 (which Flash doesn't understand, but that's
another problem).
View Replies
View Related
i am encountering some problems in converting some data into CSV format..i have alreadi retrieve the data however i do not knoe of ani methods of converting to CSV...is there ani method to save the directory to .csv
View Replies
View Related
I'm currently doing some work with ASP and XML DOM.
Is there any way when saving XML to get ASP to save it in a formatted way? Similar to PHP's formatOutput setting? At the moment my xml is being appended on line e.g
<test>1</test><test>2</test>
Is there a setting to get ASP to save XML like:
<test>1</test>
<test>2</test>
The XML document I'm working on is fairly large and its proving very difficult to read through the xml at the moment.
View Replies
View Related
I am using this :
---------------------------
<IMG SRC="calendar.gif" Align="center" Border="0" onMousedown="alert('Please! Do not download this image. Thanks!')">
-----------------------------
Now what this thing does is that it displays a dialog saying "Plz DO ..." ...
What should i do if i want that NOTHING should happen when a User right clicks on IMAGE ..absolutely nothing should happen ...
Is It POSSIBLE?
Another thing ... When the MOUSE moves over the image a FLOATING TOOLBOX kind of thing appears which has buttons likes SAVE,PRINT,EMAIL and things like that ... so what should i do so that NOTHING happens when the mouse moves over the IMAGE ...
View Replies
View Related
i can't seem to think of a way around, this maybe more of a security question but htought i'd give this forum a shot first.
I have server A and server B
IIS on A but not on B
I have a webapplication that needs to save a file on server B. I can't set up a virtual directory with B since it doens't have iis i believe. If i were to do shortcuts or mapped drives those i think would use the credentials of the internet user i believe which won't have access to the directory, at least that's why i think it won't access them.
Can any one think of a clever workaround this? Can i just set the permissions to allow internet users to write to a folder on server B and it'll save that way?
View Replies
View Related
I am using the following:
---------------------------
<IMG SRC="calendar.gif" Align="center" Border="0" onMousedown="alert('Please! Do not download this image. Thanks!')">
-----------------------------
Now what this thing does is that it displays a dialog saying "Plz DO ..." ...
What should i do if i want that NOTHING should happen when a User right clicks on IMAGE ..absolutely nothing should happen ...
Is It POSSIBLE ?????
Another thing ... When the MOUSE moves over the image a FLOATING TOOLBOX kind of thing appears which has buttons likes SAVE,PRINT,EMAIL and things like that ... so what should i do so that NOTHING happens when the mouse moves over the IMAGE ...
View Replies
View Related
ive got a feature on my site where i need to save the time and date into a database i woud like it to be written like Friday 6th August 2004 13:34:02
View Replies
View Related
Is it possible to remove just the session.sessionID, I have other session variables that I would like to keep?I use this for saving cart information but it needs to be different each time.
View Replies
View Related
I have an asp application that should allow the user to enter Unicode characters.
The characters appear correctly in the browser. When saved in sql 2000 thought they are converted to question marks
etc.
When I enter the characters directly in SQL (using enterprise manager),
they appear correctly in sql as well as in the browser when the asp
page retrieves them.
As soon as I hit save they get overwritten in sql incorrectly.
View Replies
View Related
does anyone know if there is a way to save a webpage to file after the user presses a button?
View Replies
View Related
I am using IIS as a remote configuration tool to modify an XML config
file on the server. So I pull my XML config file through XSLT to give me
an HTML file with forms on. Something like this: Code:
View Replies
View Related
Forme time to time, when attempting to save a webpage in IE6, I see the
error:
------------------------------------
Error saving web page
The web page cannot be saved to the selectged location
------------------------------------
It would not save on any other location.
What is the reason for this error?
Is this a code (server side or client side) to prevent a page from being
saved
View Replies
View Related
I made a website for my work and we have it secure to where you have to login when you come to the site. But for some reason when you use the check box to SAVE PASSWORD it will not save the password.
So each time a client comes back to the site they have to put thier password in (and they arent happy about it) Just wondering if there is a setting I can turn off or turn on to enable the passwords to be saved.
View Replies
View Related
I live in the UK and thus our standard date format is:
DAY/MONTH/YEAR
In my ASP page, when i try to save a date value to a date field in my MS ACCESS database, it will switch the day and month around if the day value is less than the month value. EXAMPLE:
Try to save the 1st of February 2004 as 01/02/2004. When this is saved in to the database, it is saved as 02/01/2004. This plays havoc with my search pages as they cannot find that date since half of it has been swapped around. Ive tried saving it as a string in to a text field and it still does the same.
View Replies
View Related
ive got something on my site where if they visit a page that does not exist a asp page will come up where you can inform me about it if its a broken link ive got a code which i have took from a registration form in a login system but it still runs a query im quite new to asp and dont know how to remove it if ne1 can help the code is below! Code:
View Replies
View Related
I am building a site using ASP & MS Access. I will be migrating the database to Oracle 8i when it is built. I have some date fields on one of my pages which are optional, i.e. users don't have to put dates in them. However, when the date fields are left blank, the information does not get saved to the database, because the SQL statement is incorrect.
what value do I put in my SQL statement in order to save a date as 'Null'?
View Replies
View Related
I have created an access DB with a few BLOBs in it to upload files to, all good and well this is working fine.
However found out I can not write the data directly to the BLOB as I have to upload the file first to the server and than read it with the ADODB.Stream object.
This is like a double action:
first I have to write the file to the server and only then I can read it to the DB...
Is there anyway to do this all at once, I.E. read a file from the client and as I am reading it to actually write it to the DB???
View Replies
View Related
I have to allow users to download files after checking users validity and I
cannot give full URL of file to download e.g www.myserver.com/mydoc.doc
I have seen ASP code some where in MSDN where users has to enter URL like
www.myserver.com/mydoc.asp and this will download the doc file.
View Replies
View Related
i have an ASP Page that generates a PDF document. After the generation i save the generated document as a file. all works fine.the only strange thing is, that my document is stored twice on the filesystem.
View Replies
View Related
I need to publish and save the output of my .asp page as .htm
View Replies
View Related
I need to build code to download automatically image to my local disk.
somethink like
i will specify url in code and it fetches image from that location and save
in my local disk.
for example
http://www.xyz.com/images/test.jpg
and it will store test.jpg in my local folder.
how to achieve this?
View Replies
View Related
Is this safe to store important/critical information in session objects by security point of view, like userID, or any primary key which I dont want users to see.
The scenario is, I'm using XMLHTTP, and server.Execute to include files' outputs dynamically. so I can't share any code variable with them, session is the only way I can share variables with.
View Replies
View Related
I would like to know how I can save my current ASP page
to the server side in html file format.
Then I would like to stream it back to the client side.
View Replies
View Related
I want to save a list of values in a cookie. I already use 1 key of the cookie to save the username. What I want to do is save a list of values as one string by using some kind of separator character.
There may be any number of these values including none. What is a good character to use to separate values? What commands do i use to split a string on the separator character into several strings?
View Replies
View Related