RSSAll Entries Tagged With: "ASP.NET"

ASP.NET Label control

The label control in ASP.NET is the most commonly used control on a webform. Label controls are rendered as static text and end users cannot change its value.
Adding label to a webform:

<asp:Label id="identifier" runat="server" Base attributes Text="Some label here"/>

The runat specifies that the control is a server control. Must be set to “server”. The text [...]

Declaring server controls in ASP.NET

Below are examples showing the syntax for declaring controls or adding controls to webforms.
Controls using beginning and end tags:

<asp:control
runat="server"
id = identifier
attributes
></asp:control>

Controls with self closing tags

<asp:control
runat="server"
id = identifier
attributes
/>

Declaring subcontrols within controls

<asp:control runat="server" id = identifier attributes>
<asp:subcontrol runat="server" id = identifier attributes>value</asp:subcontrol>
<asp:subcontrol runat="server" id = identifier attributes>value</asp:subcontrol>
<asp:subcontrol runat="server" id = identifier attributes>value</asp:subcontrol>
</asp:control>

Control types in ASP.NET 2.0

HTML server controls
HTML server controls are controls that are similar to the HTML elements and have syntax similar to the HTML syntax.

ASP.NET server controls
ASP.NET server controls are feature-rich controls that are robust and have been abstracted beyond the HTML server
controls.

Validation controls
Validation controls are controls that have inbuilt logic that enable editing (testing) of user input. [...]

Shut Down, Restart and Log Off PC using .NET, C#

Using .NET and C#.NET, We can perform Shut Down, Restart and Log off operation on current PC.
In .NET Framework we have a namespace Using System.Diagnostics which has the required class and methods to perform these operations from a .NET application running on a current PC.
Please Use the below buttons to perform Shutdown, Restart and [...]