Textbox Properties
In this article I will be talking about the few most commonly used properties of the textbox control. Some of the properties are similar as the label control which you can find here or on the mirror link
Rest of the properties I will deal in this article
Property Purpose
ID …
–>
Changing Label Properties at run time
To change the properties of the label at run time we need a label whose properties we will change and an event on which we can see the changes that we have made are applied so to solve the purpose of an event I have taken a command button or button whose click event will work for as the triggering event.
A Design view is shown here.
There are three controls:
And following changes are made to their properties.
Label1
ID: lbl_Name
Backcolor: Aqua
BorderColor: #660066
BorderStyle: …
Using the window.open method by Gaurav Arora
The syntax of the window.open method is given below:
open (URL, windowName[, windowFeatures])
URL
This is the URL of the page which open in the new window.
It could be blank.
windowName
A name to be given to the new window.
The name can be used to refer this window again.
windowFeatures
It contains the various window
features for the popup window i.e. status bar, address bar etc
The following lines of code, open a new browser window with standard features :
window.open (“http://interview.msdotnetheaven.com”,”MsDn Interview Questions”);
Changing the features of the Popup
By using …
A Lambda expression is nothing but an Anonymous Function, can contain expressions and statements. Lambda expressions can be used mostly to create delegates or expression tree types. Lambda expression uses lambda operator => and read as ‘goes to’ operator.
Left side of this operator specifies the input parameters and contains the expression or statement block at the right side.
Example: myExp = myExp/10;
Now, let see how we can assign the above to a delegate and create an expression tree:
delegate int myDel(int intMyNum);
static void Main(string[] args)
{
//assign lambda expression to a delegate:
myDel myDelegate = …
Directive Syntax @ Control
The @Control directive is used in an Asp.Net user controls. The @Control directive helps us to define control-specific attributes to be used by the ASP.NET control parser and compiler Hence it can be used only with .ascx (User Control) files.
The attributes of @Control directives are
a. Language: This Attribute is same as we read in the Page directive.
Value: Is a valid string which can represent any .NET-supported language, including VB || C# || Pearl || Jscript || any other .NET
Purpose: Tell the compiler about …