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

ASP.NET development workstation - suggestions?

I'm developing my first ASP.NET web application (that will use SQL Server
for a database). I'm looking for some tips on setting up my development
workstation (WinXP Pro). I've already installed VS.NET 2003 Enterprise
edition, but what about a database? The web server my app will be FTPed to
when complete is WS03/IIS6/SQL Server. So how do I develop locally? Do I
need a WS03 box with SQL Server to develop on? I have a test web server on
my local network that has SQL Server installed - should I connect to that
database for development purposes? How? Any suggestions appreciated.
Nov 18 '05 #1
3 1688
Hi Deko,

Yes , you start your development by connecting your application to the SQL
server
on your local network.

Once you are ready you can move the application to Remote server which has
WS03/IIS6/SQL Server

But remember never hardcode any values like DB name , Server name , IP's
etc..in your code..try to parameterize them
[ by moving them into a config file (web.config) ] which will later help you
in changing the details after you move your application to different
machine.
Hope this helps you.

Thanks
Raghavendra

"deko" <ww*******************************@nospam.com> wrote in message
news:1s******************@newssvr21.news.prodigy.c om...
I'm developing my first ASP.NET web application (that will use SQL Server
for a database). I'm looking for some tips on setting up my development
workstation (WinXP Pro). I've already installed VS.NET 2003 Enterprise
edition, but what about a database? The web server my app will be FTPed to when complete is WS03/IIS6/SQL Server. So how do I develop locally? Do I
need a WS03 box with SQL Server to develop on? I have a test web server on my local network that has SQL Server installed - should I connect to that
database for development purposes? How? Any suggestions appreciated.

Nov 18 '05 #2
> Yes , you start your development by connecting your application to the SQL
server
on your local network.
Can you point me to any information about how to do this?
But remember never hardcode any values like DB name , Server name , IP's
etc..in your code..try to parameterize them
[ by moving them into a config file (web.config) ] which will later help you in changing the details after you move your application to different
machine.


Thanks for the tip.
Nov 18 '05 #3
"deko" <ww*******************************@nospam.com> wrote in message
news:E3******************@newssvr29.news.prodigy.c om...
Yes , you start your development by connecting your application to the
SQL
server
on your local network.


Can you point me to any information about how to do this?


When you want ASP.NET to use ADO.NET to interface with SQL Server, you will
typically use the System.Data.SqlClient namespace, and the "standard" way of
telling ADO.NET where the SQL Server is and how to connect to it is by means
of a connection string. A popular method of storing this information in
ASP.NET is in the Web.config file e.g.

<configuration>
<appSettings>
<add key="SQLConnectionString" value="Data Source=devmachine;Initial
Catalog=devdatabase;User ID=devuser;Password=devpassword" />
</appSettings>
</configuration>

This connection string is then availalble to ASP.NET via the code:
System.Configuration.ConfigurationSettings.AppSett ings["SQLConnectionString"])

The above string assumes that you have SQL Server installed on a machine
called devmachine with a database called devdatabase and a user called
devuser with a password of devpassword. Obviously, you will change these
various elements to reflect your own development environment.

Then, when you're ready to deploy your ASP.NET project to your remote
server, you will simply change the values in the connection string so that
ADO.NET will point at your live SQL Server instead of your development one.

Also, of you're concerned that the connection string is plain text, encrypt
it e.g.

<configuration>
<appSettings>
<add key="SQLConnectionString"
value="/jrER8bDAM8VfdvPuMkGw033IhEYg2c9voBQcmL3f6VKoj3VZ4c o9uZU8sHunQwCN3oL2uGCbDbC/9Rrix5yHdfzYXXGisa2"
/>
</appSettings>
</configuration>
Nov 18 '05 #4

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

Similar topics

2
by: Varkey | last post by:
Dear all, Can you please provide some information on the following issue, at the earliest. I have a development server setup in the network, say machine X. Also, there is another workstation,...
2
by: Tom | last post by:
I'm a VB/SQL programmer, but not familiar with WEB programming or the Microsoft products for this. I'm trying to set up a development workstation to create and test .asp files running server side...
5
by: Schoo | last post by:
I have been working on an ASP.NET (with VB.NET code behind) on my development workstation. Things have been going well and I have been posting changes to the project to a development server...
5
by: Shawn Berg | last post by:
I have just finished reading the "Team Development with Visual Studio .NET and Visual SourceSafe" patterns & practices white paper. I just wanted to get a good feel from others if what they suggest...
16
by: Linus | last post by:
Being a ASP developer for a consultant company thinking of starting developing with ASP.NET I have read literally hundreds of web pages and posts in discussion forums on the Internet to get an idea...
1
by: Andy | last post by:
Hi At home I have a Windows 2003 SP1 filserver with Exchange 2003 installed. Are there any major drawbacks by using this machine as a development workstation? I'm considering installing VB.net...
23
by: Steve Barnett | last post by:
Ok, I've never done n-Tier development and I'm getting confused... Assuming I have a business layer and a data access layer that may be running on different machines, how does my business layer...
0
by: DaveOnSEN | last post by:
Hi, I'm having a problem with Visual Studio 2005 Development Server. I've recently upgraded from 2003 to 2005. I used to develop and debug against IIS, so I still have it installed on my...
3
by: karlag92 | last post by:
We have a very large C# winforms client application that is constructed as a single solution currently with 75 projects. We're currently using VS 2003 but will upgrade to 2005 some time next year....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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,...

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.