.net qr code generator free Figure 6-5. Virtual directory access permissions in VB.NET

Generating QR Code in VB.NET Figure 6-5. Virtual directory access permissions

Figure 6-5. Virtual directory access permissions
Create QR Code ISO/IEC18004 In VB.NET
Using Barcode maker for Visual Studio .NET Control to generate, create QR Code 2d barcode image in Visual Studio .NET applications.
www.OnBarcode.com
Recognizing QR Code ISO/IEC18004 In VB.NET
Using Barcode recognizer for Visual Studio .NET Control to read, scan read, scan image in .NET framework applications.
www.OnBarcode.com
The wizard will complete, and your virtual directory will be ready, but empty. Add a new text file to the directory by using IIS Manager or Windows Explorer. Call it test.htm and give it the following contents:
PDF417 Drawer In Visual Basic .NET
Using Barcode maker for VS .NET Control to generate, create PDF-417 2d barcode image in Visual Studio .NET applications.
www.OnBarcode.com
Printing Code 3 Of 9 In VB.NET
Using Barcode creation for VS .NET Control to generate, create Code 39 Full ASCII image in .NET framework applications.
www.OnBarcode.com
<html> <body> <h1>My HTML Page</h1> </body> </html>
Code 128 Code Set C Creation In Visual Basic .NET
Using Barcode creation for .NET Control to generate, create Code 128A image in VS .NET applications.
www.OnBarcode.com
Data Matrix ECC200 Creator In VB.NET
Using Barcode encoder for .NET Control to generate, create DataMatrix image in .NET framework applications.
www.OnBarcode.com
CHAPTER 6 s DEPLOYING YOUR WEB SITE
Creating Barcode In VB.NET
Using Barcode encoder for .NET framework Control to generate, create Barcode image in .NET framework applications.
www.OnBarcode.com
Leitcode Generator In Visual Basic .NET
Using Barcode generation for Visual Studio .NET Control to generate, create Leitcode image in Visual Studio .NET applications.
www.OnBarcode.com
Now, from a browser, you can call http://serverIP/6Test/test.htm or http:// serverurl/6Test/test.htm, and the browser will render a page according to the instructions in the preceding HTML code. You can see this in Figure 6-6 where the IP address of the server is used.
QR Maker In .NET Framework
Using Barcode drawer for .NET framework Control to generate, create QR Code 2d barcode image in .NET applications.
www.OnBarcode.com
Reading Denso QR Bar Code In VB.NET
Using Barcode decoder for .NET Control to read, scan read, scan image in .NET framework applications.
www.OnBarcode.com
Figure 6-6. Viewing your page
Reading Barcode In .NET Framework
Using Barcode Control SDK for ASP.NET Control to generate, create, read, scan barcode image in ASP.NET applications.
www.OnBarcode.com
Creating ECC200 In C#
Using Barcode drawer for Visual Studio .NET Control to generate, create Data Matrix image in Visual Studio .NET applications.
www.OnBarcode.com
How IIS Handles URLs
UPC Symbol Creator In Objective-C
Using Barcode creator for iPhone Control to generate, create UPC Symbol image in iPhone applications.
www.OnBarcode.com
Barcode Reader In Java
Using Barcode recognizer for Java Control to read, scan read, scan image in Java applications.
www.OnBarcode.com
As you can see from the preceding example, the user types a URL into the browser, and IIS serves the HTML page in response to their request. The HTML code is then rendered by the browser as shown in Figure 6-6. When IIS received this request, the first thing it did was to examine this URL and establish the location of the content. First, it recognized that no port was specified on the URL, so it used port 80, which is the standard (default) HTTP port. If this server had been running on port 81, for example, then the URL of the server should be postfixed with :81, like this: http://servername:81/. It then decodes the virtual directory and/or subdirectories that determine where the content is located. In the preceding example, the URL dictated that the content should be found in 6Test, which is a virtual directory that maps to C:\InetPub\wwwroot\ 6TestSite for this example. Finally, at the end of the URL is the content itself, which in this case is test.htm. If this content is present in the specified location, it will be rendered and the resulting content returned to the requesting user. Note that if you want to deliver nonstandard web content, you will have to specify its Multipurpose Internet Mail Extensions (MIME) type by using IIS Manager. Later in this book, you ll use Extensible Application Markup Language (XAML), which is a variant of XML that is used to deliver graphical information. This is an example of a MIME type that you ll to need add for the server to recognize it as a valid content request. If you don t, IIS and its default security lockdowns will prevent you from serving resources with nonstandard content.
Data Matrix Decoder In C#.NET
Using Barcode recognizer for VS .NET Control to read, scan read, scan image in .NET framework applications.
www.OnBarcode.com
Painting Code 128 Code Set C In .NET Framework
Using Barcode maker for .NET Control to generate, create Code 128 Code Set B image in Visual Studio .NET applications.
www.OnBarcode.com
CHAPTER 6 s DEPLOYING YOUR WEB SITE
Paint UCC - 12 In None
Using Barcode creator for Excel Control to generate, create UPC Symbol image in Microsoft Excel applications.
www.OnBarcode.com
QR Code JIS X 0510 Printer In Objective-C
Using Barcode encoder for iPhone Control to generate, create QR Code image in iPhone applications.
www.OnBarcode.com
To manage the served MIME types, select Properties for the site, and then select the HTTP Headers tab (see Figure 6-7).
Barcode Printer In Visual Studio .NET
Using Barcode drawer for ASP.NET Control to generate, create Barcode image in ASP.NET applications.
www.OnBarcode.com
Barcode Creation In .NET
Using Barcode creator for Reporting Service Control to generate, create Barcode image in Reporting Service applications.
www.OnBarcode.com
Figure 6-7. HTTP headers configuration for the site
On this dialog box, you can click the MIME Types button to invoke the MIME Types dialog box, which can be used to add, remove, or edit registered MIME types (see Figure 6-8).
Figure 6-8. Configuring the MIME types
CHAPTER 6 s DEPLOYING YOUR WEB SITE
The MIME type for XAML is application/xml+xaml, which you can see configured in Figure 6-8. In addition to automatically serving configured MIME types, IIS sometimes uses ISAPI filters to process specific file types. In the previous example, you were serving an HTML file, which is a static file that is simply rendered and delivered to the browser. However, if you are instead serving an ASPX page, as in earlier chapters, to return this type of resource the server runs an ISAPI extension that is assigned to requests for content with the .aspx extension. It then receives the response from the ISAPI extension as HTML and dispatches it back to the client. Here s an example of a simple ASPX web page. Save it in a file called Test.aspx in the same folder you used earlier (i.e., C:\InetPub\wwwroot\6TestSite).
<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <% Response.Write(System.DateTime.Now.ToString()); %> </div> </form> </body> </html>
When you use the browser to navigate to this file, the C# code will execute and ASP .NET will generate HTML containing the current time and date. You can see this in Figure 6-9.
Copyright © OnBarcode.com . All rights reserved.