摘要: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ... 阅读全文
posted @ 2013-08-20 22:25 风痕天下 阅读(1562) 评论(0) 推荐(0)
摘要: 新建一个控制器: public class AdminController : Controller { public ActionResult UpdateAdmin() { return PartialView("UpdateAdmin", new YingPingPuirtureMVC4.Mo 阅读全文
posted @ 2013-08-02 00:13 风痕天下 阅读(15079) 评论(0) 推荐(2)
摘要: Regex构造函数Regex(string pattern)Regex(string pattern,RegexOptions options)参数说明pattern:要匹配的正则表达式模式options:指定是否要编译,忽略大小写等等Regex.Replace方法-C#Regex.Replace(string input,string replacement)Regex.Replace(string input,string replacement,int count)Regex.Replace(string input,string replacement,int count,int st 阅读全文
posted @ 2013-01-31 23:09 风痕天下 阅读(455) 评论(0) 推荐(0)
摘要: C# Socket编程笔记1.socket Windows中的很多东西都是从Unix领域借鉴过来的,Socket也是一样。在Unix中,socket代表了一种文件描述符(在Unix中一切都是以文件为单位),而这里这个描述符则是用于描述网络访问的。什么意思呢?就是程序员可以通过socket来发送和接收网络上的数据。你也可以理解成是一个API。有了它,你就不用直接去操作网卡了,而是通过这个接口,这样就省了很多复杂的操作。 在C#中,MS为我们提供了 System.Net.Sockets 命名空间,里面包含了Socket类。 2.有了socket,那就可以用它来访问网络了 不过你不要高兴得太早,要想 阅读全文
posted @ 2012-09-26 15:24 风痕天下 阅读(356) 评论(0) 推荐(0)
摘要: (1)代码生成的颜色:前台:<TextBox x:Name="textbox1" VerticalContentAlignment="Center" HorizontalContentAlignment="Stretch" Margin="0 10 0 10 ">啊实打实</TextBox><TextBox x:Name="textbox2" VerticalContentAlignment="Center" HorizontalContentA 阅读全文
posted @ 2012-03-28 13:42 风痕天下 阅读(4983) 评论(0) 推荐(0)
摘要: 在body区:<table align="center" ><tr><td colspan="4"> <input id="Text1" type="text" value="" style=" text-align:right;" /></td></tr><tr><td> <input id="Button1" type="button&quo 阅读全文
posted @ 2012-03-27 23:04 风痕天下 阅读(297) 评论(0) 推荐(0)
摘要: 在silverlight中有三种样式:一个是在本控件设置样式一个是在UserControl.Resources设置样式,最后一个是在App.xaml中设置样式1.在本控件设置样式:代码:<Canvas Height="100" Background="Yellow" HorizontalAlignment="Left" Margin="66,93,0,0" Name="canvas1" VerticalAlignment="Top" Width="60&quo 阅读全文
posted @ 2012-03-27 22:52 风痕天下 阅读(972) 评论(0) 推荐(0)
摘要: 打开VS,新建空网站,添加新项命名为Receive.aspx<br>在后台的内容为:protected void Page_Load(object sender, EventArgs e) { PerformanceCounter myMeroy = new PerformanceCounter(); myMeroy.CategoryName = "Memory"; myMeroy.CounterName = "Available KBytes"; string txtRelust = "-->可用的内存:" + m 阅读全文
posted @ 2012-03-27 22:35 风痕天下 阅读(197) 评论(0) 推荐(0)
摘要: 在这里主要是介绍silverlight的三种布局方式Grid,Canvas,StackPanel。(一)Grid:表格布局例子:<Grid x:Name="LayoutRoot" Background="White" ShowGridLines="True" > <Grid.RowDefinitions> <RowDefinition Height="39*" /> <RowDefinition Height="45*" /> <RowDef 阅读全文
posted @ 2012-03-27 22:29 风痕天下 阅读(298) 评论(0) 推荐(0)
摘要: 从学软件编程到现在一样两年了,回过头一看,才发觉自己就要找工作了,时间似水般流去,一去不复返。为了对自己的所学的留恋,所以就申请了个博客,写写自己的编程的点点滴滴,期望给一些初学者一些帮助。 阅读全文
posted @ 2012-03-26 23:20 风痕天下 阅读(131) 评论(0) 推荐(0)