| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) | ||||
| New Member Join Date: Aug 2006
Posts: 3
![]() | Assigning value to a cookie...? 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;
Thanks in advance -Smitch | ||||
| |
| | #6 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,272
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hello, -- Changed since I noticed you want .NET Code: SqlConnection conn = new SqlConnection(connectionString);
SqlCommand comm = new SqlCommand("SELECT fields FROM table_name", conn);
comm.Connection.Open();
SqlDataReader r = comm.ExecuteReader(CommandBehavior.CloseConnection);
Response.Cookies["TestCookie"].Value = r.GetString(0)
r.Close();
conn.Close(); ????: NamePros.com http://www.namepros.com/showthread.php?t=231882 Good luck! - Steve
__________________ I feel old.
Last edited by iNod; 08-26-2006 at 11:32 PM.
|
| |