ASP.NET
文章平均质量分 74
jetlei000
这个作者很懒,什么都没留下…
展开
-
gridview18种用法
快速预览:GridView无代码分页排序GridView选中,编辑,取消,删除GridView正反双向排序GridView和下拉菜单DropDownList结合GridView和CheckBox结合鼠标移到GridView某一行时改变该行的背景色方法一鼠标移到GridView某一行时改变该行的背景色方法二GridView实现删除时弹出确认对话框GridView实现自动编号GridView实现自定义转载 2009-09-03 23:54:00 · 404 阅读 · 0 评论 -
ASP.NET常用语句1--20条
1.//弹出对话框.点击转向指定页面 Response.Write(" window.alert(该会员没有提交申请,请重新提交!) "); Response.Write(" window.location =http://www.51aspx.com/bizpulic/upmeb.aspx "); 2.//弹出对话框 Response.Write("原创 2009-09-04 22:13:00 · 340 阅读 · 0 评论 -
request的用法1
Response.Redirect("default.aspx");跳转页面 method的两种方法post和get的区别post是将form中的值作为一个集合进行提交,适合提交数据较多的form。get是将form的值通过url进行传递,在URL显示出form的控件名,内容的信息,因为URL的长度是有限的,所以控件太多时将无法传递完整(http://localhost:1029原创 2009-09-06 22:13:00 · 461 阅读 · 0 评论 -
Gridview用法之数据库绑定
protected void Button1_Click(object sender, EventArgs e) { if (TextBox1.Text == "" && TextBox2.Text == "") { Response.Write("alert(请输入查询条件)"); }原创 2009-09-03 22:21:00 · 441 阅读 · 0 评论 -
HTML控件之图片上传
1.file控件2.在项目文件中建立一个文件夹up //文件上传 //获取上传文件的全路径(D:/图片/桌面/windows701.bmp) string fullFileName=this.File1.PostedFile.FileName; //截取全路径使得路径只剩下文件名(windows701.bmp) string file原创 2009-09-09 21:29:00 · 1913 阅读 · 0 评论 -
DropDownList实现连动
/ protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { //绑定省 SqlConnection con = DB.createConnection(); con.Op原创 2009-09-09 14:14:00 · 424 阅读 · 2 评论 -
验证控件
RequiredFieldValidator验证不能为空Display:static 无论显示不显示占位。Dynamic,不显示时不占位errorMessage。contrlToValidate,用来关联控件CompareValidator比较验证控件固定值比较:Type类型,operator比较运算符,contrlToValidate,valueToCompare比较的固定值原创 2009-09-10 16:27:00 · 421 阅读 · 0 评论 -
广告控件AdRotator1和日历控件calendar
使用AdRotator1首先要建立一个xml页面。定义AdRotator1的属性AdvertisementFile。在XML中建立如下数据。 Impressions是表示广告显示的概率。概率高的显示的次数多。AlternateTe是表示悬停在广告上的文字。Keyword是为广告分组,对应 AdRotator1的属性KeywordFilter。Target属性是表示打开原创 2009-09-09 14:51:00 · 607 阅读 · 0 评论 -
ADO.net 的增删改应用
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { databind(); } } private void databind() { SqlConnection con = DB.cr原创 2009-09-27 23:11:00 · 344 阅读 · 0 评论