asp.net

How to use a Where clause in SQL Select statements.

In many cases, the Where clause is the most important part of the Select statement. Web developer can find records that match several conditions using the And keyword, and he/she can find records that match any one of a series of conditions using the Or keyword. Web developer can also specify greater-than and less-than comparisons by using the …

Learn more

How to improve SQL Select statement

The following is an example of typical and inefficient Select statement. It works with the Clients table:

SELECT * FROM Clients

-The asterisk (*) retrieves all the columns in the table. This isn’t the best approach for a large table if a Web developer does not need all the information. It increases the amount of data that has to be …

Learn more

How to use SQL Select statement

Web developer can retrieve one or more rows of data, by using SQL select statement which has the following structure:

SELECT [columns]
FROM [tables]
WHERE [search_condition]
ORDER BY [order_expression ASC | DESC]

Related TutorialsHow to view the foreign key attributes of a relationship from GUI in SQL server
How to hide column names in the Diagram Pane in SQL server
How to add a table …

Learn more

HtmlInputText class properties and its descriptions

The HtmlInputText control allows programmatic access to the HTML <input type= text> and <input type= password> elements on the server. The MaxLength property specifies the maximum number of characters that can be entered in the text box. The Size property allows Web developer to specify the width of the text box and he/she can use the Value property …

Learn more

HtmlInputSubmit class properties and its descriptions

The HtmlInputSubmit control allows programmatic access to the HTML <input type=submit> element on the server. The HtmlInputSubmit class is derived from the HtmlInputButton class and is used to create a button control on a Web page that submits a form. The HtmlInputSubmit control is often used with the HtmlInputReset control, which resets form controls to their initial values.

Namespace: …

Learn more

HtmlInputReset class properties and its descriptions

The HtmlInputReset control allows programmatic access to the HTML <input type=reset> element on the server. The HtmlInputReset class is derived from the HtmlInputButton class and is used to create a button control on a Web page that resets form controls to their initial values. The HtmlInputReset control is often used with the HtmlInputSubmit control, which is used to …

Learn more

HtmlInputRadioButton class properties and its descriptions

The HtmlInputRadioButton control allows programmatic access to the HTML <input type= radio> element on the server. Web developers use the HtmlInputRadioButton control to create a radio button on a Web page. The HtmlInputRadioButton control does not provide built-in functionality to display a caption for the radio button and Web developers have to use literal text in the Web …

Learn more

HtmlInputImage class properties and its descriptions

Web developers can use this class to programmatically access the HTML <input type= image> element on the server and to control the action associated with the HtmlInputImage control by providing an event handler for the ServerClick event. The coordinates where the user clicks an HtmlInputImage control can be determined by using the ImageClickEventArgs.X and ImageClickEventArgs.Y properties of the …

Learn more

HtmlInputHidden class properties and its descriptions

The HtmlInputHidden control allows programmatic access to the HTML <input type=hidden> element on the server. Web developers can use this control to embed information that is hidden from the user within a <form> element. This information is sent when the Web page is posted back to the server. The HtmlInputHidden control provides a ServerChange event that is raised …

Learn more

HtmlInputFile class properties and its descriptions

Web developers can use this class to programmatically access the HTML <input type= file> element on the server and to use the control to handle uploading binary or text files from a browser client to the server. The HtmlInputFile control is designed to be used only in postback scenarios and not in asynchronous postback scenarios during partial-page rendering. …

Learn more