Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Landing page after login using ASP.net

Guest
Apr 28, 2008 Apr 28, 2008

Copy link to clipboard

Copied

I'm a novice when it comes to application development. Most of what I've done has been based on some customization of something I've learned in a basic tutorial.

I've set up a web application that uses a standard Form to submit a username and password and validate against what's stored in a table in my db. Once I figure out how to implement role-level security (separate post), I'd like to specify the landing page that the users are taken to. The technique I'm using takes a person from login.aspx to default.aspx after a successful login. I don't see what is controlling this and how I could make it something other than default.aspx for anyone let alone based on some condition.

I'm using DW CS3 on an XP machine. I'm wondering if this is controlled by the infamous DreamweaverCtrls.dll

Any suggestions? Login code is below.
TOPICS
Server side applications

Views

520
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2008 Apr 28, 2008

Copy link to clipboard

Copied

That's DW .net code (note the MM_) so I really have no idea what it's doing
specifically.

You could always put code on the default.aspx page, check credentials, and
then redirect as necessary.

FYI, ASP.net is a dead technology for DW. If you want to get into ASP.net,
you're going to want to switch over to VisualStudio for your coding.

-Darrel

> I've set up a web application that uses a standard Form to submit a
> username
> and password and validate against what's stored in a table in my db. Once
> I
> figure out how to implement role-level security (separate post), I'd like
> to
> specify the landing page that the users are taken to. The technique I'm
> using
> takes a person from login.aspx to default.aspx after a successful login.
> I
> don't see what is controlling this and how I could make it something other
> than
> default.aspx for anyone let alone based on some condition.
>
> I'm using DW CS3 on an XP machine. I'm wondering if this is controlled by
> the
> infamous DreamweaverCtrls.dll
>
> Any suggestions? Login code is below.
>
> <%
> if dsLogin.RecordCount > 0 then
> Session("MM_Username") = Request.Form("tfUserName")
> FormsAuthentication.RedirectFromLoginPage("tfUserName.value", false)
> else if ((Request.Form("tfUsernName"))) <> Nothing _
> OR ((Request.Form("tfPassword"))) <> Nothing
> response.Write("Sorry. We weren't able to sign you in. Please try
> again.")
> end if
> %>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 28, 2008 Apr 28, 2008

Copy link to clipboard

Copied

LATEST
Thanks for the reply, Darrel. I've posted the code above the HTML and the MM_ stuff relates to either parameters or session variables that DW sets, so I'm on familiar territory there.

As a workaround, similar to what you suggested, I have two links on the default page and show one or the other links using the ShowRegionIf technique to compare against a value in a Recordset. That's working fine, I'm just curious about how to manipulate this more directly, if possible.

I've also come to discover that DW is not the tool for .NET but I was too deep into this project to switch. Now my goal is to expand my knowledge of .NET to help me as I migrate to a new tool.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines