Jquery Modal popup window for report viewer
Hi,
Can anyone please let me know how to use Jquery Modal Popup Window.I am new to Jquery.
Below is the code which works well with the report viewer inside my asp.net web application
<%@
Page Language="C#"
AutoEventWireup="true"
MasterPageFile="~/Site.master"
CodeFile="Report.aspx.cs"
Inherits="Report"
%>
<%@
Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms"
TagPrefix="rsweb"
%>
<asp:Content
ID="HeaderContent"
runat="server"
ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content
ID="Content1"
runat="server" ContentPlaceHolderID="MainContent">
<asp:Panel
ID="pnlControls"
runat="server">
<table>
<tr>
<td>
Month
</td>
<td>
<asp:DropDownList
ID="ddlMonth"
runat="server">
<asp:ListItem
Text="January"
Value="1"/>
<asp:ListItem
Text="February"
Value="2"/>
<asp:ListItem
Text="March"
Value="3"/>
<asp:ListItem
Text="April"
Value="4"/>
<asp:ListItem
Text="May"
Value="5"/>
<asp:ListItem
Text="June"
Value="6"/>
<asp:ListItem
Text="July"
Value="7"/>
<asp:ListItem
Text="August"
Value="8"/>
<asp:ListItem
Text="September"
Value="9"/>
<asp:ListItem
Text="October"
Value="10"/>
<asp:ListItem
Text="November"
Value="11"/>
<asp:ListItem
Text="December"
Value="12"/>
</asp:DropDownList>
</td>
<td>
Year
</td>
<td>
<asp:DropDownList
ID="ddlYear"
runat="server">
<asp:ListItem
Value="2006"></asp:ListItem>
<asp:ListItem
Value="2007"
/>
<asp:ListItem
Value="2008"
/>
<asp:ListItem
Value="2009"
/>
<asp:ListItem
Value="2010"
/>
<asp:ListItem
Value="2011"
/>
<asp:ListItem
Value="2012"
/>
<asp:ListItem
Value="2013"
/>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
UserName
</td>
<td>
<asp:TextBox
ID="txtusername"
runat="server" Text="vtran"
/>
</td>
<td><asp:Button
ID="btnViewReport"
runat="server"
Text="View Report"
onclick="btnViewReport_Click"
/> </td>
</tr>
</table>
</asp:Panel>
<asp:Panel
ID="panel1"
runat="server">
<rsweb:ReportViewer
ID="ReportViewer1"
runat="server"
Font-Names="Verdana"
Font-Size="7pt"
InteractiveDeviceInfos="(Collection)"
ProcessingMode="Remote"
WaitMessageFont-Names="Verdana"
WaitMessageFont-Size="24pt"
Height="1131px"
Width="873px" DocumentMapWidth="50%"
BackColor="#D7EBFF"
LinkDisabledColor="DimGray"
ShowParameterPrompts="false"
EnableViewState="true"
>
<ServerReport
ReportPath="/Tdent/CRptActual"
ReportServerUrl="http://172.19.301.13/ReportsServer"
Timeout="6000"></ServerReport>
</rsweb:ReportViewer>
</asp:Panel>
<asp:ScriptManager
ID="ScriptManager1"
runat="server"
AsyncPostBackTimeout="360000"
ScriptMode="Release">
</asp:ScriptManager>
</asp:Content>
code behind:
using System;
using System.Configuration;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
using Microsoft.SqlServer.ReportingServices;
using System.Web.Configuration;
using System.Data.SqlClient;
using System.Data;
using Microsoft.ReportingServices;
public
partial class
CReport : System.Web.UI.Page
{
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void btnViewReport_Click(object sender,
EventArgs e)
{
ReportViewer1.AsyncRendering = true;
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new
Uri("http://172.19.231.136/ReportsServer");
ReportViewer1.ServerReport.ReportPath = "/Tdent/CRptActual";
ReportParameter[] parameters =
new ReportParameter[3];
parameters[0] = new
ReportParameter("pMonth", ddlMonth.SelectedValue);
parameters[1] = new
ReportParameter("pYear", ddlYear.SelectedValue);
parameters[2] = new
ReportParameter("pUserName", txtusername.Text);
ReportViewer1.ServerReport.SetParameters(parameters);
ReportViewer1.ServerReport.Refresh();
ReportViewer1.ShowReportBody = true;
panel1.Visible = true;
}
}
Thanks!!rr
September 14th, 2012 10:20am