Click here to Skip to main content
15,887,875 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMS Access Database - Web Page - Could not find installable ISAM for password protected file Pin
Reanalyse10-Apr-08 12:50
Reanalyse10-Apr-08 12:50 
GeneralRe: MS Access Database - Web Page - Could not find installable ISAM for password protected file Pin
Reanalyse10-Apr-08 17:12
Reanalyse10-Apr-08 17:12 
GeneralRe: MS Access Database - Web Page - Could not find installable ISAM for password protected file Pin
ChandraRam10-Apr-08 19:44
ChandraRam10-Apr-08 19:44 
GeneralAccess is denied Pin
Peterson Luiz10-Apr-08 9:40
Peterson Luiz10-Apr-08 9:40 
GeneralRe: Access is denied Pin
Christian Graus10-Apr-08 12:52
protectorChristian Graus10-Apr-08 12:52 
GeneralRe: Access is denied Pin
Shog910-Apr-08 13:10
sitebuilderShog910-Apr-08 13:10 
GeneralDisabling a ModalPopupExtender via JavaScript Pin
Jon Sagara10-Apr-08 7:02
Jon Sagara10-Apr-08 7:02 
GeneralRe: Disabling a ModalPopupExtender via JavaScript Pin
Jesse Squire10-Apr-08 7:32
Jesse Squire10-Apr-08 7:32 
As far as I'm aware, there isn't a way to truly disable the popup, other then using the $clearHandlers[^] method on the button itself. The downside to this is that you'd have to do it on any postback operation (including an async postback run through an UpdatePanel). Detaching the event also suffers from a bit of tricky timing in a postback scenario, as you're in a race with the modal extender trying to attach the event.

The ModalPopupExtender does have a client-side API which exposes a showing event that can be trapped, and cancelled. This will allow you to stop the popup from showing itself, although, the event will still be triggered on each click of the button. For example, the following was my quick prototype:

<ajax:modalpopupextender id="MyExtender" behaviorid="MyExtenderBehaviorId" targetcontrolid="PostBack" popupcontrolid="test2" runat="server" />

<script type="text/javascript">

  var loadInitialization = function()
  {
    var extender = $find('MyExtenderBehaviorId');
    var handler = Function.createDelegate(extender, function(sender, args) { args.set_cancel(true); });
    extender.add_showing(handler);
  }
  
  Sys.Application.add_load(loadInitialization);

</script>


My apologies for the poor formatting, but CopyTextAsHTML doesn't work for code-in-front.

Hope that helps. Smile | :)

  --Jesse
"... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi

GeneralRe: Disabling a ModalPopupExtender via JavaScript Pin
Rama Krishna Vavilala10-Apr-08 7:49
Rama Krishna Vavilala10-Apr-08 7:49 
GeneralRe: Disabling a ModalPopupExtender via JavaScript Pin
Jon Sagara10-Apr-08 8:00
Jon Sagara10-Apr-08 8:00 
GeneralRe: Disabling a ModalPopupExtender via JavaScript Pin
Jesse Squire10-Apr-08 8:05
Jesse Squire10-Apr-08 8:05 
QuestionSqlDataSource Searching / Filtering Pin
C. L. Phillip10-Apr-08 6:25
C. L. Phillip10-Apr-08 6:25 
Questiondesigning a framework........ Pin
salil_k_singh10-Apr-08 5:57
salil_k_singh10-Apr-08 5:57 
GeneralRe: designing a framework........ Pin
Jesse Squire10-Apr-08 6:01
Jesse Squire10-Apr-08 6:01 
GeneralASP.NET membership tables in SQL Server Pin
Rohde10-Apr-08 5:36
Rohde10-Apr-08 5:36 
GeneralRe: ASP.NET membership tables in SQL Server Pin
Jesse Squire10-Apr-08 5:51
Jesse Squire10-Apr-08 5:51 
GeneralRe: ASP.NET membership tables in SQL Server Pin
Rohde10-Apr-08 5:55
Rohde10-Apr-08 5:55 
GeneralValidatorCalloutExtender in Composite control [modified] Pin
mastoj10-Apr-08 5:11
mastoj10-Apr-08 5:11 
GeneralRe: ValidatorCalloutExtender in Composite control Pin
mastoj10-Apr-08 7:06
mastoj10-Apr-08 7:06 
QuestionAnimated Gif Not Extending the Animation Pin
Innovenkat10-Apr-08 4:12
Innovenkat10-Apr-08 4:12 
Generalgridview find row Pin
eyeseetee10-Apr-08 3:19
eyeseetee10-Apr-08 3:19 
GeneralRe: gridview find row Pin
Herman<T>.Instance10-Apr-08 3:46
Herman<T>.Instance10-Apr-08 3:46 
GeneralRe: gridview find row Pin
eyeseetee10-Apr-08 4:03
eyeseetee10-Apr-08 4:03 
GeneralRe: gridview find row Pin
Herman<T>.Instance10-Apr-08 5:28
Herman<T>.Instance10-Apr-08 5:28 
GeneralRe: gridview find row Pin
eyeseetee10-Apr-08 21:25
eyeseetee10-Apr-08 21:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.