Asp.net 标准控件 (一)
Label——height:高度
width:宽度
backcolor:背景色
forecolor:前景色
bordercolor:边框色
borderstyle:边框样式
bordersize:边框大小
font:字体
text:label上的文字
visible:是否可见
enable:是否可用
Literal——和label一样,但不能添加样式,一般用于原样显示的时候
TextBox——textmode:文本模式 SingleLine 单行,MultiLine 多行,Password 密码域,
row 高度,
column 宽度
MaxLength:最多输入的字符长度
Readonly:只读
Button——onClientClick:客户端点击事件,调用客户端JS,onclick:调用服务器端事件
客户端Button——onclick:调用客户端JS,onserverClick:调用服务器端事件
LinkButton——该按钮与 Button按钮的属性一样,只是显示不同
ImageButton——图片按钮 与 Button按钮的属性一
相关文档:
后台代码:
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.HtmlControls;
using System.Dat ......
ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a Web application server. For example, an "order" application might be published in the "/order" virt ......
ASP.NET常见安全问题
一、SQL语句漏洞
许多程序员在用sql语句进行用户密码验证时是通过一个类似这样的语句来实现的:
Sql="Select * from 用户表 where 姓名 = '" + name + "' and 密码 = '" + password + "'"
通过分析可以发现,上述语句存在着致命的漏洞。当我们在用户名称中输入下面的字符串时:tes ......
C#:成员变量首字母大写而且前面加下划线
1.连接对象静态与非静态问题
2.数据访问类为什么不能派生与DBConnection
3.Catch的作用,以及为什么可以在这里省掉
4.在数据访问方法中,为什么不直接实例化 List<NationData> list;
  ......
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<!--
<add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0 ......