thanks everybody and sorry to reply late
I solved my problem with usercontroll,in this way the dialog loads a
usercontroll instead of .aspx page and all the controlls work fine as
well

On Dec 30, 6:33 pm, MorningZ <morni...@gmail.com> wrote:
> 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- Hide quoted text -
>
> - Show quoted text -

Reply via email to