473,401 Members | 2,068 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,401 software developers and data experts.

Ini file equivalent ASP.Net etc

We need a way to replace .ini files or at least a safe way to
read/parse them in WEB applications. Hard coding User Identification
and Passwords in pages causes to much maintenance. Calling API's
from ASP isn't viable/allowable or secure. How are others addressing
this issue?

Thanks - Mike

Jan 20 '06 #1
4 1014
You could use web config. You can store this encrypted (AFAIK generalized in
2.0, there is a support article about specific entries being cryptable in
1.1).
http://support.microsoft.com/kb/329290/en-us

(In case this is ASP instead of ASP.NET try an ASP group instead).

--
Patrice

"MikeVance" <md*****@gmail.com> a écrit dans le message de
news:11**********************@o13g2000cwo.googlegr oups.com...
We need a way to replace .ini files or at least a safe way to
read/parse them in WEB applications. Hard coding User Identification
and Passwords in pages causes to much maintenance. Calling API's
from ASP isn't viable/allowable or secure. How are others addressing
this issue?

Thanks - Mike

Jan 20 '06 #2
I'm new to ASP.net, so what would the code look like to find/read a key
like [TheParm]=12345 from Web.config

Jan 20 '06 #3
in vb.net

System.Configuration.ConfigurationSettings.AppSett ings("config setting
name")

Jan 20 '06 #4
> We need a way to replace .ini files or at least a safe way to
read/parse them in WEB applications. Hard coding User Identification
and Passwords in pages causes to much maintenance. Calling API's
from ASP isn't viable/allowable or secure. How are others addressing
this issue?


Try looking into storing values in the web.config file; it's fairly easy to
access custom values from your application...
Jan 20 '06 #5

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

Similar topics

22
by: Long | last post by:
Problem: to insert the content of a file in an HTML document at a specific location. One possible way is to add a WebCharm tag like this: <%@charm:text 20 0 my_include_file.txt %> When the...
4
by: Oliver Knoll | last post by:
According to my ANSI book, tmpfile() creates a file with wb+ mode (that is just writing, right?). How would one reopen it for reading? I got the following (which works): FILE *tmpFile =...
9
by: Sharon | last post by:
hi, I want to extract a string from a file, if the file is like this: 1 This is the string 2 3 4 how could I extract the string, starting from the 10th position (i.e. "T") and...
3
by: CES | last post by:
All, I'm trying to figure out how I would execute code that would be shared over a number of wwwroot folders. Basically it would be the equivalent of an .inc file only instead of
17
by: Rasta | last post by:
Hi, I want to create a vb.net procedure that opens a .csv file from a specified directory and then load that file into a SQL server table located on a remote server. Can someone point me towards...
13
by: George | last post by:
Hi, I am re-writing part of my application using C#. This application starts another process which execute a "legacy" program. This legacy program writes to a log file and before it ends, it...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
12
by: Sankar | last post by:
Dear all, I am programming in Linux , wherein I need to know a couple of things. 1) Does an API exist that can copy file onto another file ( an API equivalent of 'cp') ? 2) Is there an API...
185
by: jacob navia | last post by:
Hi We are rewriting the libc for the 64 bit version of lcc-win and we have added a new field in the FILE structure: char *FileName; fopen() will save the file name and an accessor function will...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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,...
0
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...

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.