Technology For Your Business For Your Life

Wednesday, September 14, 2011

Set Focus to a control in a modal popup using the ajax control toolkit ModalPopupExtender

I was recently struggling to set focus to a textbox in a Modal Window using the Ajax control toolkit ModalPopupExtender control. This is how to do it.

Use the follow javascript. Make sure this javascript  comes after the asp scriptmanager.

Sys.Application.add_load(modalSetup);
function SetFocusOnControl() {
    document.getElementById('txtEADdress').focus(); // <. control to set focus to.
}
function modalSetup() {
     var modalPopup = $find('ReminderPopUp');             // <. this is the BehaviorID from the ModalPopupExtender
     modalPopup.add_shown(SetFocusOnControl);
}       

10 comments:

  1. Wonderful site and huge information. The information present here is helpful for the readers I'll come back to this blog for sure!



    Flipkart CashBack Offers-SBI, HDFC, ICICI, Citibank Cards&Flipkart HDFC Cards Offers"
    flipkart bank offers,flipkart cash back coupons,flipkart offers 2018,
    flipkart coupons 2018,flipkart cashback offers 2018,flipkart cashback offers,
    flipkart cash back offers,flipkart cashback coupons,
    flipkart cashback,Flipkart Cashback Offers,Flipkart Bank Offers,Flipkart Deals 2018,
    flipkart upcoming offers on mobiles,
    hdfc credit card offers on flipkart 2018 flipkart sbi offer big billion day,
    flipkart hdfc offer,
    flipkart hdfc offer august 2018 sbi flipkart offer 2018 flipkart icici offer



    FLIPKART CITIBANK OFFER,FLIPKART ICICI OFFER,
    SBI CARD OFFERS ON FLIPKART,
    FLIPKART CASHBACK OFFER TODAY,FLIPKART CREDIT CARD OFFERS,
    ALL BANK CREDIT CARD OFFERS,HDFC CREDIT CARD OFFERS ON FLIPKART,
    AXIS BANK CREDIT CARD OFFERS ON FLIPKART,
    CITIBANK CREDIT CARD OFFERS ON FLIPKART,SBI FLIPKART OFFER



    Flipkart Cashback Offers||Flipkart Bank Offers||Flipkart Deals 2018||flipkart upcoming offers,"
    "Flipkart Cashback Offers || Flipkart Bank Offers || Flipkart Deals 2018 ||"
    "flipkart upcoming offers on mobiles, hdfc credit card offers on flipkart 2018,
    sbi credit card offers on flipkart today, flipkart hdfc offer terms and conditions,
    sbi flipkart offer 2018,
    flipkart cashback phonepe, flipkart hdfc offer august 2018, flipkart icici offer




    "cashback,vouchers,coupons,discounts,offers,deals,promo codes,&Cashback Offers"
    "cash back coupons "Coupons, Discounts & Offers on 1500+ Shopping Sites in India.
    Get Extra Cashback Everytime You Shop Online using Coupons of Amazon, Flipkart,
    Tata CLiQ, Nykaa etc."cashback, vouchers, coupons, discounts, offers, deals,
    promo codes,Coupons, Promo Codes & Cashback Offers

    ReplyDelete

  2. Offersable - Cash Back Offers | Discount Coupons | Bank Offers | Promo Codes.
    Find best Discount Coupons, Cashback Offers, Hot Deals Bank Offers for
    all major e-commerce stores in the India



    Amazon cashback offers 2018Cashback Deals with sbi,hdfc,icici,axis banks,
    credit&debit card,
    Amazon Cashback Offers 2018 Upto 65% Cashback Deals, AMAZON CASHBACK OFFERS 2018,
    DISCOUNT COUPON OFFERS 2018, Amazon cashback offers with sbi hdfc icici axis banks credit&debit card offers more. amazon cashback offers2018,amazon india cashback,amazon offers on mobiles,
    amazon cashback2018,amazon offers 2018



    flipkart sbi offers, Flipkart Sbi Offer, SBI offers on Flipkart, Sbi offers in Flipkart, Sbi offer flipkart, Sbi discounts flipkart, FLipkart sbi discounts

    MyDealsAndCoupons,flipkart cashback offers,cashbackcoupons,flipkartcashbackoffers,cashbackoffer,cashbackofferscoupons,flipkarthdfcoffer,latestcashbackoffers,flipkartcreditcardoffers,dealsncashbackcashbackoffers

    cashbackcoupons

    Amazon cashback offers today, Amazon cashback offers, Amazon cashback offers on mobiles,
    amazon cashback offers today,amazon cashback offers,amazon cashback offer august,amazon citibank cash back offer,amazon cashback offer on hdfc credit card,amazon cashback offer on hdfc credit card,amazon cashback offer jio,amazon cashback offers on mobiles,amazon pay cashback offer today,amazon offers 10 cashback




    Flipkart HDFC Offer 2018 | Flipkart Offers Today | Flipkart Bank Offer

    Flipkart CashBack Offers - SBI, HDFC, ICICI, Citibank Cards,flipkart sbi debit card emi,flipkart upcoming offers on mobiles,flipkart credit card,flipkart cashback phonepe,flipkart credit card generator,flipkart cashback offer phonepe,flipkart american express,india fake debit card generator,flipkart american express gift card,sbi credit card offers on flipkart today,sbi flipkart offer,
    sbi debit card offers cash back,sbi flipkart offer 2018,,telugu bloggers ,telugu websites

    ReplyDelete
  3. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.

    flipkart is Offering Cashback Offers Flipkart hdfc cashback offers You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart SBI Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart AXIS Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart YES Cashback Offer You will get upto 75% Discount

    Flipkart is one of the biggest world wide eCommerce Site so here you will getFlipkart big billion day offers

    Flipkart is one of the biggest world wide eCommerce Site so here you will getflipkart bank cashback offersso


    Flipkart cashback offers on mobiles,
    Flipkart cashback offers,
    Flipkart cashback coupons,
    Flipkart upcoming offers on mobiles,
    Flipkart HDFC cashback offers,
    Flipkart SBI cashback offers,
    Flipkart AXIS cashback offers,
    Flipkart Citibank cashback offers,
    Flipkart cashback on mobiles,
    Flipkart cashback offers today,
    Flipkart big billion day cashback offers,
    Flipkart big billion days cashback offers,
    big billion day cashback offers,
    Flipkart big billion days offers,
    flipkart cashback on mobiles,
    flipkart citibank offer,
    sbi credit card offers on flipkart today,
    flipkart upcoming offers on mobiles,
    hdfc credit card offers on flipkart,
    flipkart upcoming big billion day,
    flipkart upcoming sale,
    sbi credit card offers on mobiles,
    flipkart offers today,
    flipkart offers on mobiles,
    flipkart offers today mobile phones,
    flipkart cashback offers,
    flipkart cashback coupons,
    flipkart sale today offer,
    flipkart cashback offers today,
    cashback offers,
    flipkart cashback offer today

    ReplyDelete



  4. flipkart is Offering Cashback Offers Flipkart hdfc cashback offers You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart SBI Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart AXIS Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart YES Cashback Offer You will get upto 75% Discount

    Flipkart is one of the biggest world wide eCommerce Site so here you will getFlipkart big billion day offers

    Flipkart is one of the biggest world wide eCommerce Site so here you will getflipkart bank cashback offersso



    Flipkart is one of the biggest world wide eCommerce Site so here you will getFlipkart big billion day offer


    Flipkart is one of the biggest world wide eCommerce Site so here you will getflipkart bank cashback offersso

    Flipkart is one of the biggest world wide eCommerce Site so here you will getFlipkart bank offersso

    Flipkart is Offering Cashback Offers Flipkart Today Offers You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart offers today You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart Today saree offers You will get upto 75% Discount

    ReplyDelete
  5. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.

    flipkart is Offering Cashback Offers Flipkart hdfc cashback offers You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart SBI Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart AXIS Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart YES Cashback Offer You will get upto 75% Discount

    Flipkart is one of the biggest world wide eCommerce Site so here you will getFlipkart big billion day offers

    Flipkart is one of the biggest world wide eCommerce Site so here you will getflipkart bank cashback offersso


    Flipkart cashback offers on mobiles,
    Flipkart cashback offers,
    Flipkart cashback coupons,
    Flipkart upcoming offers on mobiles,
    Flipkart HDFC cashback offers,
    Flipkart SBI cashback offers,
    Flipkart AXIS cashback offers,
    Flipkart Citibank cashback offers,
    Flipkart cashback on mobiles,
    Flipkart cashback offers today,
    Flipkart big billion day cashback offers,
    Flipkart big billion days cashback offers,
    big billion day cashback offers,
    Flipkart big billion days offers,
    flipkart cashback on mobiles,
    flipkart citibank offer,
    sbi credit card offers on flipkart today,
    flipkart upcoming offers on mobiles,
    hdfc credit card offers on flipkart,
    flipkart upcoming big billion day,
    flipkart upcoming sale,
    sbi credit card offers on mobiles,
    flipkart offers today,
    flipkart offers on mobiles,
    flipkart offers today mobile phones,
    flipkart cashback offers,
    flipkart cashback coupons,
    flipkart sale today offer,
    flipkart cashback offers today,
    cashback offers,
    flipkart cashback offer today

    ReplyDelete
  6. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.

    flipkart is Offering Cashback Offers Flipkart hdfc cashback offers You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart SBI Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart AXIS Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart YES Cashback Offer You will get upto 75% Discount

    Flipkart is one of the biggest world wide eCommerce Site so here you will getFlipkart big billion day offers

    Flipkart is one of the biggest world wide eCommerce Site so here you will getflipkart bank cashback offersso


    Flipkart cashback offers on mobiles,
    Flipkart cashback offers,
    Flipkart cashback coupons,
    Flipkart upcoming offers on mobiles,
    Flipkart HDFC cashback offers,
    Flipkart SBI cashback offers,
    Flipkart AXIS cashback offers,
    Flipkart Citibank cashback offers,
    Flipkart cashback on mobiles,
    Flipkart cashback offers today,
    Flipkart big billion day cashback offers,
    Flipkart big billion days cashback offers,
    big billion day cashback offers,
    Flipkart big billion days offers,
    flipkart cashback on mobiles,
    flipkart citibank offer,
    sbi credit card offers on flipkart today,
    flipkart upcoming offers on mobiles,
    hdfc credit card offers on flipkart,
    flipkart upcoming big billion day,
    flipkart upcoming sale,
    sbi credit card offers on mobiles,
    flipkart offers today,
    flipkart offers on mobiles,
    flipkart offers today mobile phones,
    flipkart cashback offers,
    flipkart cashback coupons,
    flipkart sale today offer,
    flipkart cashback offers today,
    cashback offers,
    flipkart cashback offer today

    ReplyDelete