Archive for the ‘.NET’ Category

Mobile Web Forms in Visual Studio 2008 and 2005

After you install SP1 for Visual Studio 2005 or you are using Visual Studio 2008, you will see that you can not find Mobile Web Forms which you can see in Visual Studio 2003. The reason is from Microsoft development team. They made the Mobile Web Form Templates a separate package and you need to [...]

Comments (4)

A video of Classic ASP to ASP.NET from Microsoft

Here a video of Classic ASP to ASP.NET from Microsoft: Click Here Also: Best Practices and Techniques for Migrating Classic ASP Applications to ASP.NET 2.0 Here is ASP to ASP.NET 1.x Migration Assistant

Comments (1)

How to Create a Custom Membership Provider from Microsoft

Here is a video tutorial from Microsoft about “How Do I: Create a Custome Membership Provider” , but you need to install SilverLight witch is also downloaded from Microsoft. SilverLight is a similar production as Flash, so you only need to download it and quick install for your browser.

Leave a Comment

How to Convert Generic List To DataTable using C#

I have a task to need to get a DataTable, however, all existing objects are List, I need convert some of those lists to DataTables. Before I wrote my own code to do it. I searched internet and got 2 perfect articles which I need. 1: From DotNet Friends, By patriwala, Convert Generic List In [...]

Comments (1)

Sql Server: Must declare the scalar variable

When one of asp.net project was in develop stage, we always got the exception ‘Must declare the scalar variable  “@variableName” ‘ I checked and searched from internet, about this issue, there have been many different reasons and solutons. But seems all of them are not fit our case. I had to check by myself. I [...]

Leave a Comment

ASP.NET: Could not find a part of path

We have a asp.net 2.0 / 3.5 project, it worked on our development site, but when we put it to product site, all functions about file read such as used Server.MapPath() method could not work and got the error like the following: Could not find a part of path “C:\ABC\Path2\Path3\FileTemplates\” The solution is just set [...]

Leave a Comment

Optimizing C#

I got part of content from vcskicks.com  7 Ways To Optimize C# Code 1. Use StringBuilder or String ?   StringBuilder is faster mostly with big strings. This means if you have a loop that will add to a single string for many iterations then a StringBuilder class is definitely much faster than a string [...]

Leave a Comment

Generate Word doc / Reporter using XML and XSLT

Good articles: 1: Generating Word Reports / Documents; 2: XML/XSLT Word Report Generator

Leave a Comment