Hi,
I'm attaching an .aspx page below.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EstoreSSRSCollectionSalesReport.aspx.cs" Inherits="EStoreAdmin.EStoreAdmin.EstoreSSRSCollectionSalesReport" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>CollectionSalesReport</title>
<script src="http://www.cbazaar.in/Resources/JavaScripts/jquery-1.6.2.min.js" type="text/javascript"></script>
<link href="Styles/DatePicker.css" rel="stylesheet" type="text/css" />
<script src="JavaScripts/jquery.datepick.js" type="text/javascript"></script>
<script src="../JavaScripts/popcalendar.js"></script>
<script type="text/javascript">
$(document).ready(function () {
if ($.browser.webkit) {
$($(":hidden[id*='DatePickers']").val().split(",")).each(function (i, item) {
var h = $("table[id*='ParametersGrid'] span").filter(function (i) {
var v = "[" + $(this).text() + "]";
return (v != null && v.indexOf(item) >= 0);
}).parent("td").next("td").find("input#Rptvwr_ctl00_ctl03_txtValue").datepick({ yearRange: 'c-100:-0', maxDate: +0 });
});
$($(":hidden[id*='DatePickers']").val().split(",")).each(function (i, item) {
var h = $("table[id*='ParametersGrid'] span").filter(function (i) {
var v = "[" + $(this).text() + "]";
return (v != null && v.indexOf(item) >= 0);
}).parent("td").next("td").find("input#Rptvwr_ctl00_ctl05_txtValue").datepick({ yearRange: 'c-100:-0', maxDate: +0 });
});
}
});
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager id="scrmgr" runat="server">
<rsweb:ReportViewer ID="Rptvwr" runat="server" Width="100%" Height="700px" AsyncRendering="False"
SizeToReportContent="True">
<asp:HiddenField ID="DatePickers" runat="server" />
<img id="imgFrmCal" runat="server" alt="" border="0"
src="../image/calendar.gif" width="16" />
</form>
</body>
</html>
Corresponding .cs page is given below.
using System;
using System.Configuration;
using Microsoft.Reporting.WebForms;
namespace EStoreAdmin.EStoreAdmin
{
public partial class EStoreSSRSCollectionSalesReport : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (null != System.Web.HttpContext.Current.Session["sesOperatorId"])
{
Rptvwr.ProcessingMode = ProcessingMode.Remote;
Rptvwr.ServerReport.ReportServerUrl = new Uri(ConfigurationManager.AppSettings["SSRSUrl"].ToString());
Rptvwr.ServerReport.ReportPath = "/AllReports/CollectionSalesReport";
}
else
{
Response.Redirect("../interface/entry.asp");
//Response.Redirect("http://www.chennaibazaar.com/interface/entry.asp");
}
}
catch (Exception ex)
{
EsHelper.EsADLogger("EStoreSSRSCollectionSalesReport Page_Load() ", ex.Message.ToString());
}
}
}
}
When I execute this page, I'm getting the following error.
"The name Rptvwr doesnot exist in current context".
Can any one help me on this.
Thanks,
Shanif