|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP脚本是采用明文(plaintext)方式来编写的。client|web|服务器usingSystem;
usingSystem.Drawing;
usingSystem.Collections;
usingSystem.ComponentModel;
usingSystem.Windows.Forms;
usingSystem.Net;
usingSystem.Text;
usingSystem.IO;
namespaceUploadFile
{
publicclassForm1:System.Windows.Forms.Form
{
privateSystem.Windows.Forms.Labellabel1;
privateSystem.Windows.Forms.Labellabel2;
privateSystem.Windows.Forms.Buttonbutton1;
privateSystem.Windows.Forms.Labellabel3;
privateSystem.Windows.Forms.Buttonbutton2;
privateSystem.Windows.Forms.TextBoxtxtFileName;
privateSystem.Windows.Forms.TextBoxtxtServerPath;
privateSystem.Windows.Forms.LinkLabellinkLabel1;
privateSystem.ComponentModel.Containercomponents=null;
publicForm1()
{
InitializeComponent();
}
protectedoverridevoidDispose(booldisposing)
{
if(disposing)
{
if(components!=null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
#regionWindowsFormDesignergeneratedcode
privatevoidInitializeComponent()
{
System.Resources.ResourceManagerresources=newSystem.Resources.ResourceManager(typeof(Form1));
this.label1=newSystem.Windows.Forms.Label();
this.txtServerPath=newSystem.Windows.Forms.TextBox();
this.label2=newSystem.Windows.Forms.Label();
this.button1=newSystem.Windows.Forms.Button();
this.txtFileName=newSystem.Windows.Forms.TextBox();
this.label3=newSystem.Windows.Forms.Label();
this.button2=newSystem.Windows.Forms.Button();
this.linkLabel1=newSystem.Windows.Forms.LinkLabel();
this.SuspendLayout();
//
//label1
//
this.label1.ForeColor=System.Drawing.Color.Red;
this.label1.Location=newSystem.Drawing.Point(8,96);
this.label1.Name="label1";
this.label1.Size=newSystem.Drawing.Size(448,16);
this.label1.TabIndex=0;
this.label1.TextAlign=System.Drawing.ContentAlignment.MiddleCenter;
//
//txtServerPath
//
this.txtServerPath.Location=newSystem.Drawing.Point(128,8);
this.txtServerPath.Name="txtServerPath";
this.txtServerPath.Size=newSystem.Drawing.Size(320,21);
this.txtServerPath.TabIndex=1;
this.txtServerPath.Text="http://mengxianhui/aspxWeb/Images/";;
//
//label2
//
this.label2.AutoSize=true;
this.label2.Font=newSystem.Drawing.Font("宋体",9F,System.Drawing.FontStyle.Bold,
System.Drawing.GraphicsUnit.Point,((System.Byte)(134)));
this.label2.ForeColor=System.Drawing.Color.Navy;
this.label2.Location=newSystem.Drawing.Point(8,12);
this.label2.Name="label2";
this.label2.Size=newSystem.Drawing.Size(116,17);
this.label2.TabIndex=2;
this.label2.Text="请输出服务器地点:";
this.label2.TextAlign=System.Drawing.ContentAlignment.MiddleCenter;
//
//button1
//
this.button1.Location=newSystem.Drawing.Point(192,64);
this.button1.Name="button1";
this.button1.TabIndex=3;
this.button1.Text="上载文件";
this.button1.Click+=newSystem.EventHandler(this.button1_Click);
this.button1.MouseDown+=newSystem.Windows.Forms.MouseEventHandler(this.button1_MouseDown);
//
//txtFileName
//
this.txtFileName.Location=newSystem.Drawing.Point(128,32);
this.txtFileName.Name="txtFileName";
this.txtFileName.Size=newSystem.Drawing.Size(232,21);
this.txtFileName.TabIndex=4;
this.txtFileName.Text="";
//
//label3
//
this.label3.AutoSize=true;
this.label3.Font=newSystem.Drawing.Font("宋体",9F,System.Drawing.FontStyle.Bold,
System.Drawing.GraphicsUnit.Point,((System.Byte)(134)));
this.label3.ForeColor=System.Drawing.Color.DarkBlue;
this.label3.Location=newSystem.Drawing.Point(8,38);
this.label3.Name="label3";
this.label3.Size=newSystem.Drawing.Size(116,17);
this.label3.TabIndex=5;
this.label3.Text="请输出上传文件名:";
this.label3.TextAlign=System.Drawing.ContentAlignment.MiddleCenter;
//
//button2
//
this.button2.Location=newSystem.Drawing.Point(370,32);
this.button2.Name="button2";
this.button2.Size=newSystem.Drawing.Size(80,23);
this.button2.TabIndex=6;
this.button2.Text="扫瞄文件…";
this.button2.Click+=newSystem.EventHandler(this.button2_Click);
//
//lin</p>优点:简单易学、开发速度快、有很多年“历史”,能找到非常多别人做好的程序来用、配合activeX功能强大,很多php做不到的asp+activeX能做到,例如银行安全控件 |
|