Tag Archives: Microsoft

How to let your visual studio 2010 support HTML5?

Mircosoft won’t let code people use notepadd++ to write codes.Html5 is very popular,how can vs2010 won’t support html5? here I will teacher you how to let you vs2010 support html5.

all you need is vs2010 and a browser.

what do we need a browser? hehe,if you want you vs2010 support html5. first thing first is that you need update vs2010 to sp1.

How do we up microsoft Visual Studio 2010 to microsoft Visual Studio 2010 sp1?
There are two ways:
1.Go straight to microsoft website, download center download Microsoft Visual Studio 2010 Service Pack 1

2.open windows update, the system will automatically find vs2010 update file, size around 600MB

Once you finished update, then open you vs2010 goto tool->option->HTML->Validation



Code Files and Data Files

Code Files

  • Web Service .asmx Can be called by other systems, including browsers, and can contain code that can be executed on your server.
  • Class .cs Can contain code to program your web site.
  • Global Application Class .asax Can contain code that is fired in response to interesting things that happen in your site, such as the start of the application or when an error occurs somewhere in the site.

Data Files

  • XML File .xml Used to store data in XML format. In addition to plain XML files, ASP.NET supports a few more XML-based files, two of which you briefly saw before: web.config and the Site Map.
  • SQL Server Database .mdf Files with an .mdf extension are databases that are used by Microsoft SQL Server.
  • ADO.NET Entity Data Model .dbml Used to access databases declaratively, without the need to write code. Technically, this is not a data file, because it does not contain the actual data. However, because it is tied to the database so closely, it makes sense to group it under this header.

Using Basic Authentication

sometimes, when you get into a page then there a pop up window need your enter your name and password, here is the code, for authentication facilities are built into HTTP.

here is the code:

The user has not yet provided authentication information, it will be requested. If she has provided incorrect information, she is given a rejection message. If she provides a matching namepassword pair, she is presented with the contents of the page.


// if we are using IIS, we need to set

if ((substr($_SERVER[‘SERVER_SOFTWARE’], 0, 9) == ‘Microsoft’) &&
(!isset($_SERVER[‘PHP_AUTH_USER’])) &&
(!isset($_SERVER[‘PHP_AUTH_PW’])) &&
(substr($_SERVER[‘HTTP_AUTHORIZATION’], 0, 6) == ‘Basic ‘)
) {

explode(‘:’, base64_decode(substr($_SERVER[‘HTTP_AUTHORIZATION’], 6)));

// Replace this if statement with a database query or similar
if (($_SERVER[‘PHP_AUTH_USER’] != ‘user’) ||
($_SERVER[‘PHP_AUTH_PW’] != ‘pass’)) {

// visitor has not yet given details, or their
// name and password combination are not correct

header(‘WWW-Authenticate: Basic realm=”Realm-Name”‘);

if (substr($_SERVER[‘SERVER_SOFTWARE’], 0, 9) == ‘Microsoft’) {
header(‘Status: 401 Unauthorized’);
} else {
header(‘HTTP/1.0 401 Unauthorized’);

echo “<h1>Go Away!</h1>
<p>You are not authorized to view this resource.</p>”;

} else {
// visitor has provided correct details
echo “<h1>Here it is!</h1>
<p>I bet you are glad you can see this secret page.</p>”;

Visual Studio 2010 freedown + Crack

first:Microsoft Visual Studio 2010 down(come from www.microsoftstore.com

      (Premium) 【link】



then,Help->Register Product->:YCFHQ-9DWCY-DKV88-T2TMH-G7BHP then enter



or you can

       use thisProduct Key:YCFHQ9DWCYDKV88T2TMHG7BHP,to cover setup.sdb [Product Key]

if you already install fee trial, just change Product Key:YCFHQ9DWCYDKV88T2TMHG7BHP,then fine.