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

Image

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.

<?php

// if we are using IIS, we need to set
// $_SERVER[‘PHP_AUTH_USER’] and
// $_SERVER[‘PHP_AUTH_PW’]

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 ‘)
) {

list($_SERVER[‘PHP_AUTH_USER’], $_SERVER[‘PHP_AUTH_PW’]) =
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】
       http://download.microsoft.com/download/F/F/8/FF8C8AF1-D520-4027-A844-8EC7BC0FB27C/X16-42546VS2010PremTrial1.iso

      (Professional)
       http://download.microsoft.com/download/4/0/E/40EFE5F6-C7A5-48F7-8402-F3497FABF888/X16-42555VS2010ProTrial1.iso

      (Ultimate)
       http://download.microsoft.com/download/2/4/7/24733615-AA11-42E9-8883-E28CDCA88ED5/X16-42552VS2010UltimTrial1.iso

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

Image

Image

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.