Search | Contact | Link To Us  

      ASP.NET      

ASP.NET
Dev Environment
Web Forms
Web Controls
ADO .NET
Web User Controls
Deployment
XML Web Services
ASP.NET Feedback Form
Resources
Discussions
VB .NET
About



Advertisement






























     HomeASP.NETWeb FormsWorking with Forms> Web Page Properties 

Web Forms

Adding a New Form

To add a new form to the project, select Project->Add Web Form from the main menu or right-click on the project in the Solution Explorer Window and from the context menu select Add->Add Web Form. The dialogue that appears using both the approaches looks like the image below. You also can add a HTML page to the project with the same procedure.

Setting the Startup Form

Consider a Web Application containing more than one page. Setting a Startup form means setting one of the pages in the Application to execute when the application is set to run. To understand that consider the image below.

Notice from the above image, the project Startvbdotnet has more than one Web form. To set the form button.aspx as the start page, select button.aspx, right-click it and select Set As Start Page from the context menu. When you do that, the page buton.aspx is executed and is displayed when you run the application.

Web Page Properties

The table below summarizes properties of the Web page. Properties are listed alphabetically as seen in the properties window.

PropertyDescription
aLinkGets/Sets the color of all active links in the page
aspCompatGets/Sets whether the page is enabled for ASP compatibility
backgroundGets/Sets the background image for the page
bgcolorGets/Sets the background color for the page
bgPropertiesGets/Sets the background property for the background image
bottomMarginGets/Sets the bottom margin for the body of the page
bufferGets/Sets response buffering
charsetGets/Sets the character set used to encode the page
clientTargetGets/Sets user agent string that sets rendering of server controls
codePageGets/Sets locale code page of the file
contentTypeGets/Sets HTTP-content type output for the page
CultureGets/Sets the culture setting for the page
debugEnables to compile the page with debug symbols or not
defaultClientScriptGets/Sets the default scripting language for event handlers
DescriptionGets/Sets the description for the page
dirGets/Sets the reading order for the page
enableSessionStateAllows to enable or disable session state
enableViewStateAllows to maintain view state across pages
enableViewStateMacIndicates whether view state should be MAC checked
errorPageGets/Sets an error page for unhandled requests
keywordsGets/Sets keywords for document indexing
languageGets/Sets the language used for compiling inline code blocks
lcidLocale identifier
leftMarginGets/Sets left margin for the body of the page
linkGets/Sets the color for unvisited links on the page
pageLayoutGets/Sets the page layout mode for the document
responseEncodingGets/Sets response encoding for content
rightMarginGets/Sets right margin for the body of the page
showGridShows grid in grid layout items
smartNavigationEnables smart IE5 page navigation history
srcGets/Sets the code behind class to compile
targetSchemaGets/Sets flavor of HTML used
textGets/Sets the foreground color for the page
titleGets/Sets the title for the page
topMarginGets/Sets the top margin for the body of the page
traceGets/Sets whether page level tracing is enabled or not
traceModeGets/Sets the trace output mode
transactionGets/Sets the page transaction semantics
uiCultureGets/Sets culture for resource lookups
vLinkGets/Sets the color for visited links on the page
WarningLevelUsed to handle compiler warnings as errors

  Privacy Policy | Terms of Use | Site Map | Contact

  © 2004-2007 Startvbdotnet.com. All rights reserved.