Results 1 to 3 of 3

Thread: Fire Ajax ConfirmButtonExtender In Code Behind

  1. #1
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 09
    Location
    USA
    Posts
    3,823

    Fire Ajax ConfirmButtonExtender In Code Behind

    I'm using an Ajax ConfirmButtonExtender to pop up a message box when a button is clicked. But I don't want it to appear only when the button is clicked.

    I only want it to appear at specific conditions. But if I add it to the markup during design time, it's going to be automatically assigned to my button. So even if I change the text server side, the default message appears first and I have to click the button a couple of times for it to register the new message.

    I also can't create the extender and add it to the markup during runtime, because I'd have to use the button to add it. So the button would need to be pressed twice.

    Does anyone have any ideas?
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  2. #2
    Lively Member
    Join Date
    Apr 10
    Location
    York, Uk
    Posts
    103

    Re: Fire Ajax ConfirmButtonExtender In Code Behind

    can you post the code you have ( or what your trying to acheive )so i can visualise what you are saying plz?

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 02
    Location
    Eygelshoven
    Posts
    1,556

    Re: Fire Ajax ConfirmButtonExtender In Code Behind

    The problem is that ConfirmButtonExtender is partially run using javascript so you can't change the text...
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •