473,804 Members | 3,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1708
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******** **********@news svr21.news.prod igy.com...
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******** **********@news svr29.news.prod igy.com...
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.Sql Client 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.

<configuratio n>
<appSettings>
<add key="SQLConnect ionString" value="Data Source=devmachi ne;Initial
Catalog=devdata base;User ID=devuser;Pass word=devpasswor d" />
</appSettings>
</configuration>

This connection string is then availalble to ASP.NET via the code:
System.Configur ation.Configura tionSettings.Ap pSettings["SQLConnectionS tring"])

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.

<configuratio n>
<appSettings>
<add key="SQLConnect ionString"
value="/jrER8bDAM8VfdvP uMkGw033IhEYg2c 9voBQcmL3f6VKoj 3VZ4co9uZU8sHun QwCN3oL2uGCbDbC/9Rrix5yHdfzYXXG isa2"
/>
</appSettings>
</configuration>
Nov 18 '05 #4

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

Similar topics

2
3780
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, say Y, for a programmer, to work with. The application is a Winforms Application and machine X (server) does not have Visual Studio .NET installed on it. Machine Y(workstation) has got Visual Studio .NET installed on it. Y is connected via
2
1323
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 VBScripting. My PC has Win2k Pro and Visual Studio Enterprise Ed. Does anyone know what other software I need to install in order to have a development Web Server? Thanks.
5
1559
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 (running W2000 Server) for the 'customers' to view as I accomplish goals. I have been using the feature in VS.NET that allows you to upload the project from inside VS.NET and although I have had success in the past with it sometimes, this project...
5
2063
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 here is really the best implementation for team development. My company only has a handful of developers (2 currently, as many as 5 possibly in the future) that need to work on the same ASP.NET projects. All of our existing apps are in classic...
16
1912
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 of what we will need to adapt to. I have read Microsoft’s “Team Development with Visual Studio .NET and Visual SourceSafe” and tried to set up a development environment as recommended using the “Isolated model”. However, many questions...
1
1048
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 and soon VB.net 2005. /Andy
23
2037
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 know where my data access layer is running? What is it I have to do in the business layer that "creates" the data access layer on the other server? Second, what do I pass between my business layer and my data access layer? Should I be returning...
0
854
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 workstation. When I run my app using Development Server, files in subdirectories don't get rendered. For example, images in ~/supportpages/images/ appear as broken links. I get the same thing for things like references to .js files where the script...
3
1374
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. We've noticed that Visual Studio is terribly inefficient about a lot of things, and my testing with 2005 seems to indicate those problems may actually be worse there. On average, it can take 3 to 5 minutes to simply open the solution while...
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9575
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10564
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10308
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10073
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6846
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4288
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 we have to send another system
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.