Solved

ModalPopUpExtender Login Control disappears for failed login

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 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