Hey,
I was wondering if anyone could help me out with the following problem. I have created a user authentication system using dreamweaver. It all work fine except I want to make a few changes.
Here is the code I want to change;
Code:
1 <Script runat="server">
2 Sub button_click(s as object, e as eventargs)
3 If ds_checkuserinfo.RecordCount = 1 Then
4 Response.Cookies("ckusername").Value = Request.Form("txtusername")
5 Response.Cookies("ckusername").Expires = DateTime.Now.AddDays(1)
6 Response.Redirect("index.aspx")
7 End if
8 End Sub
9 </script>
How do I assign the fist cookie, 'ckusername' (line 4) to a value from a MSSQL database instead of a form variable?
EDIT: Im coding in asp.net
Thanks in advance
-Smitch
Last edited by Smitch; 08-27-2006 at 01:47 AM..
|