Click here to Skip to main content
15,914,642 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: how to perform basic authorization Pin
JimmyRopes26-Jul-07 14:43
professionalJimmyRopes26-Jul-07 14:43 
GeneralRe: how to perform basic authorization Pin
Johnny ²26-Jul-07 18:25
Johnny ²26-Jul-07 18:25 
GeneralRe: how to perform basic authorization Pin
JimmyRopes26-Jul-07 20:21
professionalJimmyRopes26-Jul-07 20:21 
GeneralRe: how to perform basic authorization Pin
Araj0127-Jul-07 7:31
Araj0127-Jul-07 7:31 
GeneralRe: how to perform basic authorization Pin
JimmyRopes27-Jul-07 8:08
professionalJimmyRopes27-Jul-07 8:08 
GeneralRe: how to perform basic authorization Pin
Araj0127-Jul-07 10:11
Araj0127-Jul-07 10:11 
QuestionMULTILINE TEXTBOX Pin
hifiger200426-Jul-07 8:04
hifiger200426-Jul-07 8:04 
QuestionHow to close DropDownExtender's Panel manually? Pin
Abbas8226-Jul-07 7:39
Abbas8226-Jul-07 7:39 
Hi,

I have a nested DIV structure (not shown here) where both have an onclick event, hence
I am cancelling the event from bubbling up to the outer DIV, but this
has caused the Panel to remain opened when I click on another dropdown
(in another item within my repeater) or anywhere else on the page, and
I am wondering if anyone knows how to close the panel manually using
the AjaxControlToolkit.DropDownBehavior?

Here is some source code:

<asp:repeater id="Repeater1" runat="server">
<itemtemplate>
<%# Eval("Text") %>

<asp:label id="TextLabel" runat="server" text="Select your
favorite exotic ice-cream flavor"
="" style="display: block; width: 300px; padding:2px; padding-
right: 50px; font-family: Tahoma; font-size: 11px;">
<asp:panel id="DropPanel" runat="server"
cssclass="ContextMenuPanel" style="display :none; visibility:
hidden;">
<asp:linkbutton commandargument="www.google.ca"
runat="server" id="Option1" text="Mocha Blast"
cssclass="ContextMenuItem" onclick="OnSelect">
<asp:linkbutton commandargument="www.google.ca"
runat="server" id="Option2" text="Java Cyclone"
cssclass="ContextMenuItem" onclick="OnSelect">
<asp:linkbutton commandargument="http://www.google.ca"
runat="server" id="Option3" text="Dry Fruit"
cssclass="ContextMenuItem" onclick="OnSelect">
<asp:hyperlink id="HyperLink1" runat="server"
text="HyperLink" navigateurl="http://www.google.ca"
cssclass="ContextMenuItem">

<ajaxtoolkit:dropdownextender runat="server" id="DDE"
="" targetcontrolid="TextLabel" dropdowncontrolid="DropPanel">



<asp:updatepanel id="Update" runat="server">
<contenttemplate>
<asp:label id="lblSelection" runat="server"
style="padding: 5px;">

<triggers>
<asp:asyncpostbacktrigger controlid="Option1"
eventname="Click">
<asp:asyncpostbacktrigger controlid="Option2"
eventname="Click">
<asp:asyncpostbacktrigger controlid="Option3"
eventname="Click">





The JavaScript:

function cancelEvent(e) {<br />
            //var test = AjaxControlToolkit.DropDownBehavior.get_isOpen();<br />
<br />
             //src.onclick();<br />
             alert('cancel');<br />
             if(window.event) {<br />
                  alert('1');<br />
                if (!e) e = window.event;<br />
                e.cancelBubble = true;<br />
            }<br />
            else if ( e.stopPropagation) {<br />
               //  alert('2');<br />
                e.stopPropagation();<br />
            }<br />
            else {<br />
                 alert('3');<br />
                return false;<br />
              } <br />
} 

QuestionDropdownList Overlapping DHTML DropDown Menu Pin
Kumaran21cen26-Jul-07 1:41
Kumaran21cen26-Jul-07 1:41 
AnswerRe: DropdownList Overlapping DHTML DropDown Menu Pin
Luay.Essa26-Jul-07 2:47
Luay.Essa26-Jul-07 2:47 
GeneralRe: DropdownList Overlapping DHTML DropDown Menu Pin
RichardGrimmer26-Jul-07 5:55
RichardGrimmer26-Jul-07 5:55 
Questioncustmise tool tip in dropdown Pin
jpk42025-Jul-07 22:27
jpk42025-Jul-07 22:27 
QuestionRe: custmise tool tip in dropdown Pin
T.EDY25-Jul-07 23:25
T.EDY25-Jul-07 23:25 
AnswerRe: custmise tool tip in dropdown Pin
Blue_Boy25-Jul-07 23:28
Blue_Boy25-Jul-07 23:28 
GeneralRe: custmise tool tip in dropdown Pin
jpk42026-Jul-07 21:55
jpk42026-Jul-07 21:55 
GeneralRe: custmise tool tip in dropdown Pin
Blue_Boy27-Jul-07 2:57
Blue_Boy27-Jul-07 2:57 
AnswerRe: custmise tool tip in dropdown Pin
Vasudevan Deepak Kumar25-Jul-07 23:36
Vasudevan Deepak Kumar25-Jul-07 23:36 
QuestionHow to prevent multiple login of the same user? [modified] Pin
gurukodlekere25-Jul-07 21:03
gurukodlekere25-Jul-07 21:03 
AnswerRe: How to prevent multiple login of the same user? Pin
Vasudevan Deepak Kumar25-Jul-07 23:34
Vasudevan Deepak Kumar25-Jul-07 23:34 
QuestionHow to solve IIS Problem ? Pin
pubududilena25-Jul-07 17:46
pubududilena25-Jul-07 17:46 
AnswerRe: How to solve IIS Problem ? Pin
Vasudevan Deepak Kumar25-Jul-07 23:35
Vasudevan Deepak Kumar25-Jul-07 23:35 
AnswerRe: How to solve IIS Problem ? Pin
kubben26-Jul-07 1:46
kubben26-Jul-07 1:46 
QuestionFreeware DB App done with Javeline Platform over MySQL Pin
jamesmorr25-Jul-07 14:13
jamesmorr25-Jul-07 14:13 
QuestionDebug object tag failure? Pin
charlieg25-Jul-07 4:19
charlieg25-Jul-07 4:19 
AnswerRe: Debug object tag failure? Pin
Vasudevan Deepak Kumar25-Jul-07 23:37
Vasudevan Deepak Kumar25-Jul-07 23:37 

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.