Today’s customer question concerns client side predicates for showing a Modal Popup control.
I’m happy to be getting these kind of questions because it shows how ASP.NET developers are continuing to evolve their web development perspective and separate server logic execution and client logic execution.
Example – mouseover !
Note that the TargetControlID is the Image of the anchor tag and the onmousover event handler calls my custom JaqvaScript function myMouseOver() which displays the Modal Popup as follows:
Click OK or Cancel closes the Modal Popul as you would expect.
Bur don’t stop there – use more client side logic to customize the user experience. For example, you could automatically display the Pop Up on Mouse Over and start a timer to count down and hide it again ( $find(“ModalPopupExtender1”).hide(); ) after a certain number of seconds.
Keep making your UIs ROCK !
You can download a runnable sample [ HERE ]