If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > database data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-04, 18:05
stretch stretch is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Angry database data

Hello!

I currently run all my ASP code from an Access 2000 database where I use the 'memo' style fields to store my code as text. No problems so far all runs sweet......however I am trying to develop a method of updating the code remotely through URL's/QueryStrings.

Through much trial and error I have managed to encode/decode the ASP code and send it through the URL to other locations and can extract it successfully.

However, I cannot get it back into a database as it tries to run some of the code.

Do I have to convert it again to another format? If so how?

Any comments would be gratefully recieved.
Reply With Quote
  #2 (permalink)  
Old 01-13-04, 17:11
Mike Collier Mike Collier is offline
Registered User
 
Join Date: Jan 2004
Posts: 31
Re: database data

Hmm, interesting aproach.

If your basic requirement is to modify, remotley, the contents of an Access database, then you can use the remote features of adoanywhere browser/REX to modify the data.

But this would require you to instal REX on the server, if it is with an ISP they may refuse.

Both tools are currently free if you register at the adoanywhere forum

http://www.adoanywhere.com

Mike.
Reply With Quote
  #3 (permalink)  
Old 01-13-04, 23:16
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
Do you want to send the content of the code to another page using query string and then save it into database after modification?
Reply With Quote
  #4 (permalink)  
Old 01-13-04, 23:23
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
You could try escaping all of your code first using the javascript escape function.

You would have to unescape the code when you pulled it out of the database and whenever you wanted to use it of course.... I don't know if it would work with what you are doing.
Reply With Quote
  #5 (permalink)  
Old 01-13-04, 23:50
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
Did you try Server.URLEnCode(code) before you send the code to another location using query string?
Reply With Quote
  #6 (permalink)  
Old 01-13-04, 23:58
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Do you need to use querystrings?

Won't that limit the max size of your code?
Reply With Quote
  #7 (permalink)  
Old 01-19-04, 02:20
stretch stretch is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Smile

To all.....

Thanks to all those that came up with suggestions - nice to know there's some help there when you need it!

Just to keep you up to date I changed my tack slightly instead of writing it to a database (the URL encode was trying to run anything with 'Object' in it I found out!) I took the code out of a database (chopped into relative chunks to be passed by the querystring) and reassembled it into a text file writing to it in the first line then appending it there after with each chunk of code.

Just had to call my code from a text page instead.....

Many thanks again,

Stretch
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On