|
Add there one more grid view under parent grid view.. there give a header to inner grid..
Thanks
Mohit Bhambral
mohitbhambral@gmail.com
|
|
|
|
|
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.
|
|
|
|
|
Add this line in Web.config
<trust level="Full" originUrl="" />
You might find interest to read one article on Trust level
Here. [^]
Hope you like this solution.
Cheers.
|
|
|
|
|
Mr Abhishek,
I added <trust level="Full" originurl=""> in web.config
bt still having problem
|
|
|
|
|
|
So ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
george.dt wrote: thanks. Good answer
You have to explain my friend ..!Thts what he means..!Thts not the answer..!
Did You Check again with different cases..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Go to
Internet Explorer >> Tools >> Internet Options >> Advanced
Just Un-Check the Enable third-party browser extensions.
You are done.
Next time please try to explain what exactly you want.
Cheers.
|
|
|
|
|
Below is the Sample
<asp:content></asp:content>
Actually i wrote
<asp:content></asp:content>
in code block..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Check "Do not interpret HTML tags (good for code snippets)"
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hi sir,
please tell me that how we can call a dll from another dll when both are in same folder.
thanks
|
|
|
|
|
How this is related with asp.net.
Add Dll as reference, Add namespaces. use the classes
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thank u sir
but my issue is still remaining.
actually this is my first dll
using System;
namespace myfirst
{
public class demo
{
public string getmessage()
{
return "Hi!How Are You";
}
}
}
in folder e:\prac
and more dll is
using System;
using myfirst;
namespace mysecond
{
public class demo1
{
public string getmessage1()
{
demo d=new demo();
string str1=d.getmessage();
Console.WriteLine(str1);
}
}
}
and now i am using csc /t:library mysecond.cs
then i have following error and problem was same.please help me
mysecond.cs(2,7): error CS0246: The type or namespace name 'myfirst' could not
be found (are you missing a using directive or an assembly reference?)
|
|
|
|
|
This has NOTHING to do with ASP.NET. Ask it in the right forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Experts,
I want to pass the data from first.aspx page to Third.aspx.....however my sequence is first.aspx then on button click second.aspx and then navigates to Third.aspx....
I KNOW ONLY THE PREVIOUS PAGE PROPERTY...
Sharing Of Knowledge Provides Solution....
|
|
|
|
|
You can pass values on the URL, or place them in the session. You can also make all your 'pages' controls on the one page and let the values persist in viewstate.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Put in the querystring or HiddenField to pass data during submit. The choice depends on how you call the page (GET / POST)
|
|
|
|
|
rhtbhegade wrote: however my sequence is first.aspx then on button click second.aspx and then navigates to Third.aspx....
As suggesed by others, You can store the data inside Session Variable and can access any where from your application.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
hi i want to add stylesheet in my content page.
i written code like this
<br />
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" ><br />
<link href="../App_Themes/Blue/DefStyles.css" rel="stylesheet" type="text/css" /><br />
</asp:Content><br />
if i switch design window below error is coming
"
Error 40
Cannot switch views: Validation (XHTML 1.0 Transitional):
Element 'link' cannot be nested within element 'td'.
"
how to solve this problem?
|
|
|
|
|
this should be like this
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="Server" >
<="" asp:content="">
|
|
|
|
|
if i write like that this error coming
Error 39 Only Content controls are allowed directly in a content page that contains Content controls.
|
|
|
|
|
Include your css file using ScriptManager
ScriptManager.RegisterClientScriptBlock(this,
typeof(nameOfPageOrControl),
"typeAUniqueScriptNameHere3",
"<link href='" +
ResolveUrl("~") +
"mystyle.css' rel='stylesheet' type='text/css' />",
false);
Remove the <link /> tag from your content PlaceHolder, then, it should work.
|
|
|
|
|
below is the sample content page which consists of style sheet..!
one button and a textbox..!
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="App_Themes/StyleSheet.css" rel="stylesheet" type="text/css" />
Close <asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Button ID="Button1" runat="server" Text="Button" /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>Close<asp:Content>
Close<asp:Content>--</asp:Content>
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|