<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5762828302547854183</id><updated>2011-08-30T04:16:09.912-07:00</updated><category term='ASP.NETForms'/><category term='ASP.NET'/><title type='text'>ASP.NET Complete</title><subtitle type='html'>Learn here every thing regarding ASP.NET like a detailed course step by step.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aspdotnetcourse.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://aspdotnetcourse.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5762828302547854183.post-4488636211437210224</id><published>2009-09-30T03:22:00.000-07:00</published><updated>2009-09-30T03:38:20.904-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NETForms'/><title type='text'>ASP.NET Web Controls Adrotator and its events</title><content type='html'>&lt;div style="text-align: justify;"&gt;In asp.net adrotator webcontrol is a control used to control the ads n the web page.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Properties of the AdRotator control&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Along with the properties that are inherited from the System.Web.UI.Control base class,  the AdRotator control has three additional properties:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;AdvertisementFile&lt;/li&gt;&lt;li&gt;KeywordFilter&lt;/li&gt;&lt;li&gt;Target&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;AdvertisementFile&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The AdvertisementFile property in asp.net represents the path to an Advertisement file. The Advertisement file is a well-formed XML document that contains information about the image to be displayed for advertisement and the page to which a user is redirected when the user clicks the banner or image. The following is the syntax of the Advertisement file:&lt;br /&gt;&lt;advertisements&gt;&lt;ad&gt;&lt;imageurl&gt;&lt;/imageurl&gt;&lt;/ad&gt;&lt;/advertisements&gt;&lt;br /&gt;&lt;advertisements style="color: rgb(51, 51, 255);"&gt;&lt;ad&gt;&lt;imageurl&gt;&lt;span style="font-weight: bold;"&gt;URL of the image to display&lt;/span&gt;&lt;/imageurl&gt;&lt;navigateurl&gt;&lt;/navigateurl&gt;&lt;/ad&gt;&lt;/advertisements&gt;&lt;br /&gt;&lt;advertisements&gt;&lt;ad&gt;&lt;navigateurl&gt;&lt;/navigateurl&gt;&lt;/ad&gt;&lt;/advertisements&gt;&lt;ol&gt;&lt;li&gt;&lt;advertisements&gt;&lt;ad&gt;&lt;navigateurl&gt;URL of the page to navigate to&lt;/navigateurl&gt;&lt;alternatetext&gt;&lt;/alternatetext&gt;&lt;/ad&gt;&lt;/advertisements&gt;&lt;/li&gt;&lt;li&gt;&lt;advertisements&gt;&lt;ad&gt;&lt;alternatetext&gt;Text to be displayed as ToolTip&lt;/alternatetext&gt;&lt;keyword&gt;&lt;/keyword&gt;&lt;/ad&gt;&lt;/advertisements&gt;&lt;/li&gt;&lt;li&gt;&lt;advertisements&gt;&lt;ad&gt;&lt;keyword&gt;keyword used to filter&lt;/keyword&gt;&lt;impressions&gt;&lt;/impressions&gt;&lt;/ad&gt;&lt;/advertisements&gt;&lt;/li&gt;&lt;li&gt;&lt;advertisements&gt;&lt;ad&gt;&lt;impressions&gt;relative weighting of ad&lt;/impressions&gt;&lt;/ad&gt;&lt;/advertisements&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Note The Advertisement file must be a well-formed XML document, as the AdvertisementFile property of the AdRotator control needs to be set to an XML file.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;The following are the different elements used in the Advertisement file&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;ImageUrl:&lt;/span&gt; Specifies an absolute or relative URL to an image file that presents the image for the advertisement. This element refers to the image that will be rendered in a browser.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;NavigateUrl:&lt;/span&gt; Specifies the URL of a page to navigate to, if a user clicks the advertisement image. If this parameter is not set, the ad is not "live." Although this parameter is optional, it must be specified, because the ad must direct clients to a target URL when it is clicked.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;AlternateTex&lt;/span&gt;t: Is an optional parameter that specifies some alternative text that will be displayed if the image specified in the ImageUrl parameter is not accessible. In some browsers, the AlternateText parameter appears as a ToolTip for the ad.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Keyword:&lt;/span&gt; Is an optional parameter that specifies categories, such as computers, books, and magazines that can be used to filter for specific ads.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Impressions:&lt;/span&gt; Is an optional parameter that provides a number that indicates the weight of the ad in the schedule of rotation relative to the other ads in the file. The larger the number, the more often the ad will be displayed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Keyword Filter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The KeywordFilter property of active server pages dot net  specifies a category filter to be passed to the source of the advertisement. A keyword filter allows the AdRotator control to display ads that match a given keyword. This enables the AdRotator control to display more context-sensitive ads, where the context is specified in the ASPX page containing the AdRotator control. When you use a keyword filter, three conditions arise:&lt;br /&gt;&lt;br /&gt;Both the KeywordFilter and AdvertisementFile properties are set. In such a case, the AdRotator control renders the image that matches the keyword specified.&lt;br /&gt;&lt;br /&gt;The AdvertisementFile property points to a valid Advertisement file, and the KeywordFilter property specifies a keyword that matches no images. In such a case, the control renders a blank&lt;br /&gt;image, and a trace warning is generated.&lt;br /&gt;&lt;br /&gt;The KeywordFilter property is empty. In such a case, keyword filtering will not be used to select an ad.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Target&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Target property specifies the name of the browser window or frame in which the&lt;br /&gt;advertisement needs to be displayed. This parameter can also take any of the HTML frame-related keywords, such as the following:&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: justify;"&gt;&lt;li&gt;top: Loads the linked document into the topmost window.&lt;/li&gt;&lt;li&gt;blank: Loads the linked document into a new browser window.&lt;/li&gt;&lt;li&gt;self: Loads the linked document in the same window.&lt;/li&gt;&lt;li&gt;parent: Loads the linked document in the parent window of the window that contains the link.&lt;/li&gt;&lt;li&gt;After looking at the properties, let's understand the events associated with the AdRotator&lt;/li&gt;&lt;li&gt;control.&lt;/li&gt;&lt;/ol&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Events of the AdRotator control&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The AdRotator control supports the adCreated event that you can handle to monitor the activities of a user or a session. The adCreated event is generated with every round trip to the server, after the AdRotator control is created but before the page is rendered in the browser.&lt;br /&gt;&lt;br /&gt;The event handler for the adCreated event is OnAdCreated and has the following syntax:&lt;br /&gt;&lt;br /&gt;OnAdCreated (sender as Object, e as AdCreatedEventArgs)&lt;br /&gt;&lt;br /&gt;The event handler takes two parameters. The first parameter represents the object that raises the event. The second parameter represents the AdCreatedEventArgs object that contains the data related to this event. The AdCreatedEventArgs object has a set of properties that provide information specific to the AdCreated event:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;AdProperties:&lt;/span&gt; Is an IDictionary type object that provides all the advertisement properties that have been set for the currently selected advertisement.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;AlternateText:&lt;/span&gt; Is a String type value that sets the ALT property of the image that is sent to the browser. In some browsers, this text is displayed as a ToolTip when the mouse cursor hovers over the image.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;ImageUrl: &lt;/span&gt;Is a String value that sets the URL of the image that is displayed in the AdRotator control.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;NavigateUrl:&lt;/span&gt; Is a String type value that specifies the URL of the Web page to navigate to when a user clicks the advertisement.&lt;br /&gt;&lt;br /&gt;The OnAdCreated event handler can be used to select ads in a local code or to modify the rendering of an ad selected from the Advertisement file. If an advertisement file is set, the parameters of the AdCreated event handler are set to the selected ad when the event is generated. The source image that is specified by the Advertisement file is sized by the browser to the dimensions of the AdRotator control, regardless of the image's actual size. The ad is selected based on impressions weighting from the file.&lt;br /&gt;&lt;br /&gt;If the values are not set in the Advertisement file, the developer can modify the values in the ImageUrl, NavigateUrl, and AlternateText properties to modify the rendering of the AdRotator control. A very common use of this is when developers need to populate the event arguments with values pulled from a database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Rendering ads to client browsers using AdRotator&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following code uses the AdRotator server-side control to render ads to the client browsers. The AdRotator control uses an Advertisement file named Ads.xml.&lt;br /&gt;&lt;br /&gt;&lt;%@ Page Language="VB" %&gt;&lt;br /&gt;&lt;br /&gt;The following code describes the Ads.xml file that is used by the AdRotator control. The file contains two advertisements that will be dynamically shown to different users. The first ad points to an image file named Saturn.gif. When users click this image, they are directed to the Saturn Web site. The second ad points to the image named Moon.jpg.&lt;br /&gt;                                         &lt;br /&gt;Related Posts:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-table-control-evens.html"&gt;asp.net table controls and events&lt;/a&gt;&lt;br /&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-webcontrols.html"&gt;forms in asp.net part one&lt;/a&gt; &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-with-webcontrols.html"&gt;two&lt;/a&gt; and &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-webcontrols-building-part-theree.html"&gt;three&lt;/a&gt;&lt;br /&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net.html"&gt;asp.net introduction&lt;/a&gt; and &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net-application.html"&gt;application creation&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5762828302547854183-4488636211437210224?l=aspdotnetcourse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetcourse.blogspot.com/feeds/4488636211437210224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-web-controls-adrotator.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/4488636211437210224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/4488636211437210224'/><link rel='alternate' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-web-controls-adrotator.html' title='ASP.NET Web Controls Adrotator and its events'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5762828302547854183.post-3082379182280207415</id><published>2009-09-29T23:01:00.000-07:00</published><updated>2009-09-29T23:09:02.223-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NETForms'/><title type='text'>ASP.NET Table Control and Evens</title><content type='html'>&lt;div style="text-align: justify;"&gt;In ASP.NET table control is used to produce a a table in a web page and we can add some events to it as shown here. We are going to use some &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-webcontrols-building-part-theree.html"&gt;web controls in active server pages dot net&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;A table is used to display information in a tabular format. A table consists of rows and columns. The intersection of a row and a column is called a cell. You can add a table to a Web Forms page by using the Table control in  asp.net. This control displays information statically by setting the rows and columns at design time. Also, you can program the Table control to display information dynamically at run time.&lt;br /&gt;&lt;br /&gt;You can add rows at design time by setting the Rows property, which represents a collection of TableRow objects; a TableRow object represents a row in the table. You can add cells to a table row by setting the Cells property of the TableRow object. The Cells property represents a collection of TableCell objects; a TableCell object represents a cell in a table row.&lt;br /&gt;&lt;br /&gt;Thus, to set rows and columns of a table at the design time, you first add the Table control to the form. Then, set the Rows property of the Table control to add TableRow objects. Finally, set the Cells property of the TableRow objects to add TableCells objects.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt; The steps are given as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Display the Properties window of the Table control.&lt;br /&gt;&lt;br /&gt;2. Click the ellipsis button for the Rows property of the Table control.&lt;br /&gt;&lt;br /&gt;3. In the TableRow Collection Editor dialog box, click Add to create a new row. A new row is created and its properties are displayed in the Properties pane of the dialog box.&lt;br /&gt;&lt;br /&gt;4. Verify that the row is selected in the Members list, and then click the ellipsis button for the Cells property to add a cell for the row.&lt;br /&gt;&lt;br /&gt;5. In the TableCell Collection Editor dialog box, click Add to create a new cell.&lt;br /&gt;&lt;br /&gt;You can also add the rows and columns (cells) to a table at run time programmatically.&lt;br /&gt;&lt;br /&gt;To do so, you first need to create the TableRow and TableCell objects:&lt;br /&gt;&lt;br /&gt;Dim Table1 as New Table()&lt;br /&gt;Dim TableRowObj As New TableRow()&lt;br /&gt;Dim TableCellObj As New TableCell()&lt;br /&gt;Then, you need to add the TableCell object to the TableRow object:&lt;br /&gt;TableRowObj.Cells.Add(TableCellObj)&lt;br /&gt;&lt;br /&gt;Finally, you need to add the TableRow object to the Table control.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Image control&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Image control allows users to display images in a Web Forms page and manage them at design time or at run time. After you add an Image control to a Web Forms page, you need to set the image to be displayed in the control. You can do so by using the ImageUrl property.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Button, LinkButton, and ImageButton controls&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;The Button control on a Web Forms page is used to perform an event, such as form submit, on the server. You can create three types of server control buttons:&lt;br /&gt;&lt;br /&gt;Button: Represents a standard button.&lt;br /&gt;&lt;br /&gt;LinkButton: Represents a button that can act as a hyperlink in a page. However, a LinkButton control causes the page to be submitted to the server.&lt;br /&gt;&lt;br /&gt;ImageButton: Represents a graphical button to provide a rich button appearance. You can set the ImageUrl property to point to a specific image.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Working with Events&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;in ASP.NET&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;A Web Forms application provides fast, dynamic, and user-interactive Web Forms pages. When users interact with different Web controls on a page, events are raised. In the traditional client forms or client-based Web applications, the events are raised and handled on the client side. However, in Web Forms applications, the events are raised either on the client or on the server, but are always handled on the server. ASP.NET server controls support only server-side events, while HTML server controls support both server-side and client-side events.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Round trips in active server pages :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Most Web pages require processing on the server. For example, consider an Orders Web page used to receive orders on the Web. When a user enters a value for the quantity of a product to be bought, the page must check on the server to see whether or not the quantity requested is available. This type of dynamic functionality is accomplished by handling server control events.&lt;br /&gt;&lt;br /&gt;Whenever a user interaction requires some kind of processing on the server, the Web Forms page is submitted to the server, processed, and then returned to the browser (client).This sequence is called a round trip.&lt;br /&gt;&lt;br /&gt;Most of the user interactions with the server controls result in round trips. Because a round trip involves sending the Web Forms page to the server and then displaying the processed form in the browser, the server control events affect the response time in the form.&lt;br /&gt;&lt;br /&gt;Therefore the number of events available in Web Forms server controls is limited, usually to Click events. The events that occur quite often, such as the OnMouseOver event, are not supported by server controls. However, some server controls support events that occur when the control's value changes.&lt;br /&gt;&lt;br /&gt;By default, only the Click event of the Button, LinkButton, and ImageButton server controls causes the form to be submitted to the server for processing — the form is said to be posted back to the server. The Change events associated with other controls are captured and cached and do not cause the form to be submitted immediately.&lt;br /&gt;&lt;br /&gt;When the form is posted back (as a result of a button click), all the pending events are raised and processed. No particular sequence exists for processing these Change events, such as TextChanged and CheckChanged on the server. The Click event is processed only after all the Change events are processed.&lt;br /&gt;&lt;br /&gt;You can set the change events of server controls to result in the form post back to the server. To do so, modify the AutoPostBack property to True.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Event handlers in asp.net&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;When the events are raised, you need to handle them for processing. The procedures that are executed when an event occurs are called event handlers. An event handler is associated with the corresponding event by using the WithEvents and Handles keywords. The WithEvents keyword is used to declare the control generating an event.&lt;br /&gt;&lt;br /&gt;For example, when you declare a control, say Image1 as 'Protected WithEvents Image1 As System.Web.UI.WebControls.Image', the WithEvents keyword specifies that Image1 is an object variable used to respond to events raised by the instance assigned to the variable. The Handles keyword is used to associate the event handler with the event, which is raised by the control.&lt;br /&gt;&lt;br /&gt;The control in turn is declared by using the WithEvents keywords.&lt;br /&gt;&lt;br /&gt;Event handlers are automatically created when you double-click the control in Design mode of the form. For example, the following code is generated when you double-click a Button control whose ID is RegisterButton. You can then write the code in the event handler to perform the intended task.&lt;br /&gt;&lt;br /&gt;Public Sub RegisterButton_Click(ByVal sender As System.Object,&lt;br /&gt;&lt;br /&gt;ByVal e As System.EventArgs) Handles RegisterButton.Click&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Related posts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-webcontrols.html"&gt;asp.net forms building part one&lt;/a&gt; &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-with-webcontrols.html"&gt;two&lt;/a&gt; and &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-webcontrols-building-part-theree.html"&gt;three&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5762828302547854183-3082379182280207415?l=aspdotnetcourse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetcourse.blogspot.com/feeds/3082379182280207415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-table-control-evens.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/3082379182280207415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/3082379182280207415'/><link rel='alternate' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-table-control-evens.html' title='ASP.NET Table Control and Evens'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5762828302547854183.post-4268755278049808372</id><published>2009-09-29T19:13:00.000-07:00</published><updated>2009-09-29T19:23:24.004-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NETForms'/><title type='text'>ASP.NET building Forms with  webcontrols part three</title><content type='html'>&lt;div style="text-align: justify;"&gt;ASP.NET web  forms can have web controls can be build and control at the server with the help of programming. We have previously discussed regarding &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-webcontrols.html"&gt;active server page forms with web controls part one&lt;/a&gt; and &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-with-webcontrols.html"&gt;asp.net forms part&lt;/a&gt; two and this post is in continuation of it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Using Web Controls:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can add ASP.NET server controls to a Web Forms page by using either of the following two features:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The Web Forms section of the toolbox&lt;/li&gt;&lt;li&gt;The ASP.NET code&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;You add controls from the toolbox in Design view of the Web Forms page (the ASPX file). The toolbox categorizes the different types of controls in separate tabs, such as Web Forms, HTML, Components, and Data. You can use the HTML tab to add HTML controls and use the Web Forms tab to add the ASP.NET server controls to Web Forms.&lt;br /&gt;&lt;br /&gt;However, to make the HTML controls available for coding at the server end, these controls need to be converted to server controls. To do so, right-click the HTML control on the page and select Run As Server Control from the context menu.&lt;br /&gt;&lt;br /&gt;While selecting between HTML and Web server controls, using Web server controls is preferred,because they provide a rich object model and are adaptable to multiple browsers depending on browser capabilities. However, HTML server controls are preferred when migrating from the existing ASP pages to ASP.NET pages, because, unlike Web server controls, HTML server controls map directly to HTML tags.&lt;br /&gt;&lt;br /&gt;You can also add a Web control to a page by using the ASP.NET code. You can access the ASP.NET code in the HTML view of the page (ASPX file).&lt;br /&gt;&lt;br /&gt;You can add ASP.NET server controls by using an Extensible Markup Language (XML) tag referenced as asp.&lt;br /&gt;&lt;br /&gt;You can also programmatically add a control at run time. The following V&lt;span style="font-weight: bold;"&gt;B.NET code snippet &lt;/span&gt;demonstrates how to add a TextBox control at run time:&lt;br /&gt;&lt;br /&gt;Dim TextBox1 as New TextBox()&lt;br /&gt;&lt;br /&gt;Controls.Add(TextBox1)&lt;br /&gt;&lt;br /&gt;Every control has specific properties and methods. You can set control properties to modify the appearance or behavior of controls. For example, you can set the font, color, and size of a control. You can use the control methods to perform a specific task, such as moving a control. You can set control properties at design times by using the Properties window or at run time by using the code. Every control has a property called ID that is used for the unique identification of the control. You can set the property of a control at run time by using the following &lt;span style="font-weight: bold;"&gt;syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ControlID.PropertyName=Value&lt;br /&gt;&lt;br /&gt;In this syntax:&lt;br /&gt;&lt;br /&gt;ControlID represents the ID property of the control.&lt;br /&gt;&lt;br /&gt;PropertyName represents the control property.&lt;br /&gt;&lt;br /&gt;Value represents the value assigned to PropertyName, which is a control's property.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;CheckBox and CheckBoxList controls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check boxes provide you with independent choices or options that you can select. You can add check boxes to a Web Forms page by using either the CheckBox control or the CheckBoxList control. The CheckBox control is a single check box that you can work with. On the other hand, the CheckBoxList control is a collection of several check boxes.&lt;br /&gt;&lt;br /&gt;After you add the CheckBoxList control, you need to add a list of items to it. To do so:&lt;br /&gt;&lt;br /&gt;1. Display the Properties window of the CheckBoxList control.&lt;br /&gt;&lt;br /&gt;2. Click the ellipsis button for the Items property of the CheckBoxList control.&lt;br /&gt;&lt;br /&gt;3. In the ListItem Collection Editor dialog box, click Add to create a new item. A new item is created and its properties are displayed in the Properties pane of the dialog box.&lt;br /&gt;&lt;br /&gt;4. Verify that the item is selected in the Members list, and then set the item properties. Each item is a separate object and has following properties:&lt;br /&gt;&lt;br /&gt;Text: Represents the text to be displayed for the item in the list.&lt;br /&gt;&lt;br /&gt;Value: Represents the value associated with the item without displaying it. For example, you can set the Text property of an item as the city name and the Value property to the postal code of the city. Thus, you can keep the Text and Value properties different when you do not want the actual value to be displayed&lt;br /&gt;to the user.&lt;br /&gt;&lt;br /&gt;Selected: A Boolean value that indicates whether or not the item is selected.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;RadioButton and RadioButtonList controls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Radio buttons provide a set of choices or options that you can select. You can add radio buttons to a Web Forms page by using either the RadioButton control or the RadioButtonList control. The RadioButton control is a single radio button. On the other hand, the RadioButtonList control is a collection of radio buttons. Radio buttons are seldom used singly.&lt;br /&gt;&lt;br /&gt;Usually, you use radio buttons in a group. A group of radio buttons provides a set of mutually exclusive options — you can select only one radio button in a group. You can group a set of radio buttons in two ways:&lt;br /&gt;&lt;br /&gt;Place a set of RadioButton controls on the page and assign them manually to a group. To do so, you can use the GroupName property.&lt;br /&gt;&lt;br /&gt;Place a RadioButtonList control on the page; the radio buttons in the control are automatically grouped.&lt;br /&gt;&lt;br /&gt;After you add a RadioButtonList control, you need to add the individual radio buttons.&lt;br /&gt;&lt;br /&gt;You can do so by using the Items property in the same way as you do for the CheckBoxList control.&lt;br /&gt;&lt;br /&gt;You add the items to a RadioButtonList control at run time in the same way as you add items to a CheckBoxList control. The following VB.NET code snippet demonstrates how to add items to a RadioButtonList control programmatic ally:&lt;br /&gt;&lt;br /&gt;Dim RadioButtonList1 As New RadioButtonList()&lt;br /&gt;Controls.Add(RadioButtonList1)&lt;br /&gt;RadioButtonList1.Items.Add("Radio1")&lt;br /&gt;&lt;br /&gt;You can use the Checked property of the RadioButton control to identify whether or not the control is selected. For the RadioButtonList control, you can access the index of the selected item by using the SelectedIndex property and access the selected item by using the SelectedItem property of the control.&lt;br /&gt;&lt;br /&gt;Related Posts:&lt;br /&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-webcontrols.html"&gt;&lt;br /&gt;Building forms with asp.net part one&lt;/a&gt;  and &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-with-webcontrols.html"&gt;two &lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5762828302547854183-4268755278049808372?l=aspdotnetcourse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetcourse.blogspot.com/feeds/4268755278049808372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-webcontrols-building-part-theree.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/4268755278049808372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/4268755278049808372'/><link rel='alternate' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-webcontrols-building-part-theree.html' title='ASP.NET building Forms with  webcontrols part three'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5762828302547854183.post-7418229389140552529</id><published>2009-09-29T18:59:00.000-07:00</published><updated>2009-09-29T19:03:12.724-07:00</updated><title type='text'>ASP.NET Forms Building with webcontrols part two</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-webcontrols.html"&gt;Building forms with ASP.NET&lt;/a&gt; with web controls  is introduced in the previous post and here is the continuation for that.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Web Forms components&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;An &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net.html"&gt;ASP.NET&lt;/a&gt; Web Forms page consists of a user interface and programming logic. The user interface helps display information to users, while the programming logic handles user interaction with the Web Forms pages. The user interface consists of a file containing a markup language, such as HTML or XML, and server controls. This file is called a page and has .aspx as its extension.&lt;br /&gt;&lt;br /&gt;The functionality to respond to user interactions with the Web Forms pages is implemented by using programming languages, such as Visual Basic .NET and C#. You can implement the programming logic in the ASPX file or in a separate file written in any CLR-supported language, such as Visual Basic .NET or C#. This separate file is called the code behind file and has either .aspx.cs or .aspx.vb as its extension depending on the language used. Thus, a Web Forms page consists of a page (ASPX file) and a code behind file (.aspx.cs file or .aspx.vb file).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Web Forms server controls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can design a Web Forms page by using controls called Web Forms server controls.&lt;br /&gt;You can program the functionality to be provided for the server controls. The server controls are different from the usual Windows controls because they work within the ASP.NET Framework. The different types of server controls are described as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;HTML server controls:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These controls refer to the HTML elements that can be used in server code. The HTML elements can be converted into HTML server controls. To do so, you need to use attributes, such as ID and RUNAT, in the tags that are used to add the HTML controls.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;ASP.NET server controls:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These controls do not map one-to-one to HTML server controls. ASP.NET server controls include traditional form controls, such as text boxes and buttons, and complex controls, such as tables.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Validation controls:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These controls are used to validate users' input.&lt;br /&gt;&lt;br /&gt;Validation controls can be attached to input controls to check the values entered.&lt;br /&gt;&lt;br /&gt;User controls: These controls are created from the existing Web Forms pages and can be used in other Web Forms pages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Creating Web Forms Application Projects&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Before you use any server control to design a Web Forms page, you need to create an &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net-application.html"&gt;ASP.NET Web Application project&lt;/a&gt;. You can create either a Visual Basic .NET or a C# Web Application project, depending on the programming language you want to use. A Web Application project is always created on a Web server.&lt;br /&gt;&lt;br /&gt;When you create a Web Application project, the Application Wizard creates the necessary project files along with the page file and code behind class file as described:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;WebForm1.aspx:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This page file consists of the user interface for the visual representation of the Web Forms page. The file has two views, Design and HTML. The default view is Design view.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Design view:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This view represents the user interface for the Web Forms page. You can place controls directly from the toolbox to the Web Forms page in Design view. By default, the page layout of the Web Forms page is GridLayout. This layout enables you to accurately position controls on the page by using the absolute coordinates (X,Y) of the page. In addition to GridLayout, ASP.NET provides another page layout, which is called FlowLayout.&lt;br /&gt;&lt;br /&gt;In FlowLayout, you can add text to the page directly in Design mode. You can change the page layout from the default GridLayout to FlowLayout. To do so, right-click the page in Design view and select Properties from the context menu. Next, in the DOCUMENT Property Pages dialog box, from the Page Layout list box, select FlowLayout.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;HTML view:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This view represents the ASP.NET code for the Web Forms page. To open HTML view, click the HTML tab in the designer. When the Web Application project is a Visual Basic project or a C# project, the scripting language used in the HTML page is Visual Basic or C#, respectively.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;WebForm1.aspx.cs or WebForm1.aspx.vb: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This file consists of the code to implement programming logic in the Web Forms page. You can view the code file by using the Show All Files icon in the Solution Explorer window. If the Web Application project is a Visual Basic project, you use Visual Basic .NET to implement the programming logic and the code file is called the WebForm1.aspx.vb file. Conversely, if the Web Application project is a C# project, you use C# to implement the programming logic and the code file is called the WebForm1.aspx.cs file.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5762828302547854183-7418229389140552529?l=aspdotnetcourse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetcourse.blogspot.com/feeds/7418229389140552529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-with-webcontrols.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/7418229389140552529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/7418229389140552529'/><link rel='alternate' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-with-webcontrols.html' title='ASP.NET Forms Building with webcontrols part two'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5762828302547854183.post-8910849076374199500</id><published>2009-09-29T18:52:00.000-07:00</published><updated>2009-09-29T18:58:55.158-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NETForms'/><title type='text'>ASP.NET Forms Building with webcontrols</title><content type='html'>&lt;div style="text-align: justify;"&gt;ASP.NET can be used to build forms with web controls as explained below.&lt;br /&gt;&lt;br /&gt;The increased use of the Internet in the business scenario has shifted focus from desktop applications to Web-based applications. Because of this shift in focus, a Web development technology is needed that can combine the capabilities of different languages and simplify application development.&lt;br /&gt;&lt;br /&gt;Microsoft's response to this need is the release of ASP.NET, which provides a common Web development platform.&lt;br /&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net.html"&gt;&lt;br /&gt;ASP.NET&lt;/a&gt; is a powerful programming platform that is used to develop and run Web based&lt;br /&gt;applications and services. ASP.NET provides improved features, such as convenient debugging tools, over the earlier Web development technologies. ASP.NET provides a rich set of controls to design Web pages. Visual Studio .NET provides visual WYSIWYG (What You See Is What You Get) HTML editors. Therefore, you can design Web pages by simply dragging and dropping the controls.&lt;br /&gt;&lt;br /&gt;ASP.NET supports the C#, Visual Basic .NET, and JScript .NET languages, all of which you can use to build programming logic for your Web pages. You can choose which one of these languages to use based on your proficiency on a particular language. One of the most important features of ASP.NET is that it provides separate files for page presentation and programming logic, which simplifies Web application development.&lt;br /&gt;&lt;br /&gt;Introducing ASP.NET Web Forms The ASP.NET Web Forms technology is used to &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net-application.html"&gt;create asp.net programmable Web pages&lt;/a&gt; that are dynamic, fast, and interactive. Web pages created using ASP.NET Web Forms are called ASP.NET Web Forms pages or simply Web Forms pages.&lt;br /&gt;&lt;br /&gt;ASP.NET uses the .NET Framework and enables you to create Web pages that are browser independent. In addition to being browser independent, the following are some of the features that may lead you to select Web Forms over other technologies to create dynamic Web pages:&lt;br /&gt;&lt;br /&gt;Web Forms can be designed and programmed using Rapid Application Development (RAD) tools.&lt;br /&gt;&lt;br /&gt;Web Forms support a rich set of controls and are extensible, because they provide support for user-created and third-party controls.&lt;br /&gt;&lt;br /&gt;Any of the .NET Framework language can be used to program the ASP.NET Web Forms pages.&lt;br /&gt;&lt;br /&gt;ASP.NET uses the Common Language Runtime (CLR) of the .NET Framework and thus benefits from its features, such as type safety and inheritance.&lt;br /&gt;&lt;br /&gt;Related Posts:&lt;br /&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net-application.html"&gt;&lt;br /&gt;Creation of asp.net application&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5762828302547854183-8910849076374199500?l=aspdotnetcourse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetcourse.blogspot.com/feeds/8910849076374199500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-webcontrols.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/8910849076374199500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/8910849076374199500'/><link rel='alternate' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/aspnet-forms-building-webcontrols.html' title='ASP.NET Forms Building with webcontrols'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5762828302547854183.post-1097565813988578478</id><published>2009-09-29T08:38:00.000-07:00</published><updated>2009-09-29T09:14:20.192-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Active Server Pages dot net Application Creation</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class="" style="display: block;" id="formatbar_JustifyFull" title="Justify Full" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 13);ButtonMouseDown(this);"&gt;&lt;img src="http://www.blogger.com/img/blank.gif" alt="Justify Full" class="gl_align_full" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;Creating an ASP.NET Application can be done in different ways as explained below.This is in continuation with the &lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net.html"&gt;introduction to asp.net&lt;/a&gt; we have discussed in the previous post.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Use a text editor:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;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:\inetpub\wwwroot. Then, to display the output of the Web page in Internet Explorer, you simply need to type http://localhost/.aspx in the Address box.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Use the VS.NET IDE for creating asp.net application:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;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#.&lt;br /&gt;&lt;br /&gt;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 pagespecific attributes, such as language. The syntax is given as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;%@ Page attribute = value %&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To specify the language as VB for any code output to be rendered on the page, use the following line of code:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;%@ Page Language = "VB" %&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This line indicates that any code in the block, &lt;span style="font-weight: bold;"&gt;&lt;% %&gt;&lt;/span&gt;, on the page is compiled by using VB.&lt;br /&gt;&lt;br /&gt;To render the output on your page, you can use the Response.Write() method.&lt;br /&gt;&lt;br /&gt;Creating a Visual Basic Web Application&lt;br /&gt;&lt;br /&gt;You can create an ASP.NET application using Visual Basic by creating a Visual Basic&lt;br /&gt;Web Application project. To do so, complete the following steps:&lt;br /&gt;&lt;br /&gt;1. Select File ® New ® Project. The New Project dialog box appears.&lt;br /&gt;&lt;br /&gt;2. Select Visual Basic Projects from the Project Types pane.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Deploying an ASP.NET Web Application&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After creating and testing your ASP.NET Web applications, the next step is deployment.&lt;br /&gt;Deployment is the process of distributing the finished applications (without the source code) to be installed on other computers.&lt;br /&gt;&lt;br /&gt;In Visual Studio .NET, the deployment mechanism is the same irrespective of the programming language and tools used to create applications. Here, you'll deploy the application created by using VB. To do so, follow these steps:&lt;br /&gt;&lt;br /&gt;1. Open the Web application project that you want to deploy. In this case, open the SampleVB project.&lt;br /&gt;&lt;br /&gt;2. Select File ® Add Project ® New Project to open the Add New Project dialog box.&lt;br /&gt;&lt;br /&gt;3. From the Project Types pane, select Setup and Deployment Projects.&lt;br /&gt;&lt;br /&gt;From the Templates pane, select Web Setup Project.&lt;br /&gt;&lt;br /&gt;4. Change the default name of the project. In this case, change it to "SampleVBDeploy."&lt;br /&gt;&lt;br /&gt;5. Click OK to complete the process. The project is added in the Solution Explorer window.&lt;br /&gt;&lt;br /&gt;Related Post&lt;br /&gt;&lt;br /&gt;&lt;a href="http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net.html"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Active Server Pages in dot net an introduction&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5762828302547854183-1097565813988578478?l=aspdotnetcourse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetcourse.blogspot.com/feeds/1097565813988578478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/1097565813988578478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/1097565813988578478'/><link rel='alternate' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net-application.html' title='Active Server Pages dot net Application Creation'/><author><name>suresh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5762828302547854183.post-6995564753732560936</id><published>2009-09-29T08:15:00.000-07:00</published><updated>2009-09-29T08:21:08.120-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Active Server Pages dot net Introduction</title><content type='html'>&lt;div style="text-align: justify;"&gt;Active server pages at dot net platform are used to create enriched web applications.&lt;br /&gt;&lt;br /&gt;ASP.NET, the next version of ASP, is a programming framework that is used to create enterprise-class Web applications. The enterprise-class Web applications are accessible on a global basis, leading to efficient information management. However, the advantages that ASP.NET offers make it more than just the next version of ASP.&lt;br /&gt;&lt;br /&gt;ASP.NET is integrated with Visual Studio .NET, which provides a GUI designer, a rich toolbox, and a fully integrated debugger. This allows the development of applications in a What You See is What You Get (WYSIWYG) manner. Therefore, creating ASP.NET applications is much simpler.&lt;br /&gt;&lt;br /&gt;Unlike the ASP runtime, ASP.NET uses the Common Language Runtime (CLR) provided by the .NET Framework. 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.&lt;br /&gt;&lt;br /&gt;In addition to simplifying the designing of Web applications, the .NET CLR offers many advantages. Some of these advantages are listed as follows.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Improved performance:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;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&lt;br /&gt;the Microsoft Intermediate Language (MSIL).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Flexibility:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Configuration settings:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Security:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;In addition to this list of advantages, the ASP.NET framework makes it easy to migrate from ASP applications.&lt;br /&gt;&lt;br /&gt;In the next post we are going to learn how do we start a asp.net application.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5762828302547854183-6995564753732560936?l=aspdotnetcourse.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetcourse.blogspot.com/feeds/6995564753732560936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/6995564753732560936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5762828302547854183/posts/default/6995564753732560936'/><link rel='alternate' type='text/html' href='http://aspdotnetcourse.blogspot.com/2009/09/active-server-pages-dot-net.html' title='Active Server Pages dot net Introduction'/><author><name>java techniques</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
