Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Running an Ajax ModalPopup from C# code behind
robertdondo
follow
0
7-22-2009 11:50 AM
721 views
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
The real threat to "traditional" marriage: heterosexual couples who don't think the way they're supposed to
UK honour killing 'wake-up call'
9 of the most stupid lawsuits filed by inmates
Why i dont do laundry
Financial Crisis Hits Dubai, in pictures [37 photos]
THIS JUST IN: The “Suck and Glare”
Color Me Blue
Supreme Court Votes to Hide the Truth
Video Scenes Pulled from Peoples' Thoughts
A Brief History of Socialist Plots to End the American Way of Life
visit the
Top Clips page
View the Top Clips from
July 22, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/42e59e81-c51a-4a41-b6e4-f4a7aed13f9c/C3F93AD2-6584-4D6A-A21B-853795B2B317/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://blog.suddenelfilio.net/2007/03/23/running-an-ajax-modalpopup-from-code-behind/" href="http://blog.suddenelfilio.net/2007/03/23/running-an-ajax-modalpopup-from-code-behind/" style="font-size: 11px;">blog.suddenelfilio.net</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blog.suddenelfilio.net/2007/03/23/running-an-ajax-modalpopup-from-code-behind/"><H2><A title="Running an Ajax ModalPopup from code behind" href="http://blog.suddenelfilio.net/2007/03/23/running-an-ajax-modalpopup-from-code-behind/">Running an Ajax ModalPopup from code behind</A></H2></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blog.suddenelfilio.net/2007/03/23/running-an-ajax-modalpopup-from-code-behind/">Okay how to solve this? Well add an additional linkbutton for example and make sure it is visible but has not text. You can then set the TargetControlID to this “no-text” linkbutton. Since there is no text, you can’t see it and since you can’t see it the user won’t click it. Nifty <IMG class="wp-smiley" alt=":-)" src="http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif" /> Next you can have a second linkbutton the performs a callback to the server and executes some serverside code. If you put this linklabel in an asp.net ajax updatepanel you won’t notice the callback and you can use the ProgressIndicator functionality in asp.net ajax.At serverside you can perform some code execution and for example set a Label’s text proeprty to the result. Finally you can access the ModalPopupExtender and call the Show method that’s available this will cause the popup to appear.I really like this way of working because it allows for a nice userinterface experience and interaction with user</blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/C3F93AD2-6584-4D6A-A21B-853795B2B317/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK