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

ASP.Net 1.1 ÈçºÎÉÏ´«Îļþ

ASP.Net 1.1 ûÓÐ.Net2.0ÌṩµÄFileUpload¿Ø¼þ£¬ÐèÒªÌí¼ÓÒ»¸ötypeΪfileµÄhtml input¿Ø¼þ£¬È»ºóÔÙдһ¸ö
¶ÀÁ¢µÄupload button¡£ÊµÀýÈçÏ£º
1. HTML
  <input id="txtAttch" type="file" runat="server">
<br>
<input id="cmdUpload" type="button" value="Upload" runat="server">
2. Server
    Private Sub cmdUpload_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpload.ServerClick
        Dim cFile As String
        Dim cFileName As String
        Dim cServerFilePath As String = Server.MapPath("") & "\MailAttachments\"
        cFile = Me.txtAttch.PostedFile.FileName
        cFileName = System.IO.Path.GetFileName(cFile)
        cServerFilePath = cServerFilePath & cFileName
        Me.txtAttch.PostedFile.SaveAs(cServerFilePath)
        PopMsg("Upload Finish")
    End Sub


Ïà¹ØÎĵµ£º

ASP.NET(C#)³£ÓôúÂë30Àý

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......

asp.netµÄXMLͨÓòÙ×÷Àà

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Syste ......

Asp.net ¶ÁÈ¡EXCEL2007/2003 Êý¾Ý

Public DataTable GetDataTablefromExcel(string fileName,string tableName )
{
string connStr = "Provider=Microsoft.ACE.OLEDB.12.0; Persist Security Info=False;Extended Properties=Excel 8.0; data source=Îļþ·¾¶" 
string sql = "SELECT * from [" + tableName + "]";
OleDbConnection conn = ne ......

asp.net 1.1 °²×°ÊÖ²á


 
ÏÈÉý¼¶ieµ½5.5°æÒÔÉÏ
1 ÏÂÔØÖÐÎÄ°æIE6:http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/ie6setup.exe
2 ÏÂÔØmdac°²×° Ö±½ÓÏÂÔØ2.8ÖÐÎÄ°æ:http://download.microsoft.com/download/8/b/6/8b6198c0-fe96-4811-9d81-
d5c76dd5fea8/MDAC_TYP.EXE
3 È»ºóÏÂÔØ.NET Framework 1.1°æ¿ÉÔ ......

ASP.NETÖÐtreeviewÓ¦Óã¨ÓÃSQL×÷Êý¾ÝÔ´£©


treeview.aspxÖдúÂëÈçÏ£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="treeview.aspx.cs" Inherits="treeview" %>
<!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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ