ASP.Net – Standard Server Control – Datasource Server Control

Standard
Control Group Control Name Info
Server   Control (Standard) AdRotator This control helps to display the web page advertisement in random

order when the page refresh.

<asp:AdRotator ID=”NameOfCtrl”   runat=”server” target=”_self” Advertisementfile=”~/appdata/advertisments.xml”></asp:AdRotator>

Structure of   xml file:

<Advertisements>

<Ad>

<ImageUrl>URL of image to display for Adv1</ImageUrl>

<height>Height of the image</height>

<width>width of the image</width>

<NavigateUrl>URL of page to link to for Adv1</NavigateUrl>

<AlternateText>Text to show as a ToolTip for   Adv1</AlternateText>

<Keyword>Keyword used to filter for Adv1</Keyword>

<Impressions>Relative importance of Adv1</Impressions>

<CustomInformation>Custom Data about   Adv1</CustomInformation>

</Ad>

</Advertisements>

BulletedList This control helps to display the same group of contents as bulleted   list.

We can create the bulleted list either with static list items controls   or load dynamic content using data source.

 

<asp:BulletedList ID=”NameOfCtrl”   runat=”server”

BulletStyle=”Circle” DisplayMode=”LinkButton”   onClick=”NameOfCtrl_Click”>

<asp:ListItem value=”http://kural.muthu.org“>Thirukkural</asp:ListItem>

<asp:listItem value=”http://www.lakshmansruthi.com/tamilbooks/bharathiar/index.asp“>Bharathi</asp:ListItem>

<asp:ListItem Value=”http://www.tamilkalanjiyam.com/literatures/bharathidasan/bhrathidasan_kavitaikal_II.html”>Bharathidasan</asp>

</asp:BulletedList>

Button This server control helps to initiate particular task in the webpage.

 

<asp:Button ID=”NameOfCtrl”   runat=”server” Text=”Button”   onClick=”NameOfCtrl_Click()”></asp:Button>

Calendar This server control helps to choose the date from it. Many style   properties available to make this control in stylised and customised format.

 

<asp:Calendar ID=”NameOfCtrl”   runat=”server” ></asp:Calendar>

CheckBox This control helps to select the combination of options when use more   than one. ‘Checked’ properties of the control.

<asp:CheckBox ID=”NameOfCtrl”   runat=”server” ></asp:CheckBox>

CheckBoxList This control helps to select multiple selection from the group

<asp:CheckBoxList ID=”NameOfCtrl”   runat=”server”></asp:CheckBoxList>

DropDownList <asp:DropDownList ID=”NameOfCtrl”   runat=”server”></asp:DropDownList>
FileUpload <asp:FileUpload ID=”NameOfCtrl”   runat=”server”></asp:FileUpload>
HiddenField This control helps to store the variable or object for further use.

<asp:HiddenField ID=”NameOfCtrl”   runat=”server”></asp:HiddenField>

HyperLink This control helps to link the web pages one to another.

<asp:HyperLink ID=”NameOfCtrl”   runat=”server” NavigateUrl=”~/app/Testpage.aspx”>Click   me</asp:HyperLink>

Image <asp:Image ID=”NameOfCtrl”   runat=”server”></asp:Image>
ImageButton <asp:ImageButton ID=”NameOfCtrl”   runat=”server”></asp:ImageButton>
ImageMap <asp:ImageMap ID=”NameOfCtrl”   runat=”server”></asp:ImageMap>
Label <asp:Label ID=”NameOfCtrl”   runat=”server” Text=”Label”></asp:Label>
LinkButton <asp:LinkButton ID=”NameOfCtrl”   runat=”server”>LinkButton</asp:LinkButton>
ListBox <asp:ListBox ID=”NameOfCtrl”   runat=”server”></asp:ListBox>
Literal <asp:Literal ID=”NameOfCtrl”   runat=”server”></asp:Literal>
Localize <asp:Localize ID=”NameOfCtrl”   runat=”server”></asp:Localize>
MultiView <asp:MultiView ID=”NameOfCtrl”   runat=”server”></asp:MultiView>
Panel <asp:Panel ID=”NameOfCtrl”   runat=”server”></asp:Panel>
PlaceHolder <asp:PlaceHolder ID=”NameOfCtrl”   runat=”server”></asp:PlaceHolder>
RadioButton This control helps to select only one option if we have multiple   options in the group.

<asp:RadioButton ID=”NameOfCtrl”   runat=”server” GroupName=”grpAgeGroup”></asp:RadioButton>

RadioButtonList <asp:RadioButtonList ID=”NameOfCtrl”   runat=”server”></asp:RadioButtonList>
Substitution <asp:Substitution ID=”NameOfCtrl”   runat=”server”></asp:Substitution>
Table <asp:Table ID=”NameOfCtrl”   runat=”server”></asp:Table>
TextBox This control helps to get the user input and populate the data from   the source.

<asp:TextBox ID=”NameOfCtrl”   runat=”server”></asp:TextBox>

View <asp:View ID=”NameOfCtrl”   runat=”server”></asp:View>
Wizard <asp:Wizard ID=”NameOfCtrl”   runat=”server”>

<WizardSteps>

<asp:WizardStep ID=”WizardStep1″   title=”Step 1″ runat=”server”></asp:WizardStep>

<asp:WizardStep ID=”WizardStep2″   title=”Step 2″ runat=”server”></asp:WizardStep>

</WizardSteps>

</asp:Wizard>

Xml <asp:Xml ID=”NameOfCtrl”   runat=”server”></asp:Xml>

 

Server Control

(Data Source)

<asp:AccessDataSourceID=”AccessDataSource1″runat=”server”></asp:AccessDataSource>
<asp:Chart ID=”Chart1″   runat=server>

<Series>

<asp:Series Name=”Series1″></asp:Series>

</Series>

<ChartAreas>

<asp:ChartArea Name=”ChartArea1″></asp:ChartArea>

</ChartAreas>

</asp:Chart>

<asp:DataList ID=”DataList1″   runat=”server”></asp:DataList>
<asp:DataPager ID=”DataPager1″   runat=”server”></asp:DataPager>
<asp:DetailsView ID=”DetailsView1″   runat=”server” Width=”125px” Height=”50px”></asp:DetailsView>
<asp:EntityDataSource ID=”EntityDataSource1″   runat=”server”></asp:EntityDataSource>
<asp:FormView ID=”FormView1″   runat=”server”></asp:FormView>
<asp:GridView ID=”GridView1″   runat=”server”></asp:GridView>
<asp:LinqDataSource ID=”LinqDataSource1″   runat=”server”></asp:LinqDataSource>
<asp:ListView ID=”ListView1″   runat=”server”></asp:ListView>
<asp:ObjectDataSource ID=”ObjectDataSource1″   runat=”server”></asp:ObjectDataSource>
<asp:Repeater ID=”Repeater1″   runat=”server”></asp:Repeater>
<asp:SiteMapDataSource

ID=”SiteMapDataSource1″ runat=”server”></asp:SiteMapDataSource>

<asp:SqlDataSource ID=”SqlDataSource1″   runat=”server”></asp:SqlDataSource>
<asp:XmlDataSource ID=”XmlDataSource1″   runat=”server”></asp:XmlDataSource>
<asp:QueryExtender ID=”QueryExtender1″   runat=”server”></asp:QueryExtender>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s