The famous Blazor demo application provides the case of clicking a button to increment a counter.
.NET Core 3.0 is Now .NET 5
2016, Microsoft announced “ASP.NET 5 is dead”, because the next release after .NET 4.6x was changed name to ASP.NET Core 1.0 and .NET Core 1.0.
Microsoft Blazor is in Preview status but no longer Experiment
2019 April 18, Microsoft Blazor Project leader Daniel Roth announces that Blazor is in official Preview status, it is no longer experiment.
How to override bootstrap styles
Let’s just give an example directly, about how to override bootstrap styles:
Using the Bing Map REST Service with .NET (simple notes)
I had a chance to learn a little bit Microsoft Bing Map Development Knowledge when a friend visited. Let me record something which we talked about (actually I learnt)
An ASP.NET MVC Website Using AngularJS and Running on Azure Cloud Platform
I created Amazon Filler Items Searching website in last month. I used multiple technologies such as ASP.NET MVC 5, C#, .NET Framework 4.6, Async Task, Ajax, jQuery, Bootstrap etc. All these technologies are popular in current .NET applications development. Actually, Amazon Filler Searching website is a real project because we load formal commercial Amazon web services. You can use it for your real purchasing on Amazon.
Smart Amazon Fillers Website Supports Both of Canada and USA Now
Since I met another weekend and got spare time, I did not wait long and finished urgent features on Smart Amazon Fillers website: Supporting multiple countries, and fixing pagination issue.
The Amazon Filler Items Searching Website is Upgraded
I released a simple ASP.NET MVC website using Amazon service 2 days ago. I might call it MyFiller project version 1. In the 1st version, I actually have not finished all features which I wanted. So in past 2 days, I modified something on it. Now I can call it version 2.
A Simple ASP.NET MVC Amazon Filler Items Searching Website
Update: I have released the version 2. After you read the content below, please also read the new version information. Thanks!
ASP.NET Related Names and Versions MVC, EF, Core…
Every 1 or 2 months if I did not touch the projects which were about ASP.NET related technologies, I might forget the names and versions. Let me record something here:
Azure Free Tier Web App Uses Free Database Solution
If use database in our Web application and publish to Azure platform free tier plan, the database has very limited size so we’d better use other way.
DO NOT Save Password in Web.Config or App.Config Directly
We saved passwords in project config file normally when we developed the project, However, it should be different when you deploy your project since most of time you should avoid your customer to touch some system passwords such as the database connection password, some of your API’s passwords such as Google+ API secret codes;
Experienced Software Developer Still Faces to Code or Basic Acknowledge Test When Interview
As a IT guy, a Software Developer, a Microsoft technologies developer (from C++ to .NET ) with over 24 years development history, I still have to face to some awkward (embarrassed ? ) situations such as job interviews. I left school so many years, but some interviews still needed me to give correct answers for some basic computer and programming acknowledges, such as: What is C# ? What features does OO have ? or I was asked for writing code to give a good performance program to implement a scanning or searching case based on stack or queue ….
The Open Source ASP.NET 5 Has New Name ASP.NET Core 1.0
Due to Scott Hanselman’s blog, Current ASP.NET was changed name to ASP.NET Core 1.0.
DNX for .NET Framework, .NET Core and Mono
We posted simple DNX concept before, the DNX is .NET Execution Environment. By now I have acknowledged DNX was for cross-platform ASP.NET Web applications, also for cross-platform console applications. But I do not know whether DNX support Windows Form applications or WPF applications because the DNX is still on very early stage, not released formal version yet.
Mono Supports ASP.NET 4.x Partially
I was some confused on Mono project official site information: I had question about what .NET web technologies which Mono supported. I got information that Mono currently ONLY supported ASP.NET 2 from official content here.
ASP.NET Cross-Platform Solutions
ASP.NET applications mainly focused on Windows platform with using IIS web server which installed on Windows platform; However, we want ASP.NET applications to support different platforms such as Windows, Linux and Mac OSX.
What is DNX ?
Why ASP.NET can be run on cross platforms ? It relies on DNX.
ASP.NET vNext vs ASP.NET 5
ASP.NET 5 is just ASP.NET vNext, ASP.NET formally called ASP.NET vNext.
Some Cool New Features of Visual Studio 2015
Microsoft released Visual Studio RTM version in July 20.
One solution for HTTP Error 500.21 - Internal Server Error
When I set IIS web server, I met multiple times about HTTP Error 500.21 – Internal Server Error.
How about no more Silverlight 6?
Silverlight 4 or 5 Application Supports Multiple Languages (Localize)
Silverlight can use resource to support multiple languages. We do not talk about the regular steps which how to use resource files.
Silverlight Application Compile Failed in Visual Studio 2013
We had an ASP.NET project using Silverlight and WCF which developed in Visual Studio 2010 and Visual Studio 2012, both versions worked without any problems.
Visual Studio 2013 does NOT support Silverlight 4-
Due to Microsoft document, Visual Studio 2013 only support Silverlight 5, it does not support all previous Silverlight versions including Silverlight 4.
Ajax.BeginForm not work in ASP.NET MVC 4 and 4.5 ?
In newer versions of ASP.NET MVC such as 4 or 4.5, when you used Ajax.BeginForm like
MVC Sections DON’t Work in Partial Views
Microsoft Patterns and Practices Developer Center
We often see the words “Microsoft patterns & practices” on Microsoft development websites.
SignalR 2.0 is Completely Built on OWIN
When we turned to SignalR 2.0, seems we can not leave away from OWIN (the Open Web Interface for .NET), because SignalR 2.0 is built completely on OWIN.
The Second Article was Chosen By Microsoft ASP.NET
Today I just read my emails and found that in the last day of 2013 My another blog article about new ASP.NET tech SignalR was accepted by Microsoft ASP.NET website and posted on the daily community article list.
Asynchronous Child Actions Still not Supported in .NET 4.5.1
We have updated our project to .NET 4.5.1, but we see asynchronous child actions still not supported: When we tried to use ChildAction, we got the following error message:
Links Display Busy Indicator in Web
1: jQuery and client side: http://stackoverflow.com/questions/4355268/how-to-display-a-busy-indicator-with-jquery
ASP.NET Web API Routing and Actions Notes
(Note: Here we only provide a learning note, so most sample code below are not ours, for example, most of them were copied from Microsoft ASP.NET website)
Microsoft Ajax Content Delivery Network (CDN)
Microsoft CDN: Microsoft Ajax Content Delivery Network.
DI: Dependency Injection.
ASP.NET MVC 4 Validation Notes
Open Sources from Microsoft
Microsoft only makes software which you have to pay ?
Visual Studio 2013 and .NET 4.5.1 Released
Microsoft just released the new development tool Visual Studio 2013 and .NET 4.5.1.
What’s new in ASP.NET MVC 4
ASP.NET MVC 4 new features:
More about WCF or Web API
We have had several posts about WCF vs Web API:
Summary of Deploy WCF, Silverlight and ASP.NET
We posted 3 guides about Deploy a web application which includes WCF, SilverLight and ASP.NET , for simplified all steps, here provides a “quick guide”:
WCF or Web API
About WCF and Web API, we should have a longer blog, but this time we just put several links, they are also great article about WCF vs Web API, you should get to know whether choose WCF or Web API after you reading them.
Silverlight and Socket Samples
We know Silverlight needs a limit range of Port number 4502 ~ 4534, and Port 943 for security policy.
Silverlight and Socket Links
1: HTTP Communication and Security with Silverlight (including Cross-Domain Communication)
A Case of Deploying a web application which includes WCF, Silverlight and ASP.NET part 3
I posted the previous 2 parts of our case deployment in 2012:
Deploy an ASP.NET Project on IIS 6
One of our ASP.NET project was built based on .NET 4 and focused on IIS 7.x web server, but doesn’t matter, IIS 6 support .NET 4.0 well, so we should be able to deploy the project on IIS 6 server too.
Install IIS 6 on Windows Server 2003
IIS 7.X web server versions are more and more popular, but there are still lots of real customers using old system, such as Windows Server 2003, they don’t want to upgrade the system now, especially those old servers are working for their existing system. So if you have ASP.NET projects which need an IIS web server, you have to install IIS 6.0 on Windows Server 2003.
An ASP.NET MVC3 Demo Application Introduction
About 36 hours ago, I just complained how painful as a Microsoft tech developer. Why I complained just because I have to maintain my Microsoft development skills on 4 different tech (they are really different): Windows Forms, WPF, ASP.NET Web Forms, ASP.NET MVC. I mean: I have to follow the new tech everyday, even every second!
Why As A Microsoft Tech Developer is So Painful!
When the years of Java Learn from C++, I did not have a good chance and a good reason to turn to Java, I think it was my BIG BIG Bad luck in my life. so, through so many years, I am keeping on the Microsoft technologies.
MVC3 Model compatibility cannot be checked because the database does not contain model metadata
An ASP.NET MVC3 project, using code first. followed Microsoft tutorial "Getting Started with EF using MVC".
One Difference Entity State in Desktop App vs in Web App
Microsoft’s Entity Framework now released at least 4 or even 5 main versions, there are many new stuff should to learn for most of Microsoft tech programmers who want to turn to MVC and Entity Framework.
For Next Generation Apps - Visual Studio 2012 Released
Microsoft released Visual Studio 2012 and .NET Framework 4.5 in the last week (2012 August 15). That was really a big day for both of all .NET developers and Microsoft.
A Case of Deploying a web application which includes WCF, Silverlight and ASP.NET part 2
About our case’s deployment, I have posted the part 1 here. This article is the part 2.
A Case of Deploying a web application which includes WCF, Silverlight and ASP.NET part 1
We have a web application which was developed using ASP.NET 4.0 (Web Forms), Silverlight 4.0 and WCF 4.0.
Still no solution for the conflict of Chinese input and Silverlight Windowless mode
The conflict of Silverlight’s windowless mode and Chinese inputting has already there for over some years, but seems there is still no a solution to resolve it by today. This is a big headache for most of .NET web programmers.
Silverlight 5 Is Updating
What ever people think Silverlight is dead or not, Microsoft is still keeping update Silverlight 5.
What’s New in Silverlight 5
If you want to read more detail about what’s new in Silverlight 5, you can read Microsoft official site here. Here we will just post notes and related information:
Host ASP.NET Web API In WPF Application
WCF Web API is changed to ASP.NET Web API. ASP.NET Web API has the feature of self-host. In Microsoft official site, they have provided two simples ASP.NET Web API self-host samples. However, they are too simple and actually they looks like the “same” one because those 2 samples are Console applications and they use very similar content.
Is Microsoft still making new version for WPF and Silverlight ?
IT world is changing fast. There are always new tech everyday. Especially after HTML5 came, looks like lots of existing tech have been affected what ever how they were great. such as Flash, Silverlight…
WCF, WCF Web API and ASP.NET Web API
Most of content in this post from Microsoft and related websites:
The HTTP request to http //xxx has exceeded the allotted timeout.
We have a WCF application with Silverlight 4.0 client application. The system worked well but just sometimes we got the following error:
A Sample of Integrating Bing Map and Geonames using ASP.NET
Some of Bing map and Google map services are not free, For example, They will not provide a free Geo database to developer.
Image Blur and Shadow in Silverlight
Silverlight Pixel shaders can manipulate pixels for different effects. There are different shaders: blur and drop shadow.
View Isolated Storage Info of Silverlight Application
Do you know how big size of a Silverlight Application’s isolated storage?
Modal Child Window in Silverlight
We often see the modal child window when we visit some websites. The modal child window will disable all other content on screen but just activate current child window.
New Data Binding Features in Silverlight 4
Here are 3 sample code to descript new data binding features in Silverlight 4:
List<T> vs ObservableCollection<T>
Most of time we bind a collection of data to a ListBox or DataGrid in Silverlight or WPF, the 1st class for data is List class. But the problem if using List class is that List does not have built-in change notifications for the collection.
Enable or Disable Button using CheckBox in Silverlight
How did you use a checkbox’s checked status to enable or disable a button? Normally, in real project, we do not enable or disable a single button but a group of buttons or controls, here we just use a single button to descript our case.
A Simple Silverlight Data Binding
Data binding in Silverlight is accomplished by using Binding class. There are 2 components in Binding class: the source and the target, and binding mode which indicates the binding way is one way or two way.
Auto Max Resize Silverlight Page In Web Browser
How to fill the entire browser window using Silverlight page ?
ADO.NET connected mode vs disconnected mode
ADO.NET can work on either connected mode or disconnected mode.
ASP.NET State Management
HTTP protocol is a stateless protocol. So ASP.NET need to manage the state. ASP.NET comes with built-in supports for state management both at the server and client side.
ASP.NET Application Life Cycle and Page Life Cycle
The life cycle of an ASP.NET application starts with a request sent by a browser to the Web server (IIS).
ClientID of Control in ASP.NET 4.0
Set Meta Keywords and Description in ASP.NET Web Page
Before ASP.NET 4.0, you could add meta keywords and description using HTML in asp.net web page. In ASP.NET 4.0, you can set keywords and descriptions for your web pages declaratively.
The Role Manager feature has not been enabled ?
When you run ASP.NET web application, and when you try to do a Role operation such as adding a role, you might get an error message:
What's new in ASP.NET MVC 3 ?
Scott Gu's blog can provide you enough information about MVC 3:
MSDN Video： Deep Dive into Microsoft Silverlight Graphics
Come hear about the Silverlight 3 rendering pipeline, and learn how to enhance your application experience with the latest additions to the Silverlight graphics APIs.
How to get the ASP.NET Commerce Starter Kit 2.0 to run in medium trust !
Here is Etiennel's blog which you can read the article:
WCF ... response message does not match the content type of the binding (text/xml; charset=utf-8)
When you use WCF, you might meet the following error message:
Some configurations about WCF HTTP polling duplex channels
Mr. Tomasz Janczuk has lots of blog posts about WCF http polling duplex service.
WCF timeout types
When you use WCF binding, you will see different timeout types:
Auto-Start Web Applications
Some Web applications need to load large amounts of data or perform expensive initialization processing before serving the first request. In earlier versions of ASP.NET, for these situations you had to devise custom approaches to “wake up” an ASP.NET application and then run initialization code during the Application_Load method in the Global.asax file.
WCF Duplex Service Links
WCF Duplex Service Links:
Why can not debug Silverlight ?
If you are building your Silverlight application, or combine a silverlight application with your ASP.NET web project, you might get a trouble: You found you could not debug Silverlight applications even you use Visual Studio 2010.
Silverlight Cross Domain Web Service Access Error
When you created WCF services, if you put your services on different severs in some case, just like me, for example: I created a WCF application which includes 2 web services, I deployed this WCF application onto 2 places, the one is on the server in my office, another one I put on my local laptop PC, the reason I put 2 copies of the WCF application to 2 different places is because I need to often modify one of the 2 web services, the another one I don't need to modify. I have also 2 other applications to consume those 2 web services, I set the service reference to my office one, set another service reference to my local pc one.
Get Application Path in Web App and Window App (.NET)
Scripting.FileSystemObject in ASP.NET 4.0
If you have some old VB code to insert into your new ASP.NET 4 project, and there is “Scripting.FileSystemObject” in your code, maybe you can not compiled it because you will get the error message :
Application_Start vs Application_BeginRequest event in Global.aspx
If you use Global.aspx in your ASP.NET project, you will see 2 different but look like the similar events: Application_Start and Application_BeginRequest
ASP.NET Timer control to fresh web page
WCF Impersonation On the Service Hosting side
Here a good example of setting WCF Impersonation on the server side (not client side):
Performance Comparison of WCF with Traditional Communication Tech
Here is the article from MSDN:
WCF Service Application vs WCF Service library
When you try to create a WCF Service using Visual Studio, you will see 2 kinds of WCF which maybe let you confused : WCF Service Application vs WCF Service library.
WCF RIA Services vs WCF Services
WCF RIA Services vs WCF Services ?
Forms Authentication in ASP.NET 2.0
The article is from Microsoft official MSDN site.
Build Generic Data Access Layer in ADO.NET for multiple database types
Want to build a DB Access layer for multiple database types ?
Mouse hover to select a row form ListView
On a ListView you can add this functionality directly on the row, something like this:
Repeater vs ListView vs GridView vs DataList vs DataGrid
the above info from here
How to Localize Site-Map Data
Microsoft ASP.NET 2.0 Membership Data Structure ( Definition )
Looking for Microsoft ASP.NET 2.0 Membership Data Structure ( Definition ) ?
Custom Role Provider
Microsoft provides also a role article: How to: Sample Role-Provider Implementation
Implement a Custom Membership User
There is a article about Customer Membership Provider, However, I guess you want to your own user table other than using Microsoft ASPNET user table, so you will feel the previous article is not enough for your requirement. Yes, you must create your own custom Membership User class:
How to multiple languages for Site Map
You can not create different resource files for a Web.Sitemap file just like for other web form files if you use site map for you asp.net menu control.
About ASP.NET multiple languages
1: Walkthrough: Using Resources for Localization with ASP.NET (including Implicit Localization and Explicit Localization);
Setting IIS 7 for .NET 4.0 in Windows 7 (3)
Setting IIS 7 for .NET 4.0 in Windows 7 (2)
Setting IIS 7 for .NET 4.0 in Windows 7 (1)
In Windows 7, there is the IIS ( Internet Information Services ) version is 7. The following is the steps which we setup an IIS 7 Web server in Windows 7 Home Premium:
WCF Service does not support ASP.NET compatibility
When you create a WCF Service in ASP.NET, you might get an error page which includes the following content: Server Error in ‘/’ Application.
Creating and Consuming a WCF Service in Silverlight
1: Here is a good article about “Creating and Consuming a WCF Service in Silverlight”.
WCF Service vs WCF Data Service ?
In Visual Studio 2010, when you try to add a WCF Service, you will see the following 2 kinds of WCF services:
ASP.NET 4.0 Applications can not run on IIS 5.1?
Some people are still using Windows XP Pro which only installed IIS 5.1. When you try to run ASP.NET 4.0 web application, you might meet the following error message:
Configure Security and Authentication for IIS virtual directory
After you create a new IIS virtual directory through IIS 5.1 manager, It is the time to Configure Security and Authentication for your new IIS virtual directory.
\"Unexpected Error 0x8ffe2740 Occurred\" Error When Start IIS
When you start IIS 5.1 on Windows XP Pro, you may receive the following error message:
Set a site on Local Windows XP IIS Server
Normally if your OS is Windows XP Professional, you might have already a IIS Web Server for ASP.NET installed or you can install from your Windows XP CD disk.
Extend Bing Maps Silverlight
Step by Step Creating a Weather Map using the Bing Silverlight Map SDK
Here is a very good and very detail tutorial about how to use Bing Silverlight Map SDK:
Silverlight Plug-in Versioning
Integrating Silverlight with a Web Page
Here are some links which are about “Integrating Silverlight with a Web Page”
Where is system.web.silverlight.dll in Silverlight 4 ?
There is a Silverlight project which created in Silverlight 2, but when it opened in Visual Studio 2010 which converts the Silverlight 2 project to Silverlight 4, the system.web.silverlight reference can not be located because there is no more system.web.silverlight in Silverlight 3 / 4, which meas you can not find system.web.silverlight.dll file.
Silverlight Client/WCF Upload/DeepZoom XAP package
Silverlight DeepZoom Service Demo Project - Silverlight Client/WCF Upload/DeepZoom XAP package
Map API or Controls Licenses
Not all Map service is free, most of them need licenses, but they provide free using under some rules.
Dynamic SilverLight Deep Zoom
Some helpful articles which are about dynamic silverlight deep zoom:
Microsoft Silverlight 4 Tools for Visual Studio 2010
How to use Deep Zoom Composer
Deep Zoom Composer used for Creating a Deep Zoom Image
Deep Zoom is an implementation of the Seadragon Software technology for use in Microsoft Silverlight and Seadragon Ajax applications. It allows users to pan around and zoom in a large, high resolution image or a large collection of images. It reduces the time required for initial load by downloading only the region being viewed and/or only at the resolution it is displayed at. Subsequent regions are downloaded as the user pans to (or zooms into them); animations are used to hide any jerkiness in the transition.
ASP.NET and Images
Micorosoft's Membership Provider Implementation Sample Code
ASP.NET membership is designed to enable you to easily use a number of different membership providers for your ASP.NET applications. You can use the supplied membership providers that are included with the .NET Framework, or you can implement your own providers.
ASP.NET 2.0 default membership provider database structure
ASP.NET 2.0 provides default membership provider database structure like the following:
What ASP.NET 4 changed ?
Microsoft Official ASP.NET site provides a Whitepaper which is about ASP.NET 4 Changes, please click below link to read:
Where is the MembershipProvider abstract class in .NET 4.0 ?
Question: When I want to create a custom membership provider in asp.net 4, I can not find MembershipProvider abstract class for inheritance , where is it ?
Implementing your own Membership Provider
ASP.NET has already provided membership providers that are included with the .NET Framework. You can use them directly for any web sites without spending your more design. However, you must feel the supplied membership providers are not convenient for your projects. Microsoft MSDN site also gave the reasons why you need to implement your own Membership provider:
From Microsoft MSDN: