?
Solved

ModalPopUpExtender Login Control disappears for failed login

Posted on 2008-10-16
4
Medium Priority
?
925 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

765 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