Click here to Skip to main content
15,888,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: A page can have only one server-side Form tag. Pin
Abhishek Sur17-Nov-09 1:51
professionalAbhishek Sur17-Nov-09 1:51 
AnswerRe: A page can have only one server-side Form tag. Pin
OriginalGriff17-Nov-09 1:50
mveOriginalGriff17-Nov-09 1:50 
GeneralRe: A page can have only one server-side Form tag. Pin
Ersan Ercek17-Nov-09 8:18
Ersan Ercek17-Nov-09 8:18 
Questionhow to group multiple headers in gridview/ Pin
hi_everybody17-Nov-09 0:29
hi_everybody17-Nov-09 0:29 
AnswerRe: how to group multiple headers in gridview/ Pin
Abhijit Jana17-Nov-09 0:51
professionalAbhijit Jana17-Nov-09 0:51 
GeneralRe: how to group multiple headers in gridview/ Pin
hi_everybody23-Nov-09 18:27
hi_everybody23-Nov-09 18:27 
AnswerRe: how to group multiple headers in gridview/ Pin
MohitBhambral17-Nov-09 3:04
MohitBhambral17-Nov-09 3:04 
Questionload report gives an error Pin
kripa2116-Nov-09 23:59
kripa2116-Nov-09 23:59 
I want to add 1 crystal report on my form
But following code gives me error for load report
How can I solve this?

testRpt.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="testRpt.aspx.vb" Inherits="Booking_Final_Booking_testRpt" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <CR:CrystalReportViewer ID="CrystalReportViewer1" 
                          runat="server" AutoDataBind="True"
                          Height="1039px" 
                          ReportSourceID="CrystalReportSource1" 
                          Width="901px" />
        <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
            <Report FileName="CrystalReport1.rpt">
            </Report>
        </CR:CrystalReportSource>

    </div>
    </form>
</body>
</html>


testRpt.aspx.vb

Imports Crystaldecisions.crystalreports.engine
Imports Crystaldecisions.reportsource
Imports Crystaldecisions.shared
Imports Crystaldecisions.windows.forms
Imports System.Data.SqlClient

Partial Class testRpt
    Inherits System.Web.UI.Page
    
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim crystalReport As New ReportDocument()
        crystalReport.Load(Server.MapPath("CrystalReport1.rpt"))
        crystalReport.SetDatabaseLogon("sa", "")
        CrystalReportViewer1.ReportSource = crystalReport
   end sub
end Class


and error is as
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

AnswerRe: load report gives an error Pin
Abhishek Sur17-Nov-09 1:39
professionalAbhishek Sur17-Nov-09 1:39 
GeneralRe: load report gives an error Pin
kripa2125-Nov-09 23:11
kripa2125-Nov-09 23:11 
Question[Message Deleted] Pin
crysler16-Nov-09 23:53
crysler16-Nov-09 23:53 
AnswerRe: asp.net & IE8 Pin
Christian Graus16-Nov-09 23:57
protectorChristian Graus16-Nov-09 23:57 
General[Message Deleted] Pin
crysler16-Nov-09 23:59
crysler16-Nov-09 23:59 
GeneralRe: asp.net & IE8 Pin
sashidhar17-Nov-09 0:03
sashidhar17-Nov-09 0:03 
AnswerRe: asp.net & IE8 Pin
Abhishek Sur17-Nov-09 1:35
professionalAbhishek Sur17-Nov-09 1:35 
QuestionCan You tell me y? Pin
sashidhar16-Nov-09 23:47
sashidhar16-Nov-09 23:47 
AnswerRe: Can You tell me y? Pin
Abhijit Jana16-Nov-09 23:49
professionalAbhijit Jana16-Nov-09 23:49 
Questioncalling of dll's when both are in same folder Pin
vikas shukla16-Nov-09 23:14
vikas shukla16-Nov-09 23:14 
AnswerRe: calling of dll's when both are in same folder Pin
Abhijit Jana16-Nov-09 23:17
professionalAbhijit Jana16-Nov-09 23:17 
GeneralRe: calling of dll's when both are in same folder Pin
vikas shukla16-Nov-09 23:53
vikas shukla16-Nov-09 23:53 
GeneralRe: calling of dll's when both are in same folder Pin
Christian Graus16-Nov-09 23:57
protectorChristian Graus16-Nov-09 23:57 
QuestionPassing Data Between Pages Pin
rhtbhegade16-Nov-09 22:55
rhtbhegade16-Nov-09 22:55 
AnswerRe: Passing Data Between Pages Pin
Christian Graus16-Nov-09 23:04
protectorChristian Graus16-Nov-09 23:04 
AnswerRe: Passing Data Between Pages Pin
Abhishek Sur16-Nov-09 23:06
professionalAbhishek Sur16-Nov-09 23:06 
AnswerRe: Passing Data Between Pages Pin
Abhijit Jana16-Nov-09 23:22
professionalAbhijit Jana16-Nov-09 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.