Click here to Skip to main content
15,906,626 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having 3 textboxes inside an user control,where the user control will be popped up using Ajax modal popup extender.As soon as the User control is popped up .i am clicking on the tab key instead of setting focus on the Textboxes one after another on each click .the Focus is set to the Browser and URL etc.i have given tab index for each textboxes.plz help me out
Posted

Ignore the nonsense below. Here is an example of what you are looking for.

http://www.aspdotnetcodes.com/ModalPopup_Postback.aspx[^]
 
Share this answer
 
v2
C#
function pageLoad(sender, args) {
    $find('ModalPopupBehavior').add_shown(Shown);
    $find('ModalPopupBehavior').add_showing(Showing);
    $find('ModalPopupBehavior').add_hidden(Hidden);
}

function Shown(sender, args) {
    modalId = sender.get_id();

}
function Showing(sender, args) {
    if (modalId == 'ModalPopupBehavior') {
        args.set_cancel(true);
    }
}
function Hidden(sender, args) {
    modalId = '';
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900