Posted by Deepak (165.133.13.29) on September 29, 2000 at 10:08:23:
In Reply to: How to enable wap programming in visual Interdev? posted by Balaji on June 14, 2000 at 13:15:45:
Have u set the DSN for database?
U please read the code from where u have download bcoz i have run it it is very simple u please carefully check it
Deepak
: Hi, This is balaji. I am very new to wap programming. I have knowledge in ASP. I have download some WAP and Asp programs but its not working.
: When I try to run the asp page, onw window is coming like DO YOU WANT TO SAVE THE FILE OR OPEN? WHY?
: How want to do database programming using asp, wml and xml.
: I have added all the MIME type in IIS but still I am not able to view the output of the asp pages in the browser(IE 5).
: IS it possible to view the asp page in a wap browser.
: What will be the problem? Please any one reply me ASAP.
: BELOW IS THE CODE in my ASP PAGE which is not working.
: <% Response.ContentType = "text/vnd.wap.wml" %> : : : if rs.EOF then
:
:
:
: <%
: Dim conn, rs
: Set conn = Server.CreateObject("ADODB.Connection")
: Set rs = Server.CreateObject("ADODB.Recordset")
: conn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("Stock.mdb") & ";"
: %>
:
:
:
:
:
:
:
: <%
: sqlQuery = "SELECT * FROM Staff WHERE StaffID='" & Request.Form("StaffID") & "' AND Password='" & Request.Form("Password") & "'"
: set rs = conn.Execute(SQLquery)
: Response.Write "Invalid Login"
: Response.Write "
: Response.Write "
: Response.Write "
: '---override the element
: Response.Write "
: Response.Write "
: Response.Write "
: else
: Session("StaffID") = Request.Form("StaffID")
: Session("Password") = Request.Form("Password")
: Response.Write "Welcome, " & rs.Fields("Name") & "!
"
: sqlQuery = "SELECT * FROM Inventory"
: Set rs = conn.Execute(SQLquery)
: %>
:
: View Cart
:
:
:
Stock List:
:
:
:
:
:
:
: <%
: end if
: %>
:
:
:
:
: Thanks in advance
: Balaji