1:如果注册完页面有中文字符需要在提交后的页面显示注册信息,切记先把接受到的request的编码方式改为中文:request.setCharacterEncoding("utf-8");不然会出现乱码2:提交表单的时候,错误的把事件绑定到了submit按钮上了,应该绑定到表单标签,获取表单信息!因为...
分类:
Web程序 时间:
2014-07-29 12:10:16
阅读次数:
325
需为2003版本private void button1_Click(object sender, EventArgs e) { string resultFile = ""; OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFi...
分类:
其他好文 时间:
2014-07-28 23:39:04
阅读次数:
249
$(function(){$(document).bind("click",function(e){if($(e.target).closest("#txt").length>0){$("#tip").show();}else{$("#tip").hide();}}); });closest会首先....
分类:
Web程序 时间:
2014-07-28 23:35:54
阅读次数:
348
一、下一个选项卡 //下一个选项卡
$(‘#J_next‘).click(function(e)?{
e.preventDefault();
e.stopPropagation();
var?ul?=?$(‘#B_history‘),
current?=?ul.find(‘.current‘),
li?=?current.next(...
分类:
编程语言 时间:
2014-07-28 17:03:55
阅读次数:
302
B/S不像C/S那样一个MessageBox就可以弹出提示框,不过可以通过js的“Alert”来弹出消息,或者通过一些变种的js方法。下面我给大家介绍几种,希望大家喜欢。四种弹出框代码:protected void Message_Click(object sender, EventArgs e) ...
分类:
Web程序 时间:
2014-07-28 15:39:13
阅读次数:
245
TODO:待编辑将HTML5 / JavaScript查看器控件添加到HTML文档添加一些事件处理程序var buttonPanZoom = document.getElementById('buttonPanZoom');buttonPanZoom.addEventListener('click'...
分类:
编程语言 时间:
2014-07-28 15:37:03
阅读次数:
180
private void button1_Click(object sender, EventArgs e) { Frm f = new Frm(); f.StartPosition = FormStartPosition.Manual;...
分类:
移动开发 时间:
2014-07-28 15:28:33
阅读次数:
190
protected void Button2_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(@"Data Source=.SQLEXPRESS;database=aaaa;uid=sa;pwd=jc...
分类:
Web程序 时间:
2014-07-28 14:46:23
阅读次数:
291
public partial class 组合框绑定数据 : Form { public 组合框绑定数据() { InitializeComponent(); } private void btnBind_Click(object sender, EventArgs e) { string sql ...
分类:
其他好文 时间:
2014-07-27 22:52:09
阅读次数:
271
public partial class MySchool : Form { public MySchool() { InitializeComponent(); } private void tsmiAddUser_Click(object sender, EventArgs e) { AddSt...