Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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Éú³É¾²Ì¬Ò³Ãæ²¢·ÖÒ³(ÎÄÕÂÄÚÈÝ·ÖÒ³)

Ö÷ÒªµÄÔ­Àí¾ÍÊÇÌ滻ģ°åÀïµÄÌØÊâ×Ö·û¡£
1¡¢¾²Ì¬Ä£°åÒ³Ãæ template.html£¬Ö÷ÒªÊǶ¨ÒåÁËһЩÌØÊâ×Ö·û£¬ÓÃÀ´±»Ìæ»»¡£
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">   <html>   <he ......

Asp.net ±ê×¼¿Ø¼þ £¨Ò»£©

Label——height£º¸ß¶È
              width£º¿í¶È
              backcolor£º±³¾°É«
             ......

ajax+asp.net/asp/php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ

ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼­Æ÷¡£
ΪÁ˼ӿìËٶȣ¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ãæ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ