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

Asp.net(C#)¶àÎļþÉÏ´«


FileUp.aspx Ò³Ãæ
 1<%@ Page language="c#" Codebehind="FileUp.aspx.cs" AutoEventWireup="false" Inherits="TestCenter.FileUp" %>
 2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
 3<HTML>
 4  <HEAD>
 5    <title>¶àÎļþÉÏ´«</title>
 6    <script language="JavaScript">
 7    function addFile()
 8    {
 9     var str = '<INPUT type="file" size="50" NAME="File">'
10     document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str)
11    }
12    </script>
13  </HEAD>
14  <body>
15    <form id="form1" method="post" runat="server" enctype="multipart/form-data">
16      <div align="center">
17        <h3>¶àÎļþÉÏ´«</h3>
18        <P id="MyFile"><INPUT type="file" size="50" NAME="File"></P>
19        <P>
20          <input type="button" value="Ôö¼Ó(Add)" onclick="addFile()">
21          <input onclick="this.form.reset()" type="button" value="ÖØÖÃ(ReSet)">
22          <asp:Button Runat="server" Text="¿ªÊ¼ÉÏ´«" ID="UploadButton"></asp:Button>
23        </P>
24        <P>
25        <asp:Label id="strStatus" runat="server" Font-Names="ËÎÌå" Font-Bold="True" Font-Size="9pt" 
26          Width="500px" BorderStyle="None" BorderColor="White">&l


Ïà¹ØÎĵµ£º

CodeSmith,SqlServer,C#ÖеÄÀàÐͶÔÕÕ

SQLServer          CodeSmith                            C#
bigint                    Int64           ......

ASP.NET¶¯Ì¬¼ÓÔØÓû§¿Ø¼þµÄʵÏÖ·½·¨

µÚÒ»²½£ºÀýÈçÓû§¿Ø¼þ·ÅÔÚMyList.Ascx£¬È»ºóÆäControlÖ¸ÁîÊÇ£º
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ViewComment.ascx.cs" Inherits="Control_ViewComment"%>
ÕâʱºòÒѾ­ÓÐÁËInherits£¬×Ô´øÁËClassName¾ÍÊÇÆäÃû³Æ£¬Èç¹ûûÓУ¬Ôò±ØÐë´´½¨ClassNameÊôÐÔ¡£
¼ÙÉèÆäÓй«¹²ÊôÐÔID¡£
µÚ¶þ²½£ ......

asp.net½áºÏaspnetpagerÓÃsqlÓï¾ä·ÖÒ³

Êý¾Ý¿â²Ù×÷Àࣺ
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
/// <summary>
/// È¡µÃ×ÜÊý
/// </summary>
/// <returns></returns>
public string getTotal()
{
StringBuilder sb = new StringBuilder();
sb.Append("select count(*) total from Test");
DataTable dt = DBHelper.ExecuteDt(sb.ToString ......

asp.net(C#)ʵÏÖSQL2000Êý¾Ý¿â±¸·ÝºÍ»¹Ô­

asp.net(C#)ʵÏÖSQL2000Êý¾Ý¿â±¸·ÝºÍ»¹Ô­
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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.Htm ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ