C#高级编程
發表於|更新於|开发
|總字數:105|閱讀時間:1分鐘|瀏覽量:
各位想要学习C#的朋友,可以先看C#高级编程,当时我朋友就给我推荐,说别的先都别看,就看这个教程,很不错的。好吧,我把下载地址贴出,想下载的朋友就抓紧时间。
http://www.live-share.com/files/30157/C_____.pdf.html
打开后,等待10秒,然后出现下载地址。链接2个月内有效。
文章作者: zhou
版權聲明: 本部落格所有文章除特別聲明外,均採用CC BY-NC-SA 4.0 授權協議。轉載請註明來源 米斯特周!
相關推薦
2006-10-14
如何从web.config中取得ConnectionString
通过使用ConfigurationManager,你可以从Web.Config中取得ConnectionString。 Web.Config connectionStrings 配置部分: <connectionStrings> <add name="MyConnectionString" connectionString="Data Source=myDBServer;database=myDB;Integrated Security=True;" providerName="System.Data.SqlClient"/> </connectionStrings> aspx 文件: <asp:SqlDataSource ID="DS" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %> 代码中: C#代码: s...
2006-05-30
how to get Text property of Label in DataList?
Normally when you want to do that you are doing it from within an event raised by the DataList. I will assume that is where you are doing this from. Here is a line of code that will get the Text property of the current Item: CType(e.Item.FindControl(“lblMyLabel”), Label).Text If you needed to access this data from a method/function other than one of the events raised by the DataList, you will need to know the index of the item the desired Label is in. In this case, use the following: CTy...
2008-01-18
How to make Apache run ASP.NET / ASP.NET 2.0 under windows
Don’t ask me why… but i’ve been asked to make Apache run ASP.NET. *IT Worked ! _ _Even worked with ASP.NET 2.0 Site !* Following are the instruction to make Asp.Net work under apache: Install Apache 2.0.54 Install Mod_AspDotNet Add at the end of C:\Program Files\Apache Group\Apache2\conf\httpd.conf the following lines # asp.net LoadModule aspdotnet_module "modules/mod_aspdotnet.so" AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb ...
2006-05-27
关于数据绑定的问题
最近写日志的时间太少了,真的对不起自己了。主要是忙着单位上的事情,还有就是学习.NET。下面就把我最近遇到的一些问题,写下来。 一。GridView的数据绑定问题。 在ASP.NET页面,如何绑定数据字段是一个可大可小的问题。为什么这么说那,你可以直接添加datasource控件,来绑定数据,这是最简单的。其次就是在代码页面添加代码后,绑定到控件上。 当我在编Weblog的程序时,我刚开始就是使用datasource控件完成这一切的,但是我觉得有些时候是datasource无法完成的,比如我写了一个类专门用来处理weblog的一些操作。比如添加日志,显示日志等等。这个时候,你就不能很轻松的绑定到数据控件上。 我在这里就是写写我的方法,如果其他人有比我更好的方法,请告诉我啊!谢谢。 首先,我们需要在内容页面添加GridView控件,增加一个模板列,然后将AutoGenerateColums设为False,这样就不会自动生成列字段了。然后我们编辑ItemTemplate,按照你想的样式进行布局,排列。然后,切换到源码视图,比如在itemtemplate模板里面增加了一个HyperLi...
2006-06-27
学习OleDB的一些纪录
上周五把我自己写的一个简单的留言本给一个搞开发的朋友看,结果发现了2个严重的bug,一个是登录Bug,一个是Sql注入漏洞. 说实话,在进行写留言本的时候,我根本就不知道SQL注入漏洞是怎么样的,后来朋友给我讲了原理,做了示范,我发现要写出安全的代码真的需要注意很多问题。朋友给我的建议是: 第一条就是使用OleDBParameters,即参数,不要使用拼凑的SQL语句(动态SQL语句),而是使用参数,将变量给参数。 第二条就是控制用户输入,即任何时候不信任用户的输入,这个需要正则表达式来完成。 第三条,过滤HTML文本,即使用HttpUtility.HTMLEncode()或者Server.HTMLEcode() 下面的这些关于参数的代码,可能比较笨拙,但是很管用。因为oledb不像SQL Server那样,SQL SERVER使用命名参数,而OLEDB使用的是定位参数,即需要参数的地方使用‘?’。 下面是我写的一段代码: public static string filename = “~//App_Data//test.mdb”; public static ...
2006-03-07
.Net安装的相关说明
下载.net framework v1.1 sp1 安装该程序 注册IIS C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i 就是这样,最近被单位的服务器搞死了。:-( PS:等待另一个春天
評論
