摘要:
前台引用.aspx:YanZhengCode.csC#代码using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using ... 阅读全文
摘要:
文件上传控件:FileUpload - 控件,界面+方法+属性Button/LinkButton/ImageButtonFileUpload控件:1.SaveAs("要上传到服务器的绝对路径") 方法:上传文件。般需要使用Server.MapPath()进行相对路径与绝对路径之间的转换。2.File... 阅读全文
摘要:
验证:一、非空验证 RequiredFieldValidatorErrorMessage - 验证出错后的提示信息ControlToValidate - 要验证的控件的IDDisplay - 显示方式。Static-不显示也占空间。Dynamic-不显示不占空间InitialValue - 验证的初... 阅读全文
摘要:
Default.aspx 网页界面代号:姓名:性别:民族:生日:Defaule.aspx.cs C#界面using System;using System.Collections.Generic;using System.Linq;using System.We... 阅读全文