การพัฒนาโปรแกรมด้วย ASP | ||
หน่วยที่ 8. การพัฒนาโปรแกรมด้วย ASP _ _ _ [ menu ] | |
1. สามารถติดตั้งโปรแกรมเพื่อใช้พัฒนาภาษา ASP ได้ 2. สามารถอธิบายลักษณะต่าง ๆ ของภาษา ASP ได้ 3. สามารถเขียนโปรแกรมด้วยภาษา ASP ได้ |
1. 2. |
8.1 ความรู้เบื้องต้นเกี่ยวกับภาษา 8.2 การติดตั้งเครื่องบริการ เพื่อบริการ ASP 8.3 การโปรแกรมโครงสร้าง 8.4 การรับ และส่งข้อมูล 8.5 การเขียนโปรแกรมใช้งานอย่างง่าย |
1. http://www.thaiall.com/asp 2. http://www.microsoft.com 3. http://www.thaiall.com/webserver 4. http://www.thaiall.com/mysql แบบฝึกหัดท้ายบท 1. เขียนตัวอย่างโปรแกรมด้านล่างนี้สัก 5 รอบ 2. 3. |
ตัวอย่างแฟ้ม a.asp ที่สร้างขึ้นด้วย notepad <html> <head><title>hello</title></head> <body> <% response.write ("hello, kim heesun") %> </body> </html> หรือ แฟ้ม b.asp <% response.write ("<html><body>") response.write ("hello, kim heesun") response.write ("</body></html>") %> หรือ แฟ้ม c.asp :: อ่านข้อมูลจาก DSN ใน ODBC มาแสดงผล <% set conn = server.createobject("adodb.connection") conn.open "cust", "changetousername", "changetopassword" sql = "select * from cust" set rs = conn.execute(sql) do while not rs.eof response.write(rs("cust") & " " & rs("custname") & "<br>") rs.MoveNext loop conn.close set rs = nothing set conn = nothing %>