I think I just bogged myself into a complete brain-lock on this.

The web.config part made sense, including locking the given page, 
which I found via Google.

I am TOTALLY getting lost with what's going on with the login page 
though! All the code goes up above <head> (so far so good, right?), 
but now I think I'm missing on a couple places:

1. variables - the customers login is their email which is "email" 
on the DB. Their password is the name of an item which is "item" in 
the DB - what in your code do I switch with those values?

2. after "private function GetUserByName(userName as string) as 
DataRow" you have:
                "'Create connection" this looks to be done on my 
site within web.config.
                "'Fill DataTable with DataAdapter" Huh? I see how to 
do DataSets and DataGrids but......????
                "'return row if one is found" again, lost here!

3. In the MailMessage portion I would do .From = SEND_FROM_ADDRESS 
and define it in web.config, right?

4. SQL would be: "SELECT email, item FROM tbl_clients WHERE email = 
txtEmail AND item = txtItem" (txtEmail and txtItem refer to the text 
boxes) 
with 
 <Parameters>
   <Parameter Name="@Email" Value='<%# IIf((Request.Form("txtEmail") 
<> Nothing), Request.Form("txtEmail"), "") %>' Type="VarChar" />
 <Parameter Name="@Item" Value='<%# IIf((Request.Form("txtItem") <> 
Nothing), Request.Form("txtItem"), "") %>' Type="VarChar" />
 </Parameters>

Geez I hope I'm close! And I hope contentpage.aspx goes much easier! 
It should because it is more straight forward.

Thank you again,

Jeff
                



--- In [email protected], Dean Fiala 
<[EMAIL PROTECTED]> wrote:
>
> The code i posted didn't handle the redirect, just the login and
> email.  to redirect you could do something like this.
> 
> If Login(username, pwd) = true then
>    Response.Redirect("contentpage.aspx")
> else
>    'Show error
> End if
> 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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/
 


Reply via email to