Jump to content
Xtreme .Net Talk

ednayap

Avatar/Signature
  • Posts

    29
  • Joined

  • Last visited

About ednayap

  • Birthday 11/29/1983

Personal Information

  • Occupation
    Student
  • .NET Preferred Language
    ASP.Net

ednayap's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. yeap i did that.... but the weird thing now is that is doesn't save my cookie value as it should..but instead it saved the value 1 and other funny characters..
  2. i tried many ways...even the books codes..but it doesn't seem to work.. im using session too. will this conflict with cookies?
  3. hie all!! do you know how can i update to an existing cookie? tanx
  4. oh tanx ill find out more bout that
  5. ednayap

    Helppp

    my code does not seem to work...it only redirects the page if the username and password is empty... sub login_Click(s as Object, e As EventArgs) dim conPubs As SqlConnection dim cmdSelect as SqlCommand dim name as string dim name2 as string dim pass as string dim pass2 as string dim passing as SqlDataReader dim str as String if IsValid then conPubs=New SqlConnection("Server=localhost;User Id=sa;Password=edna;database=ES") str = "Select Password From Passwd Where Name=@Name" cmdSelect= New SqlCommand(str, conPubs) cmdSelect.Parameters.Add("@Name", TextBox1.Text ) 'cmdSelect.Parameters.Add("@Password", txtPass.Text) conPubs.Open() 'name = txtPass.Text 'name2 = cmdSelect.ExecuteScalar() 'TextBox1.Text = name 'TextBox2.Text = name2 if txtPass.Text = cmdSelect.ExecuteScalar() then conPubs.Close() FormsAuthentication.RedirectFromLoginPage _ (TextBox1.Text, CheckBox1.Checked) else TextBox1.Text = "" conPubs.Close 'Server.Transfer("login.aspx") end if end if end sub
  6. because in asp.net the defalut page is set to Default.aspx, i want to change this setting....prolly somewhere in web.config maybe?
  7. oh tanx all
  8. FormsAuthentication.RedirectFromLoginPage seem to direct me to default.aspx how can i change this?
  9. tanx a lot all!! :)
  10. hie.. anyone know how to find out if cmd.ExecuteScalar() is empty? tanx a lot
  11. as in the users id will be saved through out the whole session ,... maybe something like cookies. and the url...prolly http://www.edna.com/login=edna something like that.. i've seen someone doing that using asp. im not too sure what it is called .. tanx
  12. hi, i want to do a 'login session' for my users but i don't know how. Im not too sure if its called "login session" but it does this: a user logins through the login page and proceeds where he wants to. the address bar won't show the name of the forms he currently is but shows his 'login session' any other users cannot visit any forms without logging in first.. any one knows what this is called? and how i can do it? Tanx a lot Edna
  13. ednayap

    debug?

    hmmm okay then thank you :D
  14. ednayap

    debug?

    hi all!.. sorry to ask this 'silly' question, but is there a way to debug using the ASP web matrix tool? or any other way? coz error lines stating in my browser doen not make any sense when i look into that line in my tool! tanx
  15. oohhhh tanx!! that;s cool! :D
×
×
  • Create New...