Skip to main content

Posts

Showing posts from January, 2017

ASP.NET - Client Side

ASP.NET - Client Side ASP.Net client side coding has two aspects: ·          Client side scripts: that would run on the browser and in turn would speed up the execution of page. For example, client side data validation which can catch invalid data and warn the user accordingly without making a round trip to the server. ·          Client side source code: that the ASP.NET pages generate. For example, the HTML source code of an ASP.NET page contains a number of hidden fields and automatically injected blocks of JavaScript code, which keeps information like view state or does other jobs to make the page work. Client Side Scripts: All ASP.Net server controls allow calling client side code written using JavaScript or VBScript. Some ASP.Net server controls use client side scripting to provide responses to the users without posting back to the server, for example, the validation controls, which we...

Image Control:

The image control is used for displaying images on the web page, or some alternative text, if the image is not available. Basic syntax for an image control: <asp:Image ID="Image1" runat="server"> It has the following important properties: Property Description AlternateText Alternate text to be displayed ImageAlign Alignment options for the control ImageUrl Path of the image to be displayed by the control

HyperLink Control

The HyperLink control is like the HTML <a> element. Basic syntax for a hyperlink control: <asp:HyperLink ID="HyperLink1" runat="server">    HyperLink </asp:HyperLink> It has the following important properties: Property Description ImageUrl Path of the image to be displayed by the control NavigateUrl Target link URL Text The text to be displayed as the link Target The window or frame which will load the linked page.

Bulleted lists and Numbered lists

The bulleted list control creates bulleted lists or numbered lists. These controls contain a collection of ListItem objects that could be referred to through the Items property of the control. Basic syntax of a bulleted list: <asp:BulletedList ID="BulletedList1" runat="server"> </asp:BulletedList> Common Properties of the Bulleted List: Property Description BulletStyle This property specifies the style and looks of the bullets, or numbers. RepeatDirection It specifies the direction in which the controls to be repeated. The values available are Horizontal and Vertical. Default is Vertical RepeatColumns It specifies the number of columns to use when repeating the controls; default is 0.