Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET jQuery
Hi,
 
I have to show model popup extender using jquery. popup is in Master page.
 
That JS i am registering using RegisterClientScriptBlock.
 
In JS page using $find(Behaviourid) and making it show but it is giving error null object.
if i am using only $('') then it is neither giving error nor showing popup.
 
From Codebehind its working fine but i need to show it through JS.
 
Help me..
 
Thanks in Advance...
Posted 27-Oct-10 5:31am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I have used $find(Behaviourid) several times. Please check the following points
 
- Whether jquery file is included in the page.
- Whether you have assigned the Behaviourid property to extender
- Check whether bth placed Behaviourid is same
 
I dont see any other reason.
  Permalink  
Comments
Member 7217874 at 27-Oct-10 13:17pm
   
jquery file is included, behaviourid is same in extender and in js code.
I tried finding through ClientId also but not working.
If i am finding a div which is in that extender for displaying message, then it is finding but not finding extender.
[raju.m][makhaai] at 27-Oct-10 15:53pm
   
to find client ID you can use firebug or IEWebdeveloper tool.
Brij good answer, take my 5
Member 7217874 at 27-Oct-10 16:15pm
   
I tried that.. But i think that extender is in Master of Master Page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 27 Oct 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100