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>
|