Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'rows' does not exist in the current context
Source Error:
|
|
Line 36: function drawChart()
Line 37: {
Line 38: var data1 = google.visualization.arrayToDataTable([@rows]);
Line 39: var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
Line 40: chart.draw(data1, {
|
Source File: c:\inetpub\wwwroot\Gecko_Dev\Members\testni.cshtml
Line: 38
Show Detailed Compiler Output:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft WebMatrix> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\assembly\dl3\ed6e5a8d\3b663c72_e3d5cd01\DotNetOpenAuth.OAuth.Consumer.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\assembly\dl3\7783720c\5e392c72_e3d5cd01\DotNetOpenAuth.OpenId.RelyingParty.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Helpers\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\assembly\dl3\6c8b144e\edac1a72_e3d5cd01\DotNetOpenAuth.OpenId.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\assembly\dl3\dd37b489\02988272_e3d5cd01\Microsoft.Web.WebPages.OAuth.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\assembly\dl3\3942f7e8\38840872_e3d5cd01\DotNetOpenAuth.OAuth.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\assembly\dl3\a3a93d1f\3353fa71_e3d5cd01\DotNetOpenAuth.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\assembly\dl3\0cdcb961\82334b72_e3d5cd01\DotNetOpenAuth.AspNet.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WebMatrix.Data\v4.0_2.0.0.0__31bf3856ad364e35\WebMatrix.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Administration\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Administration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Runtime\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Runtime.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WebMatrix.WebData\v4.0_2.0.0.0__31bf3856ad364e35\WebMatrix.WebData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\NuGet.Core\v4.0_1.6.30117.9648__31bf3856ad364e35\NuGet.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.Razor.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\App_Web_testni.cshtml.28424a96.i5wnf2lu.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\App_Web_testni.cshtml.28424a96.i5wnf2lu.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a39a0b6d\cabef2fe\App_Web_testni.cshtml.28424a96.i5wnf2lu.1.cs"
Microsoft (R) Visual C# Compiler version 4.0.30319.17929
for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.
c:\inetpub\wwwroot\Gecko_Dev\Members\testni.cshtml(38,61): error CS0103: The name 'rows' does not exist in the current context
|
Show Complete Compilation Source:
Line 1: #pragma checksum "C:\inetpub\wwwroot\Gecko_Dev\Members\testni.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "FB7359BD0DD6E48884BC11EB338369460C283CD3"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.18034
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14:
Line 15: #line 2 "C:\inetpub\wwwroot\Gecko_Dev\Members\testni.cshtml"
Line 16: using System.Collections.Generic;
Line 17:
Line 18: #line default
Line 19: #line hidden
Line 20: using System.IO;
Line 21: using System.Linq;
Line 22: using System.Net;
Line 23: using System.Web;
Line 24: using System.Web.Helpers;
Line 25: using System.Web.Security;
Line 26: using System.Web.UI;
Line 27: using System.Web.WebPages;
Line 28: using System.Web.WebPages.Html;
Line 29:
Line 30: #line 1 "C:\inetpub\wwwroot\Gecko_Dev\Members\testni.cshtml"
Line 31: using System.Data;
Line 32:
Line 33: #line default
Line 34: #line hidden
Line 35:
Line 36: #line 3 "C:\inetpub\wwwroot\Gecko_Dev\Members\testni.cshtml"
Line 37: using System.Data.SqlClient;
Line 38:
Line 39: #line default
Line 40: #line hidden
Line 41: using WebMatrix.Data;
Line 42: using WebMatrix.WebData;
Line 43: using Microsoft.Web.WebPages.OAuth;
Line 44: using DotNetOpenAuth.AspNet;
Line 45:
Line 46:
Line 47: public class _Page_Members_testni_cshtml : System.Web.WebPages.WebPage {
Line 48:
Line 49: #line hidden
Line 50:
Line 51: public _Page_Members_testni_cshtml() {
Line 52: }
Line 53:
Line 54: protected System.Web.HttpApplication ApplicationInstance {
Line 55: get {
Line 56: return ((System.Web.HttpApplication)(Context.ApplicationInstance));
Line 57: }
Line 58: }
Line 59:
Line 60: public override void Execute() {
Line 61: BeginContext("~/Members/testni.cshtml", 0, 4, true);
Line 62:
Line 63: WriteLiteral(" ");
Line 64:
Line 65: EndContext("~/Members/testni.cshtml", 0, 4, true);
Line 66:
Line 67: BeginContext("~/Members/testni.cshtml", 25, 4, true);
Line 68:
Line 69: WriteLiteral(" ");
Line 70:
Line 71: EndContext("~/Members/testni.cshtml", 25, 4, true);
Line 72:
Line 73: BeginContext("~/Members/testni.cshtml", 65, 4, true);
Line 74:
Line 75: WriteLiteral(" ");
Line 76:
Line 77: EndContext("~/Members/testni.cshtml", 65, 4, true);
Line 78:
Line 79: BeginContext("~/Members/testni.cshtml", 100, 4, true);
Line 80:
Line 81: WriteLiteral(" ");
Line 82:
Line 83: EndContext("~/Members/testni.cshtml", 100, 4, true);
Line 84:
Line 85:
Line 86: #line 4 "C:\inetpub\wwwroot\Gecko_Dev\Members\testni.cshtml"
Line 87:
Line 88: Layout = null;
Line 89:
Line 90: string connectionString="Server=192.168.1.125,1433\\sqlexpress; Database=HEK; Uid=sa; Pwd=lubelincek12121";
Line 91: DataTable dt = new DataTable();
Line 92: using (SqlConnection conn = new SqlConnection(connectionString))
Line 93: {
Line 94: conn.Open();
Line 95: using (SqlDataAdapter adapter = new SqlDataAdapter("SELECT Datum, Sava, RPWS1 FROM vws", conn))
Line 96: {
Line 97: adapter.Fill(dt);
Line 98:
Line 99:
Line 100:
Line 101: List<string> rowsList = new List<string>();
Line 102:
Line 103: rowsList.Add("['Datum', 'Sava', 'RPWS1']");
Line 104:
Line 105: foreach (DataRow row in dt.Rows)
Line 106: {
Line 107: rowsList.Add("[" + row["Datum"] + ", " + row["Sava"] + ", " + row["RPWS1"] + "]");
Line 108: }
Line 109: String rows = String.Join(", ", rowsList);
Line 110:
Line 111: };
Line 112: };
Line 113:
Line 114:
Line 115:
Line 116: #line default
Line 117: #line hidden
Line 118: BeginContext("~/Members/testni.cshtml", 1039, 13, true);
Line 119:
Line 120: WriteLiteral("\r\n\r\n\r\n<script");
Line 121:
Line 122: EndContext("~/Members/testni.cshtml", 1039, 13, true);
Line 123:
Line 124: BeginContext("~/Members/testni.cshtml", 1052, 23, true);
Line 125:
Line 126: WriteLiteral(" type=\'text/_javascript_\'");
Line 127:
Line 128: EndContext("~/Members/testni.cshtml", 1052, 23, true);
Line 129:
Line 130: BeginContext("~/Members/testni.cshtml", 1075, 34, true);
Line 131:
Line 132: WriteLiteral(" src=""
Line 133:
Line 134: EndContext("~/Members/testni.cshtml", 1075, 34, true);
Line 135:
Line 136: BeginContext("~/Members/testni.cshtml", 1109, 19, true);
Line 137:
Line 138: WriteLiteral("></script>\r\n<script");
Line 139:
Line 140: EndContext("~/Members/testni.cshtml", 1109, 19, true);
Line 141:
Line 142: BeginContext("~/Members/testni.cshtml", 1128, 23, true);
Line 143:
Line 144: WriteLiteral(" type=\"text/_javascript_\"");
Line 145:
Line 146: EndContext("~/Members/testni.cshtml", 1128, 23, true);
Line 147:
Line 148: BeginContext("~/Members/testni.cshtml", 1151, 99, true);
Line 149:
Line 150: WriteLiteral(">\r\n function drawChart()\r\n {\r\n var data1 = google.visualization." +
Line 151: "arrayToDataTable([");
Line 152:
Line 153: EndContext("~/Members/testni.cshtml", 1151, 99, true);
Line 154:
Line 155: BeginContext("~/Members/testni.cshtml", 1251, 4, false);
Line 156:
Line 157:
Line 158: #line 38 "C:\inetpub\wwwroot\Gecko_Dev\Members\testni.cshtml"
Line 159: Write(rows);
Line 160:
Line 161:
Line 162: #line default
Line 163: #line hidden
Line 164: EndContext("~/Members/testni.cshtml", 1251, 4, false);
Line 165:
Line 166: BeginContext("~/Members/testni.cshtml", 1255, 502, true);
Line 167:
Line 168: WriteLiteral(@"]);
Line 169: var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
Line 170: chart.draw(data1, {
Line 171: height: 350,
Line 172: width: 900,
Line 173: title: 'Absolutna kota vode v tesnilni zavesi',
Line 174: vAxis: {
Line 175: maxValue: 165.5,
Line 176: minValue: 159,
Line 177: title: 'absolutna kota'
Line 178: }
Line 179: });
Line 180: }
Line 181:
Line 182: google.load('visualization', '1', {packages: ['corechart']});
Line 183: google.setOnLoadCallback(drawChart);
Line 184: </script>
Line 185: <div");
Line 186:
Line 187: EndContext("~/Members/testni.cshtml", 1255, 502, true);
Line 188:
Line 189: BeginContext("~/Members/testni.cshtml", 1757, 15, true);
Line 190:
Line 191: WriteLiteral(" id=\"chart_div\"");
Line 192:
Line 193: EndContext("~/Members/testni.cshtml", 1757, 15, true);
Line 194:
Line 195: BeginContext("~/Members/testni.cshtml", 1772, 7, true);
Line 196:
Line 197: WriteLiteral("></div>");
Line 198:
Line 199: EndContext("~/Members/testni.cshtml", 1772, 7, true);
Line 200:
Line 201: }
Line 202: }
Line 203: }
Line 204:
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034
|