CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2011
    Posts
    41

    [RESOLVED] ASP.NET Security question

    I have a master page where I have a login button in the header. That button opens up a modal panel, using an ajax control, modal popup extender. I put my login control in that modal popup. When I try to open a secured page as an anonymous user I get an error:

    Code:
    The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 
    
    Requested URL: /login.aspx
    How can I set it up where instead of going to the error page it fires the modal popup window instead.

    Warning! I am fairly new to ASP.NET and Web development / programming in general. I am fairly proficient in C#. So I won't be offended if you explain it to me in "infant" terms.

    Thank you in advance!

  2. #2
    Join Date
    May 2011
    Posts
    41

    Re: ASP.NET Security question

    I almost forgot. Would I tie in a login status control the same way?

  3. #3
    Join Date
    May 2011
    Posts
    41

    Re: ASP.NET Security question

    Well I also added an additional modal popup extender and set the target control ID equal to the login status control ID. when in logout view the login link will open the modal popup to login, but when logged in clicking on the logout link opens the modal popup to login, it won't log you out. What is the best way, do I add the second modal popup extender and find a way to get the logout control to work, or is the a way to make the first modal popup extender fire from the login status control and to logout when clicked?

  4. #4
    Join Date
    May 2011
    Posts
    41

    Re: ASP.NET Security question

    I figured out a much easier solution to my problem. So I am marking this one resolved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured