0

I have a progress bar (which is a user control). When user, click a button, this progressbar will get displayed. The issue is ...even if the progressbar is visible, I am able to set focus to other controls in base page. I need to blur the base page...and set focus to user control.

Plz help me ...Thanks in advance...!

Anish Mohan
  • 55
  • 1
  • 11

1 Answers1

1

The latest version of the ASP.Net AJAX toolkit has a ModalPopup which takes care of this behaviour for you - just set the PopupControlID of the Modal Popup Extender to the ID of your control and the TargetControlId to the button which will trigger the popup.

Dexter
  • 18,213
  • 4
  • 44
  • 54
  • I know abt modal popup extender... Is ther no other way ? – Anish Mohan Feb 11 '10 at 15:12
  • Using a ModalPopupExtender is definitely going to be the easiest way in .Net. If you wanted, I guess you could re-implement the functionality of the extender - all it does it inject a new div set to take up 100% of the screen, and then set the z-index of the popup: `
    ...
    `
    – Dexter Feb 11 '10 at 15:18
  • It doesn't have to be the modal popup extender, but that approach is the best way to do it. – Brian Mains Feb 11 '10 at 16:49