473,471 Members | 4,687 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

opening asp file and loading certain text into a form

Hello.

Can anyone help me with the following.

I have a config.asp file with contains information like:

'---------------------------------------------------------------------
' Is Store Admin installed. (Y/N)
'---------------------------------------------------------------------
const StoreAdminInstalled = "y"
'-- ADDED - Version 1.8 ----------------------------------------------
' Put Store in Debug Mode? (Y/N)
'---------------------------------------------------------------------
const debugMode = "N"
'-- ADDED - Version 2.2 ----------------------------------------------
' Lock the Database. (Y/N)
'---------------------------------------------------------------------
const dbLocked = "N"
'-- ADDED - Version 2.2 ----------------------------------------------
' Additonal login for general non-administrator staff. This login
' will NOT allow acces to the setup and configuration utilities.
'---------------------------------------------------------------------
const nonAdminUser = ""
const nonAdminPass = ""
How can I get an asp script to open the config.asp and list the following in
a form:

of course the form will be preformatted containing titles like:

debugmode
dblocked
nonAdminUser
nonAdminPass

I would like information currently contained within the "" to be stored in a
textbox.

and when I click the update button, have the script either edit the
config.asp or create a new file and delete the old config.asp and then
rename the new file.

can this be done?


--
To reply, remove "TRASH" from email address

Thanks,

Andie


Jul 19 '05 #1
1 1550
Andie wrote:

I have a config.asp file ...

I would like information currently contained within the "" to be
stored in a textbox.

and when I click the update button, have the script either edit the
config.asp or create a new file and delete the old config.asp and then
rename the new file.

can this be done?


yep you can do either, I suspect option 2 will be less hassle - you will
need the File System Object

--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #2

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

Similar topics

7
by: balgach | last post by:
Greetings all, I have a group of rather large files (by group i mean close to 2x10^7 files, each 12-15megs) now i need information which is stored in just the last 512 bytes of each file. i...
1
by: Charlie T | last post by:
hello, I need a little guidance here... I am tring to parse out an XML file, but with some restrictions. here is my XML FILE: ---------XML----------- <XML> <Cam name="01">...
7
by: theyas | last post by:
How can I get my code to NOT display two "Open/Save/Cancel/More Info" dialog boxes when using the "Response.WriteFile" method to download a file to IE I've asked about this before and didn't get a...
16
by: iwdu15 | last post by:
how can i open a file i saved and place the info into different text boxes?
1
by: Richard Wright | last post by:
I'm totally new to VB. When I save a project, it saves without any fuss. I can then open it with no fuss from VB - but on the screen no forms appear. It is as though the project is not there,...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
8
by: hazmaz | last post by:
I am writing a program will have a function where it opens a text file, and fills a list box line by line from the text file. It works fine, except for when I tried to load a dictionary which is ~...
4
by: Rolf Rosenquist | last post by:
From a page with a form I collect the fields in the next page. The fields are compared with a database and if a certain condition does not fit, I want to go back to the first page with the form,...
3
by: Zabooster | last post by:
I have a project to submit in a few hours' time. In order to explain what I need clearly, I will provide a very simple example. Suppose I have an application consisting of 3 forms- The first has a...
0
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,...
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
1
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...
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: 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.