»
S
I
D
E
B
A
R
«
Allow page redirect from an asp:linkbutton in an Ajax ModalPopupExtender
August 8th, 2008 by webpaws

Inside a modalpopupextender panel, you need to add and set the UseSubmitBehavior to false for the OK/Cancel controls to be enabled with postback to behave outside of the ajax control.

Example:

<asp:LinkButton ID="OkButton" runat="server" Text="Button Text" UseSubmitBehavior="false" PostBackUrl="product.aspx?id=3" />

You can also use OnClick in the button to perform an action outside of ajax with UseSubmitBehavior=”false”.

VN:F [1.8.4_1055]
Rating: 7.0/10 (3 votes cast)
VN:F [1.8.4_1055]
Rating: 0 (from 0 votes)
Allow page redirect from an asp:linkbutton in an Ajax ModalPopupExtender7.0103
 
Take a piece of the Web from WebPaws.com: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • MisterWong
  • Y!GG
  • Webnews
  • Digg
  • del.icio.us
  • StumbleUpon
  • De.lirio.us
  • eKudos
  • email
  • Facebook
  • Fleck
  • Google Bookmarks
  • Hype
  • LinkedIn
  • MySpace
  • Print
  • Technorati
  • YahooMyWeb

2 Responses  
  • Matt writes:
    July 20th, 2009 at 1:12 pm

    Title talks about an asp:linkbutton but the code uses an asp:button. ?????

    UN:F [1.8.4_1055]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.4_1055]
    Rating: 0 (from 0 votes)
  • webpaws writes:
    July 24th, 2009 at 4:30 am

    Yes. Thank you for the catch. There was a typo which is now fixed. Hope this post helped you in your coding.

    UA:F [1.8.4_1055]
    Rating: 0.0/5 (0 votes cast)
    UA:A [1.8.4_1055]
    Rating: 0 (from 0 votes)

Leave a Reply

»  Substance: WordPress   »  Style: Ahren Ahimsa
© Copyright by WebPaws.com 2009. All Rights Reserved.

WebPaws.com is Digg proof thanks to caching by WP Super Cache