摘要: // 链接数据库字符串 SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=T_Prodcut;Integrated Security=True"); public List SelectALL() { //打开数据库 conn.Open(); //数据库字符串 string Str = "... 阅读全文
posted @ 2016-07-19 10:02 三木的忧伤 阅读(227) 评论(0) 推荐(0)
摘要: 数组循环切换 例如: "1,2,3,4" => "2,3,4,1" 阅读全文
posted @ 2016-07-12 20:15 三木的忧伤 阅读(120) 评论(0) 推荐(0)
摘要: placeholder="请输入您的用户名!" 文本框虚拟值 阅读全文
posted @ 2016-07-07 08:33 三木的忧伤 阅读(106) 评论(0) 推荐(0)
摘要: 参数解释: <SCRIPT LANGUAGE="javascript"> js脚本开始; window.open 弹出新窗口的命令; 'page.html' 弹出窗口的文件名; 'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替; height=100 窗口高度; widt 阅读全文
posted @ 2016-06-29 15:14 三木的忧伤 阅读(165) 评论(0) 推荐(0)
摘要: 方法一: Home/Index.aspx中的代码 <% using (Html.BeginForm("up","Home",FormMethod.Post,new{enctype="multipart/form-data"})) {%> <input type="file" name="upfile 阅读全文
posted @ 2016-06-28 20:34 三木的忧伤 阅读(145) 评论(0) 推荐(0)
摘要: @*target="_blank"*@ 跳转到新的页面 阅读全文
posted @ 2016-06-27 08:21 三木的忧伤 阅读(147) 评论(0) 推荐(0)
摘要: 初学文件上传 View界面: Controllers控制器: 阅读全文
posted @ 2016-06-24 10:21 三木的忧伤 阅读(161) 评论(0) 推荐(0)