Mostly Client Side


Programming is like sex: one mistake and you’re providing support for a lifetime. (Michael Sinz)

Introduction To Asp.net

June 24th, 2010

Introduction to ASP.NET

Unlike the ASP runtime, ASP.NET uses the Common Language Runtime (CLR) provided by the .NET Framework. Visit Here Now http://dotnet-asansol.blogspot.com

The CLR is the .NET runtime, which manages the execution of code. The CLR allows the objects, which are created in different languages, to interact with each other and hence removes the language barrier. CLR thus makes Web application development more efficient.

In addition to simplifying the designing of Web applications, the .NET CLR offers many advantages. Some of these advantages are listed as follows.

Improved performance:

The ASP.NET code is a compiled CLR code instead of an interpreted code. The CLR provides just-in-time compilation, native optimization, and caching. Here, it is important to note that compilation is a two-stage process in the .NET Framework. First, the code is compiled into

the Microsoft Intermediate Language (MSIL).

Then, at the execution time, the MSIL is compiled into native code. Only the portions of the code that are actually needed will be compiled into native code. This is called Just In Time compilation. These features lead to an overall improved performance of ASP.NET applications.

Flexibility:

The entire .NET class library can be accessed by ASP.NET applications. You can use the language that best applies to the type of functionality you want to implement, because ASP.NET is language independent.

Configuration settings:

The application-level configuration settings are stored in an Extensible Markup Language (XML) format. The XML format is a hierarchical text format, which is easy to read and write. This format makes it easy to apply new settings to applications without the aid of any local administration tools.

Security:

ASP.NET applications are secure and use a set of default authorization and authentication schemes. However, you can modify these schemes according to the security needs of an application.

In addition to this list of advantages, the ASP.NET framework makes it easy to migrate from ASP applications.

Creating an ASP.NET Application

Use a text editor:

In this method, you can write the code in a text editor, such as Notepad, and save the code as an ASPX file. You can save the ASPX file in the directory C:inetpubwwwroot. Then, to display the output of the Web page in Internet Explorer, you simply need to type  in the Address box. If the IIS server is installed on some other machine on the network, replace “localhost” with the name of the server. If you save the file in some other directory, you need to add the file to a virtual directory in the Default WebSite directory on the IIS server. You can also create your own virtual directory and add the file to it.

Use the VS.NET IDE:

In this method, you use the IDE of Visual Studio .NET to create a Web page in a WYSIWYG manner. Also, when you create a Web application, the application is automatically created on a Web server (IIS server). You do not need to create a separate virtual directory on the IIS server.

From the preceding discussion, it is obvious that the development of ASP.NET Web applications is much more convenient and efficient in Visual Studio .NET.

ASP.NET Web pages consist of HTML text and the code. The HTML text and the code can be separated in two different files. You can write the code in Visual Basic or C# . This separate file is called the code behind file. In this section, you’ll create simple Web pages by using VB as well as C#.

Before you start creating a Web page, you should be familiar with basic ASP.NET syntax. At the top of the page, you must specify an @ Page directive to define page specific attributes, such as language.

To specify the language as VB for any code output to be rendered on the page.

This line indicates that any code in the block, , on the page is compiled by using VB.

To render the output on your page, you can use the Response.Write() method.

Creating a Visual Basic Web Application

You can create an ASP.NET application using Visual Basic by creating a Visual Basic

Web Application project. To do so, complete the following steps:

1. Select File ® New ® Project. The New Project dialog box appears.

2. Select Visual Basic Projects from the Project Types pane.

3. Select ASP.NET Web Application from the Templates pane. The Name box contains a default name of the application. The Location box contains the name of a Web server where the application will be created. However, you can change the default name and location. In this case, the name of the sample application is SampleVB.

Deploying an ASP.NET Web Application

After creating and testing your ASP.NET Web applications, the next step is deployment.

Deployment is the process of distributing the finished applications (without the source code) to be installed on other computers.

In Visual Studio .NET, the deployment mechanism is the same irrespective of the programming language and tools used to create applications. In this section, you’ll deploy the “Hello World” Web application that you created. You can deploy any of the application that was created by using VB or C#. Here, you’ll deploy the application created by using VB. To do so, follow these steps:

1. Open the Web application project that you want to deploy. In this case, open the SampleVB project.

2. Select File ® Add Project ® New Project to open the Add New Project dialog box.

3. From the Project Types pane, select Setup and Deployment Projects.

From the Templates pane, select Web Setup Project.

4. Change the default name of the project. In this case, change it to “SampleVBDeploy.”

5. Click OK to complete the process. The project is added in the Solution Explorer window.Visit Here Now http://dotnet-asansol.blogspot.com

Visit Here Now http://dotnet-asansol.blogspot.com
Article Source

I'm eager to hear your comments...

Joomla Templates And Its Benefits to Your Website

May 29th, 2010

JOOMLA is often a  content management system or perhaps Content management system that can help web developers in addition to entrepreneurs to design web sites using excellent online characteristics. This ensures the users along with clientele regarding good quality functionality by simply a competent managing content web. This article varies from papers, texts and also other programs to be able to identify content which are quite important in the business regarding transactions and programs.

JOOMLA can be developed given that content management system handles content internet by itself. It really is obtainable to all people who wants to handle their own received sites inside better method since it is an empty resource software. For most business small business, JOOMLA makes their own dealings on-line greatly reliable as well as offered. It might provide the requirements of this company web sites, periodicals, sites as well as magazines, newspapers, and also book.

JOOMLA could be customizes so that you can effortlessly put in. The help such as articles established ups, internet site tasks, and so on. that’s offered simply by JOOMLA is faster. The net builders come across JOOMLA because easy to use within making sites to supply customers as well as people. It may perform multi-tasking for you to provide several user at a time with high quality server.

JOOMLA may offer good quality associated with joomla templates. Running a business and business planet, customers on the internet is going to be attracted with the web templates the JOOMLA created. JOOMLA designed templates which have been additional aggressive as well as appealing advertisement on the internet.

Templates in JOOMLA
possess many software that permit template designers as well as designers to significantly create the capacity of the web to appeal numerous clientele. JOOMLA themes obtainable from the internet and may always be put in very easily. Begin browsing online to have JOOMLA joomla templates. check out http://www.JoomlaTemplateDownload.org to acquire good details about Joomla themes.

Any ideas?

To #Region Or Not To #Region

February 17th, 2009

That truly is the question. A question that has surfaced today when a co-worker started bitching about the 4 layers of embedded regions in the code he was working on. If you’re not familiar with regions here’s a short explanation. In .NET you can surround your code with #Region and #Endregion to make it possible to hide those lines of code. The purpose is to make the code clearer by occupying fewer lines.

Read the rest of this entry »

Post a comment below...