Databases Reference
In-Depth Information
The last section of the code uses a ReportViewer control and the button click
event provides the code for ReportViewer to display a report on the report server.
The code incorporates all the methods in one Web form:
1.
Start Visual Studio 2010 (here, the Ultimate Evaluation was used).
2.
Create an ASP.NET Web Forms application with the name WebRepView .
3.
The project is created with the standard template structure.
4.
Add a new page named URLAccess.aspx , as follows:
5.
Drag-and-drop a ReportViewer control and a ScriptManager control you
find under Ajax Extensions from Toolbox on to the Web page (this is very
similar to what you did in Chapter 2 , SQL Server Reporting Services 2012
Projects with Visual Studio 2012 ).
6.
Replace the source code of the page with the following (make sure that the
asp.net controls are not duplicated):
<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="URLAccess.aspx.vb" Inherits="WebRepView.URLAccess" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a
3a"
 
Search WWH ::




Custom Search