Solved

ModalPopUpExtender Login Control disappears for failed login

Posted on 2008-10-16
4
924 Views
Last Modified: 2013-12-26
This is my first post so I am sorry if I forgot some needed information:
We are using a ModalPopUpExtender to render our asp.net (Visual Basic) Login Control.  

When someone submits incorrect login information the popup modal disappears.  It should remain and show an authentication failed message.

0
Comment
Question by:showinggray
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Expert Comment

by:carlnorrbom
ID: 22738765
Hi,

Can You please post the code? Both the relevant markup and code behind would be helpful.

/Carl.
0
 
LVL 10

Accepted Solution

by:
jinn_hnnl earned 500 total points
ID: 22739084
There is a trick that you put an UpdatePanel inside the modalPopup, but then it requires pretty much another tricky step.

What you can do best is, after the page is postback and in the login function return false, this happens on server side. -> Inside that Login Button Click, when it's failed: open again the ModalPopup using .Show();

On your cs page (server side):

lblValid.Text = "Unable to authenticate user";
ModalPopupExtender mp = Page.FindControl("modalID") as ModalPopupExtender;
if(mp != null)
   mp.Show();

Hope this help


0
 

Author Closing Comment

by:showinggray
ID: 31506995
Thank you so much.    You pointed me in the right direction.   The mp.show() in a conditional in the pageLoad() in the site.mastser worked.
0
 
LVL 10

Expert Comment

by:jinn_hnnl
ID: 22741115
I am glad to help ^^
Hope you find the best place to trigger the Show() and doesn't  interfere the rest of the page ^^

JINN
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question