Solved

ModalPopUpExtender Login Control disappears for failed login

Posted on 2008-10-16
4
921 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
EF5: Question about Metadata Artifact Processing 4 15
in Dot net,lastest version of MVC 3 24
performance issue in asp web 5 31
C# bracket error 3 31
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

770 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