Starting in ASP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • klaydze
    New Member
    • Mar 2007
    • 30

    Starting in ASP

    hi, im only a beginner in doing a web. im creating a simple filemaintenance just like in VB. i have my design now. i've create a function as you can see below. i put the function inside <INPUT....... onClick='btnLog Inclick()'> and its gives me an annoying output. theres no output in that code. can any give me a piece of advice. thx

    <script language=VBScri pt>
    function btnLogInclick()
    Dim StrAuthUser,Str UserName
    Dim Conn, Rst
    set Conn = server.CreateOb ject("Adodb.Con nection")
    set Rst = server.CreateOb ject("Adodb.Rec ordset")

    Conn.Open("Prov ider=SQLOLEDB.1 ;Persist Security Info=False;User ID=sa;Initial Catalog=Sample; Data Source=SI12")

    set Rst = Conn.Execute("S ELECT * FROM tblUserAuthenti cation")

    if Rst.EOF = false then
    Response.Write( "GRANTED")
    else
    Response.Write( "DENIED")
    end if
    end function
    </script>
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    so what's the annoying output it gives you?

    Jared

    Comment

    Working...