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