We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Book Cover Pure ASP.NET
98460 times
Rated
Read 98,460 times

Contents

Related Categories

ASP.NET Web Forms - Introduction

Introduction

This is a sample chapter from Pure ASP.NET.

At the most basic level, an ASP.NET Web form looks remarkably like a regular HTML page. It is a text file that contains markup language that can be edited in a simple text editor such as notepad. However, an ASP.NET Web form has several "distinguishing elements, which are discussed in this chapter:

  • Web forms contain blocks of code that are processed on the server.

  • The first time a Web form is requested, the entire page is compiled. Subsequent requests are served from this compiled page.

  • Web forms can contain page directives, which are global settings for the page. Common page directives enable you to turn off session state and ViewState management.

  • Web forms can contain both server-sides, including SSIs, which enable you to dynamically insert the contents of a file into your Web form, and user controls. User controls are object oriented and use a more programmatic approach to code encapsulation than SSIs.

  • As mentioned previously, Web forms can also contain as much HTML and client-side script, such as JavaScript, as desired.

Comments

  • more help?

    Posted by HardlyNoticable on 23 Aug 2005

    Peter: You are using an alert box. I'm pretty sure that only the exclamation icon is your only option.

    svkoli: I get the following error when I try to use your box:

    CS0122: 'testresults.Button1...

  • Posted by chandrababu on 28 Jul 2005

    Use window.confirm()

  • Posted by VasanthKumar on 28 Jul 2005

    [quote][1]Posted by [b]surendar[/b] on 10 Jan 2005 11:47 PM[/1]
    what the code to create a messagebox in asp using c# language ?
    [/quote]

    http://www.developerfusion.co.uk/show/4700/
    see this.

  • Posted by anshu on 28 Jul 2005

    anyone can please tell me how to create a message box with ok & cancel buttons on a web page using asp.net using code behind ? Actually i am new to .NET. i reqire it urgently.

  • Posted by laney_18_boggs on 24 Jun 2005

    string message = strConn;
    string alertScript = "