I'd guess by the error that you are trying to load a full aspx page into another aspx page.. that is going to cause all sorts of issues as Viewstate and all the ASP.NET event wiring on the client are going to get all mangled up....
Try to return straight HTML back from AJAX calls, because you are fighting a very difficult battle trying to dynamically load server side controls and events On Dec 30, 10:02 am, "Richard D. Worth" <rdwo...@gmail.com> wrote: > What if you simply do > > jQuery("#myDiv").load("Default3.aspx") > > without making the div a dialog? If that works and you find the problem is > related to the dialog specifically, please let me know. > > - Richard > > On Tue, Dec 30, 2008 at 6:03 AM, Sara <sararaminp...@gmail.com> wrote: > > > Hi everybody > > > I have a jquery dialog which loads an .aspx page and this page > > contains only a label and button controls > > the dialog opens and loads the page fine but when button click of that > > page has not been fired at all and generates the following javascript > > error: > > > 'theForm.__EVENTTARGET' is null or not an object > > > my code: > > jQuery(document).ready(function(){ > > > jQuery("#Button1").click(function(){ > > jQuery("#myDiv").dialog({ modal: true, overlay: { opacity: > > 0.5, background: "black" },title: "Install Module" ,resizable: > > false,show: "slow",width: "300px",height: "300px" }); > > jQuery("#myDiv").load("Default3.aspx").dialog("open"); > > > }); > > }); > > > please help me > > thanks