Asp.net concepts

Source: Internet
Author: User

1. A querystring is a field name and value added to a HTTP request, as shown in
The italicized part of the following URL (the text following the question mark ):
Query stringIs the name and value of the field added after the HTTP request, as shown in the URL italic section below (content after the question mark ):

Http://www.wroxunited.com/PlayerInformation.aspx?Playerlastname = Smith.

2. the enlightened way is to use one data-bound control to create the parameters for another data-bound control. These are called controlparameters.

Controlparameter: it is actually a control.CodeIt should be rewritten to <asp: controlparameter> to use the value of a specific control.
The controlid of this control points to the gridview1 control, indicating that the parameters should be obtained from the gridview1 control. The value of the name attribute refers to replacing the corresponding parameters in the SQL command, the value of the propertyname attribute indicates the currently selected value of gridview1.

<Asp: controlparameter controlid = "gridview1" defaultvalue = "1" name = "fixtureid" propertyname = "selectedvalue" type = "int32"/>

Selectcommand = "select * Form [fixtrues] Where ([fixtureid] = @ fixtureid )"

The at symbol (@) represents a parameter.

Note that the plus sign (+) is used to connect different parts of the string.Hyphen

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.