dbTalk Databases Forums  

How to reference PivotTable control in asp.net code-behind?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss How to reference PivotTable control in asp.net code-behind? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chrysan
 
Posts: n/a

Default How to reference PivotTable control in asp.net code-behind? - 09-20-2005 , 12:52 AM






I have create an asp.net(.aspx) page, with a PivotTable control. I noticed
that, I can't

reference it in my code-behind(.aspx.vb), because it doesn't has the line
'Protected

WithEvents PivotTable1 As OWC10.PivotTable' as creating other controls,
liked Label, Button, ...

Can anybody teach me how to reference the PivotTable control in asp.net
code-behind?

Thanks.


Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: How to reference PivotTable control in asp.net code-behind? - 09-20-2005 , 07:42 AM






You will need to have added a reference to the COM component for OWC so
that VS.Net will generate the RWC (runtime callable wrapper)

And the aspx page will need the runat="server" tag (added automatically
if you drag the control onto the page.) The 'Protected WithEvents...'
declaration should also be added when the control is dragged onto the
form, but it can also be added manually.

For an example using OWC look at:
http://www.gotdotnet.com/Community/U...px?SampleGuid=
52701dd7-5606-4256-819e-d2ecf26e6cd7

For a general article on using OWC with ASP.NET have a look at:
http://www.codeproject.com/aspnet/owc11article.asp

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

In article <8B5E39FD-1885-473B-9BEA-D9E6B1CCD09F (AT) microsoft (DOT) com>,
Chrysan (AT) discussions (DOT) microsoft.com says...
Quote:
I have create an asp.net(.aspx) page, with a PivotTable control. I noticed
that, I can't

reference it in my code-behind(.aspx.vb), because it doesn't has the line
'Protected

WithEvents PivotTable1 As OWC10.PivotTable' as creating other controls,
liked Label, Button, ...

Can anybody teach me how to reference the PivotTable control in asp.net
code-behind?

Thanks.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.