Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2007, 01:13 AM
Registered User
 
Join Date: Jul 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default MasterPage, html?

Hi:

i am linking the office xp (OWC) office chart y office pivot table componentes using a Visual Basic (VBScript) script inside of an aspx page with code html, when i add the reference code of the masterpage of my site it's a problem when the page load (error)

can anybody to tell me wich is the right way to mix html code with a masterpage.? Here i show the code of my page aspx: at the top i have the code that make reference to the masterpage. if i delete this part of the code the page load sucesfull, but i need the masterpage.???help please???


*********************************


<%@ Page MasterPageFile="~/MasterPage.master"language="c#" Inherits="Interfaz_Olap_GraficoGOD" culture="es-CO" uiCulture="es-CO" CodeFile="GraficoGOD.aspx.cs" %>


<html>
<body>
<p align="Center">
<button id="btnpru" style="width:200">Limpiar Graficos</button>#xa0;#xa0;
<br/><br/>
<object classid="clsid:0002E55D-0000-0000-C000-000000000046" id="CSpace" width="95%" height="60%">
</object>
<br/><br/>
<object classid="clsid:0002E55A-0000-0000-C000-000000000046" id="PTable" width="95%" height="60%">
<param name="AutoFit" value="False"/>
</object>
</p>

<script language="VBScript">
Dim c
Dim sServerName
Set c = CSpace.Constants
sServerName = "HORUS"
BuildPivot

Function BuildPivot()

  'Conecta la PivotTable con el data source y enlaza el chart con la PivotTable.
   PTable.ConnectionString = "Provider=msolap.3;Initial Catalog=SPARAS;Data Source=" & sServerName
   PTable.DataMember = "Calidad de Contenidos"
   Set CSpace.DataSource = PTable
   CSpace.DisplayToolbar=True
   CSpace.DisplayFieldList=True
   CSpace.HasMultipleCharts = False
   Cspace.HasChartSpacelegend=True
   CSpace.PlotAllAggregates = c.chPlotAggregatesSeries

End Function

Function btnpru_OnClick()
    'Limpia los componentes.
    BuildPivot
    Cspace.Clean
End Function

</script>

</html>

 
Old November 12th, 2007, 06:52 AM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Interfaz_Olap_GraficoGOD this should be your Partial Class Interfaz_Olap_GraficoGOD in the code behind file.

regards

Even impossible says I M Possible !





Similar Threads
Thread Thread Starter Forum Replies Last Post
MasterPage grstad ASP.NET 2.0 Basics 0 June 7th, 2008 04:30 AM
MasterPage Help!!!???? kr33 ASP.NET 2.0 Basics 4 February 2nd, 2007 01:49 AM
My first MasterPage grstad ASP.NET 2.0 Basics 4 June 7th, 2006 11:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.