MVC的部分视图确实与asp.net的用户控件有几分相似,实际应用起来的方式,它又是那样不尽相同。上次练习了《MVC母版页_Layout.cshtml》http://www.cnblogs.com/insus/p/3380419.html学会了网页格局的布局。而这次练习是把是网页有相同的部分做成一个...
分类:
Web程序 时间:
2014-08-06 18:19:20
阅读次数:
317
实现自动登录某网站,并且登录完成后跳转到指定的页面。然后进行表单的自动填充表单提交 。类型于小型的发帖机 哈哈 (看官在看下面代码的时候,把记得把下面的链接改下) public partial class Form1 : Form { public Form1() ...
分类:
Web程序 时间:
2014-08-06 18:13:11
阅读次数:
292
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace session验证码
{
public partial class WebForm1 : S...
分类:
其他好文 时间:
2014-08-06 02:01:50
阅读次数:
292
namespace WebInfo{ public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { HSSFWork...
分类:
其他好文 时间:
2014-08-05 22:01:40
阅读次数:
234
file是以_开头命名的文件,比如_cart.html.erb这样就可以用render来调用了还可以传参数比如rails 2.0p87传一个集合render(:partial => "cart_item", :collection => @cart.items)这样局部模板就得到了一个变量如cart...
分类:
其他好文 时间:
2014-08-05 03:03:38
阅读次数:
235
格式格式的统一使用可以使代码清晰、美观、方便阅读。为了不影响编码效率,在此只作如下规定:长度一个文件最好不要超过500行(除IDE自动生成的类)。一个文件必须只有一个命名空间,严禁将多个命名空间放在一个文件里。一个文件最好只有一个类。如果超过500行,考虑拆分类或者使用Partial 类将类按照功能...
分类:
其他好文 时间:
2014-08-04 17:17:17
阅读次数:
207
public partial class DelegateControlUpdateOne : Window { //创建NotifyIcon对象 NotifyIcon notifyIcon = new NotifyIcon(); Icon ...
分类:
其他好文 时间:
2014-08-04 13:59:57
阅读次数:
171
在c#中要扩展一个现有类很容易,比如这样:
?
1
2
3
4
5
6
7
public static class Utils
{
public static void PrintToConsole(this string strSrc)
{
Con...
分类:
其他好文 时间:
2014-08-01 13:47:51
阅读次数:
296
排序(sort):所有sort算法介绍:使用的迭代器(iterator)都需是随机迭代器(RadomAccessIterator)1. 所有函数名功能描述sort对给定区间所有元素进行排序stable_sort对给定区间所有元素进行稳定排序partial_sort对给定区间所有元素部分排序parti...
分类:
其他好文 时间:
2014-08-01 13:30:31
阅读次数:
303
标准c++库中提供六种排序方法:qsort(), sort(),stable_sort(), partial_sort(), list::sort(), set/multisetqsort()比sort()慢并且不能排序构造函数、虚函数,一般不推荐使用。写一个比较函数传递给qsort()很麻烦;后五...
分类:
其他好文 时间:
2014-08-01 12:58:11
阅读次数:
278