HomeHomeDotNetNuke Forg...DotNetNuke Forg...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPICannot access GridView in javascriptCannot access GridView in javascript
Previous
 
Next
New Post
12/3/2008 1:19 AM
 

HI,

I am using a gridview control in my .ascx page. I need to acces that in a client side script trough javascript.

I have tried with both with Id and ClientID , but still that gives me null.. But if i try this with other asp controls like button or Panel it returns me an object..

This is very urgent..Please help me out..

here is the sample::

 

 

asp:GridView ID="GridView1" runat="server"></asp:GridView>

 

The Script :

function

{

 

SelectAllCheckboxesSpecific() var Parent = document.getElementById('<%=GridView1.ClientID%>');

}

Thanks in advance..

 

 

 

 

 

<

 
New Post
12/3/2008 6:07 AM
 

I would recommend simply doing a view source on the page that renders the gridview and check what ID it is emitting.  Then compare that to what ID your GridView1.ClientID spits out to compare the differences.


 
New Post
12/3/2008 8:32 PM
 

First of all i would like to thank you for your reply..

I am not being able to access the grid on the client side as i can access the other ASP controls.

So basically when i say documnet.getElementById('<%=GridView1.ClientID%>'), it returns me null..

How can i get the ID of the GridView on the Client side..

 
New Post
12/4/2008 5:59 AM
 

My suggestion on how to troubleshoot remains the same.  Please try my suggestion.


 
Previous
 
Next
HomeHomeDotNetNuke Forg...DotNetNuke Forg...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPICannot access GridView in javascriptCannot access GridView in javascript


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.