Scratch all that :)
How do I add a parameter ("CustomerID") to a cookie based on a login/password
combination?
I have already SELECTed email, model and CustomerID in my dataset, now how to I
take CustomerID and send it to the Cookie to read on the "quote.aspx" page?
I think it is:
Dim c As New System.Web.HttpCookie("mycookie", "my cookie value")
c.Expires = Now.AddDays(2)
Response.Cookies.Add(c)
But what do I substitute for "mycookie" and "mycookievalue" to accomplish my
goal?
The Code I have:
-----------------------------------------
<%
if dsLogin.RecordCount > 0 then
FormsAuthentication.RedirectFromLoginPage(tbxUserName.Text, true)
else if ((Request.Form("tbxPassword"))) <> Nothing OR
((Request.Form("tbxUserName"))) <> Nothing
response.Write("Incorrect Login/Password Combination. Please try again.")
end if
%>
...plus the connection string and SQL...
----------------------------------------
On the "quote.aspx" page I need to use:
If Not Request.Cookies("mycookie") Is Nothing Then
Response.Write(Request.Cookies("mycookie").Value.ToString)
End If
To read the cookie and populate the page with the proper data?
Thank you very much!
Jeff
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/