3
Web ,
Microsoft Visual Studio Web , . ,
.
:
, . " ". GridView.
:
:
.
, , ( , )
3.1.3 :
. Microsoft Visual Studio 2010.
1.
2. GridView
3. GridView, (, ).
4. GridView, ( , ).
5. , ( , )
6. .
7. , . , .
|
|
8. , .
1. GridView , , , ( Visible True)
2. (HiddenField)
3. , GridView
4. GridView
5. GridView
6. Panel
7. Web , SqlCommand SqlConnection
8. Web DataSet DataTable
3.3 :
1. , . Microsoft Visual Studio 2005 Team System / . . .: , 2003. 678 .
2. , ., . Microsoft Visual Studio 2008 / . , . . .: -, 2009. 547 .
3. Visual Studio 2010 // MSDN ( ) [ ]. . . : http://msdn.microsoft.com/ru-ru/library/dd831853(VS.100).aspx. - . .
, " .
, , .
WebOkvedEdit.
WebForm1 HTML .
3.1
GridView1 . GridView1 AutoGenerateSelectButton True.
Panel3, GridView2 . , ScrollBars .
3.2
CheckBox1 " ", TextBox1 Label2. ForeColor , .
.
Label1 Button13. Text " ", Visible True.
GridView1 GridView2 "", -, "".
3.3
.
3.4
.
|
|
3.5
GridView1 AllowPaging True, PageSize 8.
GridView1 DataKeyNames idUl ( ). . .
idUl Visible False. .
3.6
HiddenField, Name DateField.
GridView1. SQL, .
3.7
. IdUl. .
3.8 Id
SelectedValue , DataKeyNames. , , . , .
.
3.9 IsDate
CheckBox1.
DataField, .
3.10 Date
.
3.11
. IdUlOkved . , , DataFormatString {0:d}. Main ItemStyle HorizontalAlign Center.
GridView2 DataKeYNames IdUlOkved. , IdUlOkved , .
.
3.12
, DataField. null, , . DateChecking().
, DataField, , . , Label2.
LinesCount(), GridView2 , , . , , " ". , , GridView2 .
SelectedIndexChanged GridView1.
, . . , , .
|
|
3.13
3.14
HTML .
Panel2 HTML, HTML .
3.15
.
3.16
, Label4, Align center, Font ForeColor .
3.17 Label4
HTML, Literal1, Style .
3.18
HTML Panel4 GridView3, , Okved. TextBox " " , , TextBox.
HTML Panel1, .
Panel4 Panel1 HorizontalAlign Center. Visible Panel1, Panel2 Panel4 False. ( Width) Panel4 400.
3.19
NameOkvedField, Okved.
GridView3 SqlDataSource3 .
3.20 Select
NameOkvedField, .
GridView3 .
3.21 GridView3
, GridView3 ButtonField "". ButtonType CommandName .
3.22 GridView3
AllowPaging True PageSize 3.
GridView3 .
3.23 GridView3
" ".
, , LIKE .
"" , RowCommand GridView3.
"" "", ( Panel1).
|
|
, "" TexBox . "" .
Page_Load.
, , . , NameOkvedField null.
, Panel2 ( ).
, ( DateField ).
3.24 ,
Icons, "", "" "". " .rar". : → . : → .
.
3.25
GridView2 "", "" "" ButtonField. ButtonType Image ImageUrl .
3.26 ""
"" .
3.27 ""
, CommandName Select, Delete, Insert Update. , . CommandName , , RowCommand.
"" "". GridView2 .
3.28
RowCommand GridView2. .
Panel2 "". , .
"".
SqlDataSource2 Select, , .
(Insert) .
3.29 Select
, IdUl GridView1, , .
(Delete) .
3.30 Delete
IdUlOkved GridView2. DataKeyNames.
(InsertCommand) .
3.31 Update
, .
3.32
.
3.33 ""
. .
3.34
, . "" .
3.35
, TextBox. , .
|
|
"", .
, .
"" .
, , .
, , , , . , .
DataTable SqlCommand, using.
, .
.
.
3.36