Click here to Skip to main content
15,906,558 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSet image width and heigth of image in node Pin
AlexeiXX310-Apr-08 18:27
AlexeiXX310-Apr-08 18:27 
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 
I have a ModalPopupExtender whose TargetControlID points to an <asp:HyperLink /> control:

<ajaxToolkit:ModalPopupExtender
ID="_popup"
TargetControlID="_hlLaunchPopup"
PopupControlID="_pnlPopup"
BackgroundCssClass="modalBackground"
CancelControlId="_btnClosingX"
DropShadow="false"
runat="server" />

<asp:HyperLink ID="_hlLaunchPopup" Text="Launch Popup w/ Checkbox" runat="server" NavigateUrl="~/Default.aspx">Launch Popup w/ Checkbox</asp:HyperLink>

On the popup, there is an image of an "X"; this is the CancelControlId.

There is also a "Don't show me this popup again" checkbox, which writes a cookie to the user's machine when checked.

What I want to happen during the OnCancelScript (fired when the user clicks the "X", of course) of the ModalPopupExtender is this:

If the user has checked the "Don't show me again" checkbox, then the ModalPopupExtender will be "detached" from the hyperlink so that if/when the user clicks on it again, the user is NOT shown the popup and they are directed straight to Default.aspx.

I looked through the source code, and it doesn't look like there is a "disabled" property on the MPE. It looks like the only solution involves removing event handlers from the button, but I'm not exactly clear on how to do that. I suppose I could also hook into the showing event and do a JavaScript redirect, but I would rather not do that; seems like a kludge.

Any tips?

Thank you!

Jon Sagara

On a traffic light yellow means yield, and green means go. On a banana, it's just the opposite, yellow means go ahead, green means stop, and red means, where'd you get that banana?

-- Mitch Hedberg


.NET Blog | Personal Blog | Articles

GeneralRe: Disabling a ModalPopupExtender via JavaScript Pin
Jesse Squire10-Apr-08 7:32
Jesse Squire10-Apr-08 7:32 
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 

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.