選取並讀取一個 SQL 表格, 以程式讀取並列出其 Schema, 經過分析後, 自動產生 Select、Insert、Update 與 Delete 等四個 Stored Procedure, 並產生完整的 ADO.NET 程式碼 (VB), 程式中已自動填入所有需要的 Parameters 及 SQL 型別。
如何透過 Visual Studio 對任意網站的 JavaScript 除錯
移除ASPNET的帳號 執行 aspnet_regiis -i 執行 iisreset
1.請自行建立 300×60 大小的 bg.jpg 空白圖檔。 2.下載 Code 39 Barcode 字型 (IDAutomationHC39M) ,並安裝到系統字型資料夾。 3.使用方法 barcode.aspx?code=xxxxxxx
解決Unable to start debugging on the web server.Debugging failes because integrated Windows authentication is not enabled. 的問題~~~~~
Exporting data from a datatable to Excel or CSV is one of the most common functionality required in ASP.NET pages. Users can download the data from the datagrid into an Excel spreadsheet or CSV file for offline verification and/or computation. This article includes the source code for such functionality.
簡單function 介紹如何用CSharp 去讀取Excel 檔案
一個簡單的可以把網路表單EXPORT 成Excel 的ASP .NET 程式
無論您是一位 SQL 的新手,或是一位只是需要對 SQL 複習一下的資料倉儲業界老將,您就來對地方了。這個 SQL 教材網站列出常用的 SQL 指令。這個網站包含以下幾個部分: ♦ SQL 指令: SQL 如何被用來儲存、讀取、以及處理資料庫之中的資料。 ♦ 進階 SQL: 介紹 SQL 進階概念,以及如何用 SQL 來執行一些較複雜的運算。 ♦ SQL 語法: 這一頁列出所有在這個教材中被提到的 SQL 語法。 對於每一個指令,我們將會先列出及解釋這個指令的語法,然後用一個例子來讓讀者瞭解這個指令是如何被運用的。當您讀完了這個網站的所有教材後,您將對 SQL 的語法會有一個大致上的瞭解。另外,您將能夠正確地運用 SQL 來由資料庫中獲取資訊。筆者本身的經驗是,雖然要對 SQL 有很透徹的瞭解並不是一朝一夕可以完成的,可是要對 SQL 有個基本的瞭解並不難。希望在看完這個網站後,您也會有同樣的想法。 請您現在將這個網站 bookmark 起來,以便以後隨時可以回來查詢。也請您 由這裡 來開始學習 SQL! 請注意: 若您有在教有關 SQL 或是資料庫之類的課程的話,歡迎您連接此網站,做為輔助之用。 ♦ 表格處理: SQL 如何被用來處理資料庫中的表格。
大陸網友的blog 裡面有很多程式方面的技術,如..asp.net、ajax.net、sql...等等。
ASP.NET 2.0在Code-Behind的概念上悄悄地做了大改變! 首先,ASP.NET 2.0用的是Code-Beside,而不是Code-Behind,也就是.cs直接放在網站上,使用者瀏覽頁面時才動態Complie。這樣的好處是,當你要改.cs的程式時,不須要重新Build DLL出來,只要直接改.cs的內容即可。(又回到ASP時代的方便性了,真是十年河東、十年河西...) 當然,大家馬上想到,那程式碼豈不被看光光?? 這就是方便的代價,如果你要保護.cs的程式邏輯不外露,則ASP.NET 2.0提出了一種Precompiled Web Site的概念(完整的Precompilation Model說明比較可以看這裡),就比較接近原來Code-Behind的精神。.cs會被事先Compile成DLL,這樣就只要部署aspx與dll到正式台上就可以了。
如果你有这样的一个WebService 方法: [WebMethod] public void myTest(System.Collections.Specialized.NameValueCollection col) { ..... } 那你在请求这个WebService 方法的时候,会收到如下异常: To be XML serializable, types which inherit from ICollection must have an implementation of Add(System.String) at all levels of their inheritance hierarchy. System.Collections.Specialized.NameValueCollection does not implement Add(System.String).
UpdatePanel has always given us some sort of error handling during partial postbacks (or, if you want to use the new official term, async postbacks). In previous CTPs, you could handle a page error event and perform your own error handling (which normally consisted in some form of logging). The problem previous versions had was related with the way that the error message was shown in the client side (by default, it showed an alert message box, though you could define a limited error template). The current release give us a lot more options as I'll show you in this post.
我们在编写基于 ASP.NET 的应用程序时,如果代码执行出错或检测到异常,一般会提示用户“返回”或“回退”,或者在多步操作、列表/详细的查看界面中,也会给用户提供回退到上一页面的链接,对于这种情况,大家很快就会想到的简单做法就是利用 Javascript 来实现,即 history.go(-1) ,但是由于 ASP.NET 页面的 PostBack 机制,所以 history.go(-1) 可能还是当前页面,而不能真正回退到上一页面。
技巧和诀窍:简单的ASP.NET 2.0 SQL提供器的源码和文档发布了 【原文地址】Tip/Trick: Source/Documentation for Simple ASP.NET 2.0 SQL Providers Published 【原文发表日期】 Friday, October 13, 2006 9:36 PM ASP.NET 2.0中一个最受欢迎的特性是在内置的ASP.NET应用服务API中引进了“提供器模型(provider model)”。提供器模型确保象成员(Membership),角色(Roles),用户信息(Profiles),Health Monitoring,会话状态(Session State),和站点导航(Site Navigation)这样的服务的存储和实现是可以扩展的,允许开发人员很轻松地接入另外的实现,如果他们需要的话。
这一篇记录一些学习 Atlas (不包含 Control Toolkit 的核心框架部分)碰到的问题点:
This step-by-step article describes how to use ASP.NET to build a simple XML Web service that retrieves data from the Microsoft Access sample Northwind database and returns the data as XML to a client when the client calls a method of the service. On the client side, the data is presented with the Office PivotTable and Chart components. This article also demonstrates how to build a client for the XML Web service by using either Visual Basic .NET or Visual Basic 6.0.
anyway, what eventually worked for me was to go back into my VS 2005 dev machine and create a web set up project. go into the project properties and click the prerequisites button, select CR for .Net 2.0 and then just build the empty setup project. if you look in your output folder, there is an installation file called CRRedist2005_x86.msi. Just whack this onto the server and your crystal reports should run fine, i didn't need to reboot or restart IIS. Note there is no also need to copy any of the CR dlls to your web site bin folder.