N
Nathan Burleson
Hello,
I have a custom control that is used to select a location from a list
of locations. When put on the page it creates an asp:textbox (used to
display the name of the location), a hidden field (which stores the
primary key of the location from the DB) and an image button. When you
click the image button a popup is created that allows you to select an
item from a complex screen (tabbed interface, etc).
The important thing is that when you have selected the location you
wish and click on the "Select" button in the popup it tries to call
_doPostBack on the Parent Window and then close itself. This works
fine as long as you have some form elements on the page the "force"
asp.net to put the __doPostBack function on the page. But, if you
don't have these items then __doPostBack is not created on the page,
and the child window fails by trying to call a parent method that
doesn't exist.
I need a way to force the "parent" page to create the __doPostBack
method whether it thinks it needs it or not.
I looked into GetPostBackClientEvent, but I don't think I can use it
since I am in a child window.
Any suggestions?
Thanks.
--Nathan
I have a custom control that is used to select a location from a list
of locations. When put on the page it creates an asp:textbox (used to
display the name of the location), a hidden field (which stores the
primary key of the location from the DB) and an image button. When you
click the image button a popup is created that allows you to select an
item from a complex screen (tabbed interface, etc).
The important thing is that when you have selected the location you
wish and click on the "Select" button in the popup it tries to call
_doPostBack on the Parent Window and then close itself. This works
fine as long as you have some form elements on the page the "force"
asp.net to put the __doPostBack function on the page. But, if you
don't have these items then __doPostBack is not created on the page,
and the child window fails by trying to call a parent method that
doesn't exist.
I need a way to force the "parent" page to create the __doPostBack
method whether it thinks it needs it or not.
I looked into GetPostBackClientEvent, but I don't think I can use it
since I am in a child window.
Any suggestions?
Thanks.
--Nathan