Saturday, June 23, 2007

Visual Studio 2003 & 05

Visual Studio 2003 & 05

The first head ache i found is installing visual studio as it is a bit lengthy process...Visual studio needs some prerequisites..So we can install Visual Studio only after installing the prerequisites....The prerequisites includes


Internet information service(IIS) with front page extension

1.Go to control panel.Switch to classic view if you are not in classic view
2.Take add or remove programs.
3.Take add/remove windows components from the left panel.
4.Tick Internet Information Service from the list.
5.Highlight IIS and click Details link in the bottom
6.In details page tick all the options and click OK.
7.Click Next...and the components will start installations.Insert WIndows XP Cd when its asked for..

Other Prerequisites(Dot net framework)

1.Put Visual studio cd no :1
2.It will check for the prerequisites .
3.Insert the prerequistes cd when asked for.
4.Follow the instructions .(Simple steps)



IIS Errors-Unable to debug

If you installed IIS after installing dot net framework,then you wont be able to debug the project in visual studio...





Reason
The IIS is not configured with asp.net .Simply IIS dont know what is asp.net..SO we will have to link IIS with our dotnet framework.


Solutions

First Solution

1.Take start >Run
2.Copy the code below and press Ok

"H:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe" -i



Replace 'H' with the drive in which your windows is installed.
Replace v1.1.4322 with the version of your dotnet framework

Trouble shooting --->If this is not working the take search and search for the file aspnet_regiis.exe ....If found copy its address,compare it with the code above and rewrite the code...DOnt forget to write '-i' at the end



Second Solution

If you dont understand the first solution then simply reinstall dotnet frame work

It will be in the Visual Studio Prerequisite CD....No need to reinstall entire Visual Studio

Installing Sql Server 2000

To Install SQL Server 2000 Basic Local Installation.

1.Insert the Microsoft SQL Server 2000 cd in your CD-ROM drive (if the compact disc does not run automatically, double-click Autorun.exe in the root directory of the compact disc), select SQL Server 2000 Components, and then select Install Database Server. Setup prepares the SQL Server Installation Wizard. At the Welcome page, click Next.

2.In the Computer Name dialog box, Local Computer is the default option, and the local computer name appears in the text box. Click Next.


3.In the Installation Selection dialog box, click Create a new instance of SQL Server, or install Client Tools, and then click Next. Follow directions on the User Information, Software License Agreement and related pages. In the Installation Definition dialog box, click Server and Client Tools, and then click Next.

4. In the Instance Name dialog box, if the Default check box is available, you can install either the default or a named instance(the default user name is 'sa'). If the Default check box is not available, a default instance has already been installed, and you can install only a named instance. • To install the default instance, click to select the Default check box, and then click Next.

5 To install a named instance, click to clear the Default check box, type a new named instance in the Instance Name box(dont forget this username and password.This will be ther user id and password used to establish connection to the sql server from asp.net page), and then click Next.


6. In the Setup Type dialog box, click Typical or Minimum, and then click Next.

7. In the Service Accounts dialog box, Select Local machine and click next(If you are using sql server to create databases directly on your web domain,then give your user id and password in this step)

8. In the Choose Licensing Mode dialog box, make selections according to your license agreement, and then click Continue to begin the installation. In the Setup Complete dialog box, click Yes, I want to restart my computer now, and then click Finish.

Creating database using Sql server 2000

Creating database in sql 2000 is a very simple process.You can do this in two ways

By using Query analyzer

1.Take start>All programs>Microsoft sql server>query analyzer


2.Give userid and password of sql server that you set during installation
Tick the box "Start sql server if stopped"



3.Now you can write the queries to create tables and database in the white part.

4.To execute the query..select the query and press f5.






Using Enterprise manager






1.Take start>all programs>Microsoft sql server>Enterprise manager
2.On the left panel select Microsoft sql server>sql server group>(local)(windows NT)
3.To create new database ,right click on the database and there is an option to create new database there.
4.To create a new table ,select the databae name>Right click on tables >New table

5.A new pop up window will open.On that window give the necessary column names and datatypes

Creating auto incrementing columns


Autoincrementing columns are columns whose value is incremented each time a new row is entered into a table .

This is useful for generating a unique id automatically for each entry.


Steps

1.ON the page design pop up window in enterprise manager.Create a new column


2.Make its datatype as int


3.On the bottom maket identity 'Yes'

4.Set identity seed and identity increment to your desired values .






Basics of coding

Basics of coding



Code to establish Sql Connection

imports system.data.sqlclient // importing class library

dim con as new sqlconnection("server=.;uid=sql userid;pwd=sqlpassword;database=databasename")


'con' means connection name(You can give any name)

Code to declare an sql command

dim cmd as new sqlcommand("",con)


Code to declare sqldata adapter

dim ada as new sqldataadapter(cmd)


Code to declare datatable & dataset


dim dt as new datareader
dim ds as new dataset


Code to declare datareader

Dim dr As SqlDataReader

***We are not creating a new datareader..so there is no 'new' command in the above code

Where to write this code




Data Insertion

In this chapter let us examine how to insert data into a table from a webform

Suppose we have a text box named 'sname' and a button named 'insert' .Our aim is to
insert the value in the text box to the table named 'reg' when the button is clicked



steps

1.
Establish the connection
2.Double click on the button

Since the event is to happen when the button is clicked,the code for insertion should be written below buttons click event heading.When you double click on the button,you will be guided to this location



Code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click (No need to write the above line.It will be there)

con.open()
//open the connection
cmd.CommandType = CommandType.Text
cmd.CommandText = "insert into reg values('" & Me.sname.Text & "')"

//code to insert
cmd.ExecuteNonQuery()
con.Close()


ASP.NET Tutorial - PART - 2

Ok before starting ull need some tools under ur belt ..

# 1. If u havent installed IIS server then get it installed .. how to install please refer to previous part of the thread

# 2 Visual Web Developer Toolkit ..

If u dont have full version of Visual Studio then ull need this to compile and build ASP.NET application ..

u can download it from

http://msdn.microsoft.com/vstudio/express/downloads/default.aspx

the 1st entry there .. Visual Web Developer 2005 Express Edition .. Get That !!

Note: Codes might differ a little for 2003 and 2005 editions of Visual Studio

So u guys have installed IIS server and VWD 2005

just check wheather IIS server is running correctly or not ..

to check this .. just type http://localhost at ur browser window .. if its running perfectly it will display 2 windows before u ..

1 documentation and other is the webpage

http://localhost/localstart.asp

which will tell u default location of ur webpage ..

generally it is .. c:\inetpub\wwwroot\

The main window will display a message like

Your Web service is now running.
You do not currently have a default Web page established for your users. Any users attempting to connect to your Web site from another machine are currently receiving an Under Construction page. Your Web server lists the following files as possible default Web pages: default.htm,default.asp,index.htm,iisstart.asp. Currently, only iisstart.asp exists.

To add documents to your default Web site, save files in c:\inetpub\wwwroot\.
--------
when i click on this link http://localhost/
it shows this message...

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://localhost/

The following error was encountered:

* Connection Failed

The system returned:

(111) Connection refused

The remote host or network may be down. Please try the request again.

Your cache administrator is root.
Generated Wed, 20 Jun 2007 06:09:35 GMT by FOR-FAST-BROWSING-EXPLORER-IP-***.***.*.**-PORT-**** (Squid/2.4.STABLE7)



when i click this http://localhost/localstart.asp

itz showing me error

this is d error:

"Not Found
The requested URL /localstart.asp was not found on this server.

Oracle HTTP Server Powered by Apache/1.3.12 Server at home-67cd74b83a Port 80"


web manic
ok this error Oracle HTTP Server Powered by Apache/1.3.12 Server at home-67cd74b83a Port 80"

web manic two servers are installed on your system and they both are sharing the same port.

port no 80 so uninstall your oracle first then try that and reinstall ur oracle after installing iis but at the time of instalation specify some other ephimiral port

.............

ASP.NET Tutorial - 1

ASP.NET Tutorial
showing 1-8 of 8 first | <> | next > | last


♕♕ Pαπτнεг ☦☠♔✸❃
Jun 17
ASP.NET Tutorial
ASP.NET Tutorial

Posted by TREE in OUG-10
http://www.orkut.com/CommMsgs.aspx?cmm=34171699&tid=2538320264650505741&na=1&nst=1


♕♕ Pαπτнεг ☦☠♔✸❃
Jun 17
For pictures see TREE's album


♕♕ Pαπτнεг ☦☠♔✸❃
Jun 17
Installing IIS and .NET 2.0
If you are running Windows XP Professional, you can run your own web server without having to download any extra software. IIS is required for running ASP.net applications, and in this tutorial I will explain both how to setup IIS and configure it for running .NET 2.0 apps in your browser.


RED RUM 666 ~~~
Jun 17
lol.......just post the link !


♕♕ Pαπτнεг ☦☠♔✸❃
Jun 17
Installing IIS
Before we begin, make sure you have your Windows XP Professional installation CD.
insert it into ur CD rom

Let's get started:

First

go to Start >> Control Panel>>Double click on the Add or Remove Programs icon

then this will appear
http://images.orkut.com/orkut/albums/ATcAAAC4kkS2rKKK1xQo1ByT6WtwM4SkeyxneEyRdJenpNRrL0oOEq4L9WmzZ30qC8gEcF-d9YYaOzh9DPIT7dOS5oCJAJtU9VCm20bGcmOTolzh7U3E3sQfXNd8Sg.jpg

after that
Second

From the Add or Remove Programs window panel, click on the Add/Remove Windows Components icon found on the left side:

like this
http://images.orkut.com/orkut/albums/ATcAAACFRnhIptaBn_jc6VzL9ZDZ-k9MZbZJzvDStJmpjNDW-jrWrBSTm_NkZr9hVml_VADh6QTye7-Mwz4bheYNZVU_AJtU9VCRsXjetog5gNwedUWpR8JJzPMOQQ.jpg

Now
Third

From the Windows Components Wizard window, check the box for Internet Information Services (IIS). Click the Details button to see more options of what you are exactly installing:

pic will appear like this
http://images.orkut.com/orkut/albums/ATgAAAC2PHLRPp0tvGyPc7-2Gcci1PK-_3I48vt5oLisugIEEA6kctlqVOOAEJ4KEbUdi8XvQxsyLII2eDA6aNmKVfoPAJtU9VD01HvtjgXYft9GvtqNs2oCN4wJUA.jpg


Fourth
The default selected options in the IIS details window are good enough, but if you want, you can select all of the subcomponents. They don't increase the total installation size by much.

Fifth
Press OK to close the Internet Information Services (IIS) window, and click the Next button in your Windows Components Wizard window. The installation should begin, and you may be prompted to insert your Windows XP Professional Installation CD.

Sixth
Restart your computer, and you should have IIS installed. You can test whether you have IIS installed by launching your browser and entering the URL http://localhost/


♕♕ Pαπτнεг ☦☠♔✸❃
Jun 17
Now you have successfully installed IIS. If you want, you can start to upload your HTML files to the C:\inetpub\wwwroot directory where the localhost address points to by default.


NOW
I will explain how to setup IIS to run ASP.net 2.0 applications

install this ist then i ll move to second instalation of asp.net


♕♕ Pαπτнεг ☦☠♔✸❃
Jun 17
well this is the starting
see the remanings in OUG





Panther, The Soul Reaver


RED RUM 666 ~~~
Jun 17
http://www.orkut.com/CommMsgs.aspx?cmm=34171699&tid=2538320264650505741&na=1&nst=1
--------------------------------- O-U-G------------------------------------



Jun 17
Installing IIS and .NET 2.0
If you are running Windows XP Professional, you can run your own web server without having to download any extra software. IIS is required for running ASP.net applications, and in this tutorial I will explain both how to setup IIS and configure it for running .NET 2.0 apps in your browser.


RED RUM 666 ~~~
Jun 17
only 7 snaps?


Jun 17
Installing IIS
Before we begin, make sure you have your Windows XP Professional installation CD.
insert it into ur CD rom

Let's get started:

First

go to Start >> Control Panel>>Double click on the Add or Remove Programs icon

then this will appear
http://images.orkut.com/orkut/albums/ATcAAAC4kkS2rKKK1xQo1ByT6WtwM4SkeyxneEyRdJenpNRrL0oOEq4L9WmzZ30qC8gEcF-d9YYaOzh9DPIT7dOS5oCJAJtU9VCm20bGcmOTolzh7U3E3sQfXNd8Sg.jpg

after that
Second

From the Add or Remove Programs window panel, click on the Add/Remove Windows Components icon found on the left side:

like this
http://images.orkut.com/orkut/albums/ATcAAACFRnhIptaBn_jc6VzL9ZDZ-k9MZbZJzvDStJmpjNDW-jrWrBSTm_NkZr9hVml_VADh6QTye7-Mwz4bheYNZVU_AJtU9VCRsXjetog5gNwedUWpR8JJzPMOQQ.jpg

Now
Third

From the Windows Components Wizard window, check the box for Internet Information Services (IIS). Click the Details button to see more options of what you are exactly installing:

pic will appear like this
http://images.orkut.com/orkut/albums/ATgAAAC2PHLRPp0tvGyPc7-2Gcci1PK-_3I48vt5oLisugIEEA6kctlqVOOAEJ4KEbUdi8XvQxsyLII2eDA6aNmKVfoPAJtU9VD01HvtjgXYft9GvtqNs2oCN4wJUA.jpg


Fourth
The default selected options in the IIS details window are good enough, but if you want, you can select all of the subcomponents. They don't increase the total installation size by much.

Fifth
Press OK to close the Internet Information Services (IIS) window, and click the Next button in your Windows Components Wizard window. The installation should begin, and you may be prompted to insert your Windows XP Professional Installation CD.

Sixth
Restart your computer, and you should have IIS installed. You can test whether you have IIS installed by launching your browser and entering the URL http://localhost/


Jun 17
RED RUM 666 ~~~
those are for instalation only ill change them side by side so keep saving them


Jun 17
Now you have successfully installed IIS. If you want, you can start to upload your HTML files to the C:\inetpub\wwwroot directory where the localhost address points to by default.


NOW
I will explain how to setup IIS to run ASP.net 2.0 applications

install this ist then i ll move to second instalation of asp.net



Jun 17
some one keep posting the tutorial in OO also
­
tell me who is gona do that ??


Jun 17
Download .NET Framework Its free
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en


Jun 17
If you are running on a X64 system

then download 64-bit version
download from here
http://www.microsoft.com/downloads/details.aspx?familyid=B44A0000-ACF8-4FA1-AFFB-40E78D788B00&displaylang=en


♕♕ Pαπτнεг ☦☠♔✸❃
Jun 17
tree
OO is moderated
my request still pending





Panther, The Soul Reaver


Jun 17
Installing the .NET Framework
see if you have the .NET Framework (version 2.0) installed on your computer. The easiest way to do that would be to go back to your Control Panel's Add or Remove Programs application. If you scroll down your list of installed applications, you should see Microsoft .NET Framework 2.0 listed

like this

http://images.orkut.com/orkut/albums/ATcAAACEkFKXjYx5rKpSt3-VXDl0znvGfQPtXnQ-U6ZdVtkHaCjM63xzBGR3FiO3dGy4Yc-mccZ_2GV9HmQo0sw_hPyhAJtU9VAYw7etG9C0Qdd5FU1iFhiPM819UA.jpg

if its not there then download from above specified links


Jun 17
after instalation restarted your computer.

now the configuration part of IIS

Configuring IIS


Now that you have either installed or confirmed the existence of the .NET Framework 2.0 on your computer, you will need to check if its configured to run .NET 2.0 apps. Go back to your Control Panel and double click on Administrative Tools icon. You should now see a list of icons, one of which stands for Internet Information Services (IIS)

this way http://images.orkut.com/orkut/albums/ATcAAAD773q8BDnqp_30gBXZn3nQ9fFBs8CNznW1C5DeO469ViYp78iwmbavUefWVN6Tcb146y1KOyFopBp70uR4Q8xjAJtU9VCseDapk_5w13i1SZ_2byw23HtUmg.jpg

Double-click on the Internet Information Services icon. The Management window for Internet Information Services will appear. On the left pane, you will see your computer's name listed. Expand the node by clicking on the plus box next to your computer's name. You should now see a folder listing for Web Sites

this way
http://images.orkut.com/orkut/albums/ATgAAADY63BDVzSvRgM4QiaU57yIh5JMRyeLdwppTwL-4Z205S2tgXcRTHfUdfMevtobmGZcbjc21Ud4zScO2w_c_uGXAJtU9VDM01ZUsZGZydCeUFIlhl_ZQBnuhw.jpg

Now, Right click on the Web Sites folder and select Properties. The Web Sites Properties window will appear. Click on the tab marked ASP.net. Under the ASP.net Version drop-down menu, select the version corresponding to 2.0

http://images.orkut.com/orkut/albums/ATcAAAAO01GMsUSfIXqThiqmXgUTIZL1GWtKVld-ddLlt21wz6NiImjQieIIuZS67yYvOD4AvMr21fApiCLVyXFU16YJAJtU9VB2olHLXyxRswfgC22JYzMVgrmbog.jpg

Click OK after selecting 2.0.x under the ASP.NET version drop-down menu. You now have a web server capable of running .NET 2.0 applications.



Congratulations Now you have configured IIS on your system

Now your own computer is like Orkut server. Orkut serever is also configured this way only.


Jun 17
These questions are very common before we study
atleast for me these all answers are necessary to study any thing


Why to study ASP.net and What are the application of ASP.net ?

So, before we go further lets find the answers I am giving you one day time to find the answers take it as your homework then we will go further.


RED RUM 666 ~~~
Jun 17
Clarification
* Sixth
Restart your computer, and you should have IIS installed. You can test whether you have IIS installed by launching your browser and entering the URL http://localhost/


when i entered this link,it asks for a pass & an user name?

Am i on the r8 way?



Samarth­­
Jun 17
ASP.Net is a programming framework that runs on a Web Server to dynamically produce and manage Web Forms pages ....



Jun 17
RED RUM 666 ~~~
you must be having more then one server installed on your system

check out that

sutte wale baba kal batana abhi iam going to sleep
gud work dude ....

Jun 17
RED RUM 666 ~~~
http://type_ip_here/

then try

check ur ip by using ipconfig at cmd prompt


Samarth­­
Jun 17
hmmm......well i dunno i havent this kind of installation ...

basically my OS was installed with .NET (full) n its like around 3.5 GB ...i dont seem to have ny idea about this ...