{"id":25664,"date":"2015-11-26T23:47:52","date_gmt":"2015-11-26T20:47:52","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=25664"},"modified":"2015-11-26T23:56:28","modified_gmt":"2015-11-26T20:56:28","slug":"%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5-asp-net-%d0%bf%d1%80%d0%b8-%d0%be%d0%b1%d1%80%d0%b0%d1%89%d0%b5%d0%bd%d0%b8%d0%b8-%d0%ba-%d0%b1%d0%b0%d0%b7%d0%b5-%d0%b4","status":"publish","type":"post","link":"https:\/\/studentpmr.ru\/?p=25664","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 ASP. Net \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445."},"content":{"rendered":"<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435 \u21165.\u00a0\u0422\u0435\u043c\u0430 \u00ab\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 ASP. Net \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430 \u043f\u0443\u0442\u0435\u0432\u043e\u043a \u0442\u0443\u0440\u0438\u0441\u0442\u0430\u043c\u0438. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0437\u0430\u0442\u0435\u043c \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043c, \u0441\u0432\u044f\u0437\u0430\u0432 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<!--more--><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u043e\u0440\u043c\u0443 Web, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u0444\u0430\u043c\u0438\u043b\u0438\u0438, \u0438\u043c\u0435\u043d\u0438, \u043e\u0442\u0447\u0435\u0441\u0442\u0432\u0430 \u0442\u0443\u0440\u0438\u0441\u0442\u0430, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0442\u0443\u0440\u0430, \u043c\u0435\u0441\u0442\u0430 \u043e\u0442\u0434\u044b\u0445\u0430 \u0438 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0434\u0430\u0442\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u0435\u0439 \u043a\u0440\u043e\u043c\u0435 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u0442\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u0432\u0435\u0434\u0435\u043d\u043e. \u0414\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0437\u0430\u043a\u0430\u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0435\u0442\u043a\u0430 Label.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <strong>ASP.<\/strong><strong>NET <\/strong><strong>Web <\/strong><strong>Application. <\/strong>\u0412 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u0439\u0441\u044f Web \u0444\u043e\u0440\u043c\u0435<\/p>\n<p>WebForm.aspx. \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435:<\/p>\n<ul>\n<li>\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u0424\u0430\u043c\u0438\u043b\u0438\u0438 (id = LastNameBox), \u0438\u043c\u0435\u043d\u0438 (id= NameBox) \u0438 \u043e\u0442\u0447\u0435\u0441\u0442\u0432\u0430 (id = Otcestvo).<\/li>\n<li>\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 ListBox (id = TourList), \u00a0\u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 Items \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Collection Editor \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0442\u0440\u0438 \u043f\u0443\u043d\u043a\u0442\u0430 \u0441\u043f\u0438\u0441\u043a\u0430. \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 Value \u0437\u0430\u0434\u0430\u0439\u0442\u0435 1,2,3 (\u0441\u043c. \u0440\u0438\u0441. 1).<\/li>\n<\/ul>\n<p><a href=\"http:\/\/studentpmr.ru\/foto\/2015\/11\/Web_form.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-25665\" src=\"http:\/\/studentpmr.ru\/foto\/2015\/11\/Web_form-300x274.png\" alt=\"\u041e\u043a\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u0435\u0431\u0444\u043e\u0440\u043c\u044b\" width=\"300\" height=\"274\" srcset=\"https:\/\/studentpmr.ru\/foto\/2015\/11\/Web_form-300x274.png 300w, https:\/\/studentpmr.ru\/foto\/2015\/11\/Web_form.png 487w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u0420\u0438\u0441.1 \u041e\u043a\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430.<\/p>\n<ul>\n<li>\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 (id = SubButton, Text = \u00ab\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c\u00bb).<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 Label (id = Result, Text = \u201c\u201d).<\/li>\n<\/ul>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u0441\u0435\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0444\u043e\u0440\u043c\u0430 (\u0440\u0438\u0441. 2)<\/p>\n<p><a href=\"http:\/\/studentpmr.ru\/foto\/2015\/11\/Web_form_maket.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-25666\" src=\"http:\/\/studentpmr.ru\/foto\/2015\/11\/Web_form_maket-300x224.png\" alt=\"\u041c\u0430\u043a\u0435\u0442 web- \u0444\u043e\u0440\u043c\u044b\" width=\"300\" height=\"224\" srcset=\"https:\/\/studentpmr.ru\/foto\/2015\/11\/Web_form_maket-300x224.png 300w, https:\/\/studentpmr.ru\/foto\/2015\/11\/Web_form_maket.png 571w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u0420\u0438\u0441. 2 \u041c\u0430\u043a\u0435\u0442 web- \u0444\u043e\u0440\u043c\u044b.<\/p>\n<p>\u0414\u0432\u0430\u0436\u0434\u044b \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 \u0438 \u0432\u0432\u043e\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<p>private void SubButton_Click(object sender, System.EventArgs e)<\/p>\n<p>{<\/p>\n<p>if (this.IsValid)<\/p>\n<p>{<\/p>\n<p>Result.Text = TourList.SelectedItem.Text+&#187; \u0442\u0443\u0440 \u0437\u0430\u043a\u0430\u0437\u0430\u043d \u043d\u0430 &#187; + Calendar1.SelectedDate.ToLongDateString()+\u00a0\u00a0\u00a0\u00a0 &#187; \u0434\u043b\u044f\u00a0 &#187; + LastNameBox.Text + &#187; &#171;+ Name.Text+ &#187; &#171;+ Otcestvo.Text+ &#171;, \u043c\u0435\u0441\u0442\u043e \u043e\u0442\u0434\u044b\u0445\u0430 &#171;;<\/p>\n<p>foreach (ListItem i in PlaceList.Items)<\/p>\n<p>{<\/p>\n<p>if (i.Selected)<\/p>\n<p>{<\/p>\n<p>Result.Text += i.Text + &#187; &#171;;<\/p>\n<p>}<\/p>\n<p>}}}<\/p>\n<p>\u0412 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 Page \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0434<\/p>\n<p>private void Page_Load(object sender, System.EventArgs e)<\/p>\n<p>{<\/p>\n<p>if (!this.IsPostBack)<\/p>\n<p>{<\/p>\n<p>Calendar1.SelectedDate = System.DateTime.Now;<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 F5. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<\/p>\n<p><strong>\u0417\u0430\u043f\u0438\u0441\u044c \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445.<\/strong><\/p>\n<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u0439 SubButton_Click \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u0437 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Label. \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043a\u0430\u0437 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441 SQL INSERT \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0435\u0433\u043e.<\/p>\n<p>string oleDbCommand=&#187;INSERT INTO Tourist(LName,Name,Otcestvo) VALUES(&#8216;&#187;+LastNameBox.Text+&#187;&#8216;,'&#187;+ Name.Text+&#187;&#8216;,'&#187;+Otcestvo.Text+&#187;&#8216;)&#187;;<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 SQL, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 OleDb. OleDbCommand:<\/p>\n<p>oleDbInsertCommand1 = new System.Data.OleDb.OleDbCommand(oleDbCommand,oleDbConnection1);<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u043e\u0432\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u044b\u043b\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u043e \u0432 Page_Load \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<p>oleDbConnection1.Open();<\/p>\n<p>int queryResult=oleDbInsertCommand1.ExecuteNonQuery();<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 ExecuteNonQuery( ) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0435\u0435, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0431\u044b\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u0415\u0441\u043b\u0438 \u043e\u043d\u043e \u0440\u0430\u0432\u043d\u043e 1, \u0442\u043e \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u043a\u0430 \u0431\u044b\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439.\u00a0 \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u0442\u0430\u043a, \u0442\u043e \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 Label, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043b\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f ZacTabel \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u043e\u0432\u044b\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432.<\/p>\n<p>if(queryResult==1)<\/p>\n<p>{<\/p>\n<p>Result.Text=&#187;\u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b&#187;;<\/p>\n<p>daTourist=new System.Data.OleDb.OleDbDataAdapter(&#171;SELECT * FROM Tourist&#187;,oleDbConnection2);<\/p>\n<p>ds.Clear();<\/p>\n<p>daTourist.Fill(ds,&#187;Tourist&#187;);<\/p>\n<p>ZacTable=ds.Tables[&#171;Tourist&#187;];<\/p>\n<p>}<\/p>\n<p>\u0415\u0441\u043b\u0438 ExecuteNonQuery( ) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0438\u0441\u043b\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043e\u0442 \u0435\u0434\u0438\u043d\u0438\u0446\u044b, \u0442\u043e \u044d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 Label.<\/p>\n<p>Result.Text = &#171;\u0414\u0430\u043d\u043d\u043d\u044b\u0435 \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u0437 &#8212; \u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.&#187;;<\/p>\n<p>\u0418 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435:<\/p>\n<p>oleDbConnection1.Close();<\/p>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b DataGrid, Repeater, DataList \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 Web \u00a0\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u043c\u043d\u043e\u0433\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u0431\u044b \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043c\u0430 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 DataGrid \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u044b\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u043e\u043a\u043d\u0430 \u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b *. \u0430spx. \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0433\u043e\u043c &lt;\/form&gt;<\/p>\n<p>&lt;asp:DataGrid Runat=server ID=&#187;TourDetail&#187;\/&gt;<\/p>\n<p>\u0410 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432 Page_Load \u0432 \u0424\u0430\u0439\u043b\u0435 *.aspx.cs TourDetail.DataSource = ZacTable;<\/p>\n<p>if (!this.IsPostBack)<\/p>\n<p>{<\/p>\n<p>Calendar1.SelectedDate = System.DateTime.Now;<\/p>\n<p>this.DataBind();<\/p>\n<p>}<\/p>\n<p>else<\/p>\n<p>{<\/p>\n<p>TourDetail.DataBind();<\/p>\n<p>}<\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 Web.<\/p>\n<p>\u0421\u0410\u041c\u041e\u0421\u0422\u041e\u042f\u0422\u0415\u041b\u042c\u041d\u041e:<\/p>\n<ul>\n<li>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b Asp \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430.<\/li>\n<li>\u0418\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c \u0443 \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044f.<\/li>\n<\/ul>\n<p>\u041a\u041e\u041d\u0422\u0420\u041e\u041b\u042c\u041d\u042b\u0415 \u0412\u041e\u041f\u0420\u041e\u0421\u042b:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435 \u21165.\u00a0\u0422\u0435\u043c\u0430 \u00ab\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 ASP. Net \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430 \u043f\u0443\u0442\u0435\u0432\u043e\u043a \u0442\u0443\u0440\u0438\u0441\u0442\u0430\u043c\u0438. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0437\u0430\u0442\u0435\u043c \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043c, \u0441\u0432\u044f\u0437\u0430\u0432 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"_links":{"self":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/25664"}],"collection":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25664"}],"version-history":[{"count":2,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/25664\/revisions"}],"predecessor-version":[{"id":25672,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/25664\/revisions\/25672"}],"wp:attachment":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}