Saturday, April 16, 2011

INTODUCTION TO ASP (ACTIVE SERVER PAGES)

INSTALLING IIS ON WINDOWS XP

  1. On the Start menu, click Control Panel.
  2. Double-click Add or Remove Programs.
  3. Click Add/Remove Windows Components.
  4. Click Internet Information Services (IIS) and then click Details.

http://www.petri.co.il/images/inst_iis_xp.gif
  1. In Internet Information Services (IIS), select the check boxes for SMTP Service and World Wide Web Service, and then click OK.
http://www.petri.co.il/images/inst_iis_xp1.gif

  1. In Windows Component selection, ensure that the Internet Information Services (IIS) check box is selected, and then click OK to install the components that you selected.

INSTALLING IIS ON WINDOWS VISTA / 7

1. To open the Windows Features dialog box, click Start, and then click Control Panel.


2. In the Control Panel, click Programs.


3. Click Turn Windows features on or off.


4. You may receive the Windows Security warning. Click Allow to continue. The Windows Features dialog box is displayed.


5. Expand Internet Information Services. Additional categories of IIS features are displayed. Select Internet Information Services to choose the default features for installation.


6. Expand the additional categories displayed, and select any additional features you want to install, such as Web Management Tools.


7. If you are installing IIS 7 for evaluation purposes, you may want to select additional features to install. Select the check boxes for all IIS features you want to install, and then click OK to start installation.


8. The progress indicator appears.


9. When the installation completes, the Windows Features dialog box closes, and the Control Panel is displayed.


10. IIS 7 is now installed with a default configuration on Windows Vista or Windows 7. To confirm that the installation succeeded, type the following URL into your browser, http://localhost.



Sometimes, windows users always facing the same problem when installing IIS on their computer. Here are the solution for problems in Microsoft Windows.

1. Open Windows Explorer > click tools > folder options > activate view tab.
2. Then deactivate Use simple file sharing (recommended) options.
3. click ok.
4. Open your inetpub folder at c:\Inetpub\wwwroot\folder using windows explorer.
5. Right click at the folder that holds the access database file and click at properties.
6. Click at security tab and click add button > then click advanced button.
7. Click at find now button and choose everyone.Click ok.
8. Then activate write options for everyone user.
9.Click ok .


CREATE A CONTACT FORM IN DREAMWEAVER CS3 USING ASP


1. Create a new site in Dreamweaver CS 3. Save the new site in c:\inetpub\wwwroot\project.

2. Create a database in Access and save the database in the folder c:\inetpub\wwwroot\data. The database must save in MS Access 2002-2003 with .mdb file extension

3. create a table in database and create the following fields:


i) name1

ii) username

iii) password

iv) remarks

4.For remarks field, choose Memo as its data type.


5. Then create connection in Dreamweaver CS 3. Open the database panel, click at + button, select Custom Connection String. Enter a name for the connection as dmx. Enter the connection string as "Driver={Microsoft Access Driver (*.mdb)};DBQ="& Server.MapPath("/data/guest.mdb"). click test to connect to the database and then click ok.

6. Create a new ASP VBScript page. Insert a form. Insert a table and insert the text and text field.

7. Give the name to the text field in Properties panel.

8. Save the page as daftar.asp in c:\inetpub\wwwroot\project

9. Then set the Insert Record to write data into database. Click Active Server Behaviors tab. Click the + button then select Insert Record, select the connection that you gad created then click ok. Save the file.


10. Create a new ASP VBScript page. Save the file as view.asp.

11. Create the text and text field for name, username, password and remarks.

12. Click Server Behaviors tab. Click the + button, select RecordSet. Select the connection that you had created. Select sort: name1 and Ascending to sort the data for viewing. Click test.

13. Activate Bindings tab. Click + button select RecordSet. Click at + button sign in front of the RecordSet and you can see all the fields in the database.

14. Drag nama into cell 1 in column 2 in the table that you create in view.asp. drag other fields also into the following cell in column 2. Draw a line below the table. Next highlight the table including the line below the table. Click the + button on the panel, select Repeat Region. Click ok.

15. Open back your daftar.asp file. Double click Insert Record behavior in Server Behavior and add view.asp in After inserting go to: click ok.

16. Click at Preview in Browser icon. Type any data and click save button. Automatically the view.asp file will be displayed and you can see the data that you typed.


No comments:

Post a Comment