Asp.net 水晶报表初级入门.
前台设计页面.aspx
<body>
<form id="form1" runat="server">
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
</div>
</form>
</body>
后台.aspx.cs文件
//引入报表空间
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Web;
using CrystalDecisions.Shared;
//
using System.Data.SqlClient;
protected void Page_Load(object sender, EventArgs e)
{
// 1.首先在项目的该网页对应的文件夹里面添加新项------选择Crystal 报表(默认名称:CrystalReport.rpt)
// 2.在次在项目的该网页对应的文件夹里面添加新项------选择添加数据集(默认为:clumn1,可修改)
// 3.在数据集(默认为:datatable1),右键点属性:添加列(默认为:clumn1,可设置他的名称,默认值,是否设置为主键等。)
// 4.在Crystal 报表中(默认名称:CrystalReport.rpt),选中右键点 数据库专家----在选择项目数据栏目里面的Ado.net数据集,把我们新建的数据库dataset1,添加
// 到右边去。 在回到CrystalReport.rpt的页面上,找到资源字段管理器----->在找到下面的数据库字段,将其拖到左边的页眉中间,即第三栏。
//现在的设计已基本完成,现在在后台写代码实现。只是简单的实例,以后将 讲到如何分页,打印,样式布局等。
SqlConnection con = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["ADOStr"].ToString());
//获取数据库连接
con.Open();
//打开连接,记住后面要管理,我这就不用关了。
Data
相关文档:
ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a Web application server. For example, an "order" application might be published in the "/order" virt ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using  ......
function _doPostBack(){};
if(typeof("__doPostBack")=="function")
{
_doPostBack=__doPostBack;
__doPostBack=_doPostBackNew;
}
document.attachEvent("onmousemove",_onmousemove);
var _isPosting=false;
var _divMask=null;
function _onmousemove()
{
if(_divMask)
with(_divMask.runtimeStyle)
......
ASP.NET MVC 多语言解决方案()
就一个网站的多语言特性来说,我认为分为两个方面:
1、HTML界面上显示的文字需要多语言
2、HTML界面上JS输出的文字需要多语言
原来在HTML部分直接写的文字都不能直接写要输出的文字,而是要采用标记的方法来替换。JS也 ......
程序开发中,数据流按照一定的规律进行传输,如果用户和程序之间的交互完全按照预定的效果运行,程序不会出现问题。可以假设所处理的数据都符合要求,通过界面作格式判定,所有资源都正确,但是为了系统的安全,需要处理存在的隐患,不能对数据安全抱有理想化的想法。
在ASP.NET ......