473,379 Members | 1,511 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,379 software developers and data experts.

Migrating from Vb Script to VB.NET & web.config

Hi everyone, I'm using Visual Web Developer '05 beta, VB.NET, Access.

I'm a complete newbie to .NET, so please bear with me! In classic ASP. I
used to put my connection string in global.asa. Since web.config is XML,
obviously I can't do a Server.MapPath() in that file. Of course I'll know the
path to the DB while working locally, but what about when I'm ready to build
my application and put it on a remote server in a shared hosting environment?

How can I map the path to the db in web.config? What should I be doing?

Thanks,
Brandon
Jul 21 '05 #1
1 1587
try to store the db path in the appsettings section of your web.config

"Brandon Taylor" wrote:
Hi everyone, I'm using Visual Web Developer '05 beta, VB.NET, Access.

I'm a complete newbie to .NET, so please bear with me! In classic ASP. I
used to put my connection string in global.asa. Since web.config is XML,
obviously I can't do a Server.MapPath() in that file. Of course I'll know the
path to the DB while working locally, but what about when I'm ready to build
my application and put it on a remote server in a shared hosting environment?

How can I map the path to the db in web.config? What should I be doing?

Thanks,
Brandon

Jul 21 '05 #2

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

Similar topics

0
by: Pieter | last post by:
Hi, I migrated one of my solutions(VB.NET 1.1, containing a Windowds Forms project and a Class Library project) to the 2.0 Framework using the inbuild-wizard. After migrating the...
11
by: Mike Towers | last post by:
Hi, The company I work for has a web site (IIS5) build using ASP and COM+ components which are written in VB6 and provide the business and database logic for the site. We would very much like...
3
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff....
1
by: Brandon Taylor | last post by:
Hi everyone, I'm using Visual Web Developer '05 beta, VB.NET, Access. I'm a complete newbie to .NET, so please bear with me! In classic ASP. I used to put my connection string in global.asa....
4
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the...
1
by: Max | last post by:
hi i have stored my connction string in web.config as we do usually. code of web.confing is given below. check the password field contain "&" character. now when i run my application it gives...
28
by: Peter Michaux | last post by:
Hi, I'm playing with dynamic script insertion to make a request to the server for a JavaScript file to be automatically run when it arrives in the browser. It works but... The page caching...
3
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
7
by: jeddiki | last post by:
Hi, As I am in Turkey at present, I can not see vidoes on youtube. So I have tried a few proxies but keep finding them slow or not working. So I have installed myphpProxy on my server under...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.