modalpopupextender and commas appearing in my textbox asp.net

后端 未结 15 640
失恋的感觉
失恋的感觉 2020-12-24 05:07

Some weird stuff is happening, I am converting an application that used to use javascript to open another web page in a tiny window for data input to use a ModalPopupExtende

15条回答
  •  抹茶落季
    2020-12-24 05:37

    I have been trying to solve this for a day now and some very helpful person in my office has come up with a terrific solution!

    We moved the ModalPopUpExtender and subsequent pop up panel controlled by the extender to ouside of the outermost UpdatePanel on the page, created a fake button and gave the ID of the fake button to the TargetControlID property of the ModalPopUpExtender.

    Inside my forms/page where the PopUp extender and panels used to be, I created an OnClick event on the button that we used to use to trigger the ModalPopUpExtender.

    
    

    On my button that triggers the ModalPopUpExtender, I have created an OnClick event called "LoadPopUp" - in LoadPopUp in the code behind I simply put ModalPopUpExtender1.Show();

    protected void LoadPopUp(object sender, EventArgs e)
    {
      ModalPopupExtender1.Show();
    }
    

提交回复
热议问题