漫漫技术人生路

C#

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  C#小知识点汇集

1 2 3 4 5 ··· 7 下一页

摘要:C#: winform 不能修改app.config查了很多文章都介绍用下面的方法修改app.config中的值:Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);config.AppSettings.Settings["DB_UID"].Value = "de... 阅读全文
posted @ 2010-05-31 10:54 javaca88 阅读(1451) 评论(1) 推荐(0) 编辑

摘要:ASP.NET中解决导出到Excel乱码的方法 最近在导出DataGrid/GridView数据行到Excel的时候,如果文件名为中文的话,就会出现乱码。晕了一个下午,终于找到解决方法,现记载如下:1Response.Clear();2 Response.Buffer = true;3 Response.Charset = "gb2312";4 Response.ContentEncoding ... 阅读全文
posted @ 2009-12-16 18:23 javaca88 编辑

摘要:<asp:GridView ID="GV_jh" runat="server" AutoGenerateColumns="False" SkinID="Skin_GVNoticePlan" AllowPaging="True" OnDataBound="GV_jh_DataBound" OnPageIndexChanging="GV_jh_PageIndexChanging" OnRowCo... 阅读全文
posted @ 2009-12-11 14:09 javaca88 编辑

摘要:/// <summary> /// /// </summary> /// <param name="groupid"></param> /// <param name="width"></param> /// <param name="height"></param> private void Sho... 阅读全文
posted @ 2009-09-11 18:21 javaca88 阅读(320) 评论(0) 推荐(0) 编辑

摘要:http://msdn.microsoft.com/en-us/library/fs2xkftw.aspxusing System;using System.IO;class Program{ static void Main() { try { // Initialize a Stream resource to pass // to the DisposableResource class.... 阅读全文
posted @ 2009-09-11 18:20 javaca88 阅读(212) 评论(0) 推荐(0) 编辑

摘要:Environment ChecklistRequired List: Daemon ToolVisual Studio 2008VSS(Visual SourceSafe)Sql Server 2005 clientWCSFInstall Step:1.Install Daemon Tool Run http://www.cnblogs.com/javaca88/admin/file://bs... 阅读全文
posted @ 2009-09-11 11:02 javaca88 编辑

摘要:http://www.freerice.com/index.phpremotinghttp://baike.baidu.com/view/742675.htmhttp://www.cnblogs.com/rainnight/archive/2009/04/18/1438749.htmlWindowsVideohttp://windowsclient.net/learn/videos_wpf.asp... 阅读全文
posted @ 2009-08-31 09:15 javaca88 阅读(159) 评论(0) 推荐(0) 编辑

摘要:/* sql xml 入门: --by jinjazz --http://blog.csdn.net/jinjazz 1、xml: 能认识元素、属性和值 2、xpath: 寻址语言,类似windows目录的查找(没用过dir命令的话就去面壁) 语法格式,这些语法可以组合为条件: "."表示自己,".."表示父亲,"/"表示儿子,"//"表示后代, "name"表示按名字查找,"@name"... 阅读全文
posted @ 2009-08-24 16:21 javaca88 阅读(185) 评论(0) 推荐(0) 编辑

摘要:<%@ Reference Control = "Header.ascx" %>Next we need to do some coding to load the user control on the page. First place a placeholder control so that you can load the user control on that place... 阅读全文
posted @ 2009-08-21 17:56 javaca88 编辑

摘要:4.2.9 以编程方式操作页面输出缓存如果希望对ASP.NET Framework缓存页面的过程做更多控制,则可以直接操作HttpCachePolicy类。该类由Response.Cache属性暴露。HttpCachePolicy类包括的属性和方法可用来以编程方式执行<%@ OutputCache %>指令可以设置的所有任务。我们也可以使用该类的方法来操作发送到代理服务器和浏览器的HT... 阅读全文
posted @ 2009-08-20 17:54 javaca88 阅读(233) 评论(0) 推荐(0) 编辑

摘要:RowStatehttp://hi.baidu.com/my666666/blog/item/0f95ba8b7a43c3dafd1f10b2.htmlThe SqlDataAdapter object serves as a bridge between an ADO.NET DataSet object and a SQL Server database. SqlDataAdapter is ... 阅读全文
posted @ 2009-08-20 17:53 javaca88 阅读(240) 评论(0) 推荐(0) 编辑

摘要:WCF配置文件注释 1: <?xml version="1.0" encoding="utf-8" ?> 2: <configuration> 3:    <system.ServiceModel> 4:      <!-- services 元素包含应用中驻留的所有service的配置要求 --> 5:      <services> ... 阅读全文
posted @ 2009-08-06 17:48 javaca88 编辑

摘要:<Window x:Class="WPFDemo.CommentList" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c="clr-namespace:WPFDemo" xmlns:... 阅读全文
posted @ 2009-08-04 18:32 javaca88 编辑

摘要:<Window x:Class="WPFDemo.CommentList" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c="clr-namespace:WPFDemo" xmlns:... 阅读全文
posted @ 2009-08-03 18:13 javaca88 编辑

摘要:http://weblogs.asp.net/marianor/archive/2008/02/04/multiselect-listview-with-checkboxes-in-wpf.aspxMultiselect ListView with checkboxes in WPF http://www.codeproject.com/KB/WPF/WPFDataGridExamples.asp... 阅读全文
posted @ 2009-08-03 18:11 javaca88 阅读(494) 评论(0) 推荐(0) 编辑

摘要:WPF:Border 控件 Border 是一个装饰的控件,此控件绘制一个边框、一个背景,在 Border 中只能有一个子控件,但它的子控件是可以包含多个子控件的Border 的几个生要的属性:Background:此属性设置 Border 用来绘制背景的 Brush 对象BorderBrush:此属性设置 Border 用来绘制边框的 Brush 对象BorderThickness:此属性设置 ... 阅读全文
posted @ 2009-07-31 18:04 javaca88 编辑

摘要:<Window x:Class="WPFDemo.RiskList" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c="clr-namespace:WPFDemo" xmlns:sys... 阅读全文
posted @ 2009-07-31 17:57 javaca88 编辑

摘要:<Window x:Class="Listview.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="768" Width="1024"... 阅读全文
posted @ 2009-07-31 17:54 javaca88 编辑

摘要://delegate // 步骤1,声明delegate对象public delegate void mydelegate(string name);//定义欲传递的方法,他和mydelegate具备相同的参数和返回值类型public static void mydelegatefunc(string name){}//使用delegateprivate void UseDelegate(){//... 阅读全文
posted @ 2009-07-31 17:52 javaca88 编辑

摘要:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We... 阅读全文
posted @ 2009-07-27 09:26 javaca88 编辑

1 2 3 4 5 ··· 7 下一页