Hello,
Getting much closer, but still out there.
I am working at the login page right now and need to have a user log
in using email address and model name. The application should set a
cookie based on the "CustomerID" from the database and redirect them
to "quotes.aspx". All I can seem to manage to get right is the
DataSet that the information draws from and the HTML.
------------------
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-
8859-1" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede0
5d46a,culture=neutral" %>
<script runat="server">
</script>
<MM:DataSet
id="dsLogin"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSettings
("MM_CONNECTION_STRING_conn_quotes") %>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSettings
("MM_CONNECTION_DATABASETYPE_conn_quotes") %>'
CommandText='<%# "SELECT dbo.tbl_onlinequotes.CustomerID,
dbo.tbl_onlinequotes.Email, dbo.tbl_onlinequotes.Model FROM
dbo.tbl_onlinequotes WHERE Email = @UserName AND Model =
@UserPassword" %>'
Debug="true"
><Parameters>
<Parameter Name="@UserName" Value='<%# IIf((Request.Form
("tbxUserName") <> Nothing), Request.Form("tbxUserName"), "") %>'
Type="VarChar" />
<Parameter Name="@UserPassword" Value='<%# IIf((Request.Form
("tbxPassword") <> Nothing), Request.Form("tbxPassword"), "") %>'
Type="VarChar" />
</Parameters></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-
1" />
<title>Untitled Document</title>
</head>
<body>
<form runat="server">
<div id="loginbox">
Enter your email address<asp:TextBox
ID="tbxUserName" runat="server" TextMode="SingleLine" />
Enter the name of the model you
requested<asp:TextBox ID="tbxPassword" runat="server"
TextMode="Password" />
<asp:Button ID="btnLogin" runat="server" Text="View
Your Quote!" OnClick="Submit_OnClick"/>
<asp:Label id="lblMsg" runat="server"
forecolor="red"></asp:Label>
</div>
</form>
</body>
</html>
-----------------------------------
My web.config has nothing but the connection strings in it. I am
thinking I need to put <authentication
mode="forms"></authentication> in there...
Once logged in and redirected, the quotes.aspx page should grab the
CustomerID from the cookie and match it against the database to
populate the page info.
Thank you for the help.
Jeff
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/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/