Part IIASP.NET DataGrid GridView ASP.NET 3.5 GridViewDataGrid ASP.NET 1.xGridView Note HTML CSS HTML CSS

Size: px
Start display at page:

Download "Part IIASP.NET DataGrid GridView ASP.NET 3.5 GridViewDataGrid ASP.NET 1.xGridView Note HTML CSS HTML CSS"

Transcription

1 11 DataGrid GridView ASP.NET.NET 10 ASP.NETASP.NET 1.x DataGrid ASP.NET 2.0 GridView / DataGrid GridViewHTML DataGrid GridView DataGrid ASP.NET 1.x ASP.NET 1.xDataGrid ASP.NET 2.0 GridView DetailsView FormView ASP.NET 3.5 ListViewListView 13 DetailsView FormViewGridView ASP.NET 1.x DataGrid Microsoft ASP.NET

2 Part IIASP.NET DataGrid GridView ASP.NET 3.5 GridViewDataGrid ASP.NET 1.xGridView Note HTML CSS HTML CSS GridView CSSDataGrid HTML DataGrid DataGrid DataSource ASP.NET 2.0DataSourceID ASP.NET <asp:datagrid runat="server" id="grid" /> DataGrid DataGrid DataGrid ASP.NET

3 259 Microsoft ASP.NET DataGrid 11-1 Control WebControl AllowCustomPaging AllowPaging true AllowPaging AllowSorting AlternatingItemStyle AutoGenerateColumns True BackImageUrl URL Caption ASP.NET 1.x CaptionAlign ASP.NET 1.x CellPadding CellSpacing Columns DataGridColumn CurrentPageIndex DataKeyField DataKeys DataKeyField DataMember DataSource DataSource DataSet 11-1 DataGrid

4 Part IIASP.NET DataSource DataSourceID EditItemIndex EditItemStyle FooterStyle GridLines HeaderStyle HorizontalAlign Items ItemStyle PageCount PagerStyle PageSize SelectedIndex SelectedItem SelectedItemStyle ShowFooter ShowHeader UseAccessibleHeader VirtualItemCount ASP.NET 1.x DataGridItem False True <th> <td> ASP.NET 1.x DataGrid 11-1 DataGrid ( ) 260

5 11 DataGrid Columns Items HTML ItemsDataGridItem DataGridItem TableRow Note ASP.NET 2.0 Caption CaptionAlign UseAccessibleHeader DataGrid DataGrid ListItemType DataGrid DataGrid11-2 Microsoft ASP.NET

6 Part IIASP.NET AlternatingItem EditItem Footer Header Item Pager SelectedItem AlternatingItemStyle EditItemStyle FooterStyle HeaderStyle ItemStyle PagerStyle SelectedItemStyle 11-2 DataGrid ItemCreated DataGrid Items Items DataGridItem DataItem Items 262

7 11 DataGrid 1 DataGridItemDataSetIndex DataSetIndex DataKeys DataKeyField DataGrid DataKeyField Items DataKeys <asp:datagrid runat="server" id="grid" DataKeyField="employeeid"... > ID // empid int empid = grid.datakeys[grid.selectedindex]; DataKeys DataKeyField DataGrid DataGrid11-3 Microsoft ASP.NET

8 Part IIASP.NET CancelCommand DeleteCommand EditCommand ItemCommand ItemCreated ItemDataBound PageIndexChanged SelectedIndexChanged SortCommand UpdateCommand 11-3 DataGrid CancelCommand UpdateCommand DataGrid CancelCommand UpdateCommand EditCommand DeleteCommandSortCommand DataGridWebLoad Init PreRender DataBinding HTMLPreRender DataBinding 264

9 11 Note DataGridGridView DataGridGridView DataGrid DataGrid AutoGenerateColumns false Columns DataGrid Columns BoundColumn 11-4 BoundColumn ButtonColumn EditCommandColumn HyperLinkColumn TemplateColumn Edit literal URL URL ASP.NET 11-4 Microsoft ASP.NET

10 Part IIASP.NET AutoGenerateColumns Columns true <asp:datagrid><columns> <asp:datagrid runat="server" id="grid"... >... <columns> <asp:boundcolumn runat="server" DataField="employeeid" HeaderText="ID" /> <asp:boundcolumn runat="server" DataField="firstname" HeaderText="First Name" /> <asp:boundcolumn runat="server" DataField="lastname" HeaderText="Last Name" /> </columns> </asp:datagrid> Columns BoundColumn BoundColumn bc = new BoundColumn(); bc.datafield = "firstname"; bc.headertext = "First Name"; grid.columns.add(bc); DataGrid Note Columnsview state 266

11 11 DataGridColumn 11-5 FooterStyle FooterText HeaderImageUrl HeaderStyle HeaderText ItemStyle SortExpression Visible URL 11-5 BoundColumn DataFieldDataFormatString ReadOnly <asp:boundcolumn runat="server" datafield="quantityperunit" headertext="packaging" /> <asp:boundcolumn runat="server" datafield="unitprice" headertext="price" DataFormatString="{0:c"> <itemstyle width="80px" horizontalalign="right" /> </asp:boundcolumn> Microsoft ASP.NET

12 Part IIASP.NET HyperLinkColumn URL DataTextField DataNavigateUrlFieldURL DataNavigateUrlFormatString URL <asp:hyperlinkcolumn runat="server" datatextfield="productname" headertext="product" datanavigateurlfield="productid" datanavigateurlformatstring="productinfo.aspx?id={0" target="productview"> <itemstyle width="200px" /> </asp:hyperlinkcolumn> productinfo.aspxid URL Note DataNavigateUrlField DataNavigateUrlFormatString U R L DataNavigateUrlField GridView ButtonColumn URL 268

13 11 ItemCommand CommandNameDataGridItem ItemIndexItemCommand DataGridItem select select DataGrid SelectedItemStyle ItemCommand <asp:buttoncolumn runat="server" text="select" CommandName="Select" /> SelectedItemStyle <selecteditemstyle backcolor="cyan" /> S e l e c t e d I n d e x C h a n g e d I t e m C o m m a n d SelectedIndexChangedSelectedIndex HTML HTML ASP.NET Microsoft ASP.NET

14 Part IIASP.NET DataGrid <TemplateColumn> TemplateColumn ItemTemplate EditItemTemplate HeaderTemplateFooterTemplate 10 Eval BoundColumn lastname <asp:templatecolumn runat="server" headertext="last Name"> <itemtemplate> <asp:label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "lastname") %>' /> </itemtemplate> </asp:templatecolumn> DataBinder.EvalASP.NET 2.0 Eval DataGrid DataGrid DataGrid Select DataGridDataGrid 270

15 11 DataGrid GridView DataGrid PageIndexChanged DataGrid DataGrid PageIndexChanged DataGrid protected void grid_pageindexchanged( object sender, DataGridPageChangedEventArgs e) { grid.currentpageindex = e.newpageindex; // grid.datasourceid = "SqlDataSource1"; DataSourceID DataSource Microsoft ASP.NET

16 Part IIASP.NET EnableCaching 10 DataGrid protected void grid_pageindexchanged( object sender, DataGridPageChangedEventArgs e) { grid.currentpageindex = e.newpageindex; grid.datasource = GetRecordsInPage(grid.CurrentPageIndex); protected object GetRecordsInPage(int pageindex) { //... GridView DAL GridView AllowSorting DataGrid SortCommand DataGrid protected void grid_sortcommand( object sender, DataGridSortCommandEventArgs e) { 272

17 11 SqlDataSource1.SelectCommand += " ORDER BY " + e.sortexpression; grid.datasourceid = "SqlDataSource1"; ASP.NET 1.x SortCommand DataViewSort ASP.NET 2.0 DataSet Sort DataGrid Web DataGrid In-Place EditingMicrosoft Office Excel Excel DataGrid Microsoft ASP.NET

18 Part IIASP.NET EditCommandColumn <EditItemTemplate> DataGrid EditCommand CancelCommand UpdateCommand EditCommand CancelCommand UpdateCommand UpdateCommand GridView Important DataGrid DataGrid GridView GridView ASP.NET 2.0 ASP.NET GridView DataGrid GridView 274

19 11 Microsoft 10GridView FormView DetailsView ListView GridView GridView ASP.NET 1.x DataGrid DataGrid ASP.NET 2.0 GridView GridView DataGrid GridView GridView GridView public class GridView : CompositeDataBoundControl, ICallbackContainer, ICallbackEventHandler Microsoft ASP.NET

20 Part IIASP.NET ICallbackContainer ICallbackEventHandler callback Out-of-Band AJAX GridView GridView GridView 11-6GridView AllowPaging AllowSorting AutoGenerateColumns AutoGenerateDeleteButton AutoGenerateEditButton AutoGenerateSelectButton DataMember DataSource true DataSource DataSource DataSet 11-6 GridView 276

21 11 DataSourceID EnableSortingAnd PagingCallbacks RowHeaderColumn SortDirection SortExpression UseAccessibleHeader <th> <td> 11-6 GridView( ) SortDirection SortExpression AllowSorting EnableSortingAndPagingCallbacks Note ASP.NET AJAX Extensions 1.0ASP.NET 3.5 A J A XA J A X XMLHttpRequest Web GridView grid itemdatagrid EmptyData EmptyData Microsoft ASP.NET

22 Part IIASP.NET N o t e G r i d V i e w UseAccessibleHeader Caption CaptionAlign RowHeaderColumn RowHeaderColumnboldface ShowHeader HeaderStyle RowHeaderColumn 11-7 GridView AlternatingRowStyle EditRowStyle FooterStyle HeaderStyle EmptyDataRowStyle PagerStyle RowStyle SelectedRowStyle GridView 11-7 GridView BackImageUrl Caption CaptionAlign CellPadding URL 11-8 GridView 278

23 11 CellSpacing EmptyDataText GridLines HorizontalAlign PagerSettings ShowFooter ShowHeader 11-8 GridView( ) PagerSettings DataGridPagerSettings DataGrid EmptyDataTemplate PagerTemplate EmptyDataText PagerSettings 11-9 GridView Microsoft ASP.NET

24 Part IIASP.NET BottomPagerRow Columns DataKeyNames DataKeys EditIndex FooterRow HeaderRow PageCount PageIndex PageSize Rows SelectedDataKey SelectedIndex SelectedRow SelectedValue TopPagerRow GridViewRow DataKey DataKeyNames 0 GridViewRow GridViewRow 0 GridViewRow DataKey 0 GridViewRow DataKey SelectedDataKey GridViewRow

25 11 GridView DataSourceID GridView DataSource GridView GridView DataBind GridView GridView ASP.NET 2.0 Pagedoing/done GridView PageIndexChanging, PageIndexChanged RowCancelingEdit RowCommand RowCreated RowDataBound RowDeleting, RowDeleted RowEditing RowUpdating, RowUpdated GridView Microsoft ASP.NET

26 Part IIASP.NET SelectedIndexChanging, SelectedIndexChanged Sorting, Sorted GridView ( ) RowCreated RowDataBound DataGrid ItemCreated ItemDataBound ASP.NET 1.x RowCommandDataGrid ItemCommand RowUpdating RowUpdating HTML GridView <asp:objectdatasource ID="MySource" runat="server" TypeName="Core35.DAL.Customers" SelectMethod="LoadAll"> </asp:objectdatasource> <asp:gridview runat="server" id="grid" DataSourceID="MySource" /> DataSourceID LoadAll GridView 282

27 11 GridView GridView EmptyDataTemplate <asp:gridview runat="server" datasourceid="mysource"> <emptydatatemplate> <asp:label runat="server"> There's no data to show in this view. </asp:label> </emptydatatemplate> </asp:gridview> EmptyDataTemplate GridView AutoGenerateColumns false ColumnsColumns Microsoft ASP.NET

28 Part IIASP.NET Columns DataControlFieldDataControlField DataGrid DataGridColumn DetailsView instantiatecolumns BoundField field = new BoundField(); field.datafield = "companyname"; field.headertext = "Company Name"; grid.columnfields.add(field);.aspx <Columns> <columns> <asp:boundfield datafield="customerid" headertext="id" /> <asp:boundfield datafield="companyname" headertext="company Name" /> </columns> 11-12GridView DataControlField BoundField ButtonField CheckBoxField boolean 11-12GridView 284

29 11 CommandField HyperLinkField ImageField TemplateField ButtonField GridView DetailsView GridView DetailsView DataControlField URL HTML <img> Src URL 11-12GridView( ) AccessibleHeaderText FooterStyle FooterText HeaderImageUrl HeaderStyle HeaderText InsertVisible ItemStyle URL GridView GridView Microsoft ASP.NET

30 Part IIASP.NET ShowHeader SortExpression GridView( ) MSDNGridView BoundField GridView DetailsView DataField DataFormatString NullDisplayText null ConvertEmptyStringToNull true null BoundFieldVisible ReadOnly HeaderText FooterText HeaderImageUrl RowCommand

31 GridView <asp:gridview ID="GridView1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="false" AllowPaging="true" OnRowCommand="GridView1_RowCommand"> <HeaderStyle backcolor="gray" font-bold="true" height="200%" /> <PagerStyle backcolor="gray" font-bold="true" height="200%" /> <PagerSettings Mode="NextPreviousFirstLast" /> <Columns> <asp:boundfield datafield="productname" headertext="product" /> <asp:boundfield datafield="quantityperunit" headertext="packaging" /> <asp:boundfield datafield="unitprice" headertext="price" htmlencode="false" DataFormatString="{0:c"> <itemstyle width="80px" horizontalalign="right" /> </asp:boundfield> <asp:buttonfield buttontype="button" text="add" CommandName="Add" /> </Columns> </asp:gridview> Microsoft ASP.NET

32 Part IIASP.NET BoundField RowCommand CommandName CommandName void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.commandname.equals("add")) { // int index = Convert.ToInt32(e.CommandArgument); // AddToShoppingCart(index); ButtonFieldText DataTextField <asp:buttonfield buttontype="image" CommandName="Add" ImageUrl="/core35/images/cart.gif" /> RowCreated Note HtmlEncode="false"BoundField DataFormatString ASP.NETHTML HTML 288

33 11 URL URL URL URL URL DataNavigateUrlFields URL DataNavigateUrlFormatStringURL <asp:hyperlinkfield DataTextField="productname" HeaderText="Product" DataNavigateUrlFields="productid" DataNavigateUrlFormatString="productinfo.aspx?id={0" Target="ProductView" /> productinfo.aspx?id=xxx URL xxxproductidurl DataNavigateUrlFields DataGrid DataTextFormatString { GridView Microsoft ASP.NET

34 Part IIASP.NET Tip _self _parent _new DataGrids CheckBoxField ASP.NET 2.0GridView ASP.NET 1.xDataGrids CheckBoxField SQL Server Bit bool CheckBoxField 0 false true11-5checkboxfieldgridview 11-5 GridView 290

35 11 ImageField <img>url URLDataImageUrlField <img> Src HTTP <Columns> <asp:imagefield DataImageUrlField="employeeid" DataImageUrlFormatString="showemployeepicture.aspx?id={0" DataAlternateTextField="lastname"> <ControlStyle Width="120px" /> </asp:imagefield> <asp:templatefield headertext="employee"> <ItemStyle Width="220px" /> <ItemTemplate> <b><%# Eval("titleofcourtesy") + " " + Eval("lastname") + ", " + Eval("firstname") %></b> <br /> <%# Eval("title")%> <hr /> <i><%# Eval("notes")%></i> </ItemTemplate> </asp:templatefield> </Columns> ImageFieldURL ShowEmployeePicture.aspx?id=xxx xxxdataimageurlfield employeeid DataAlternateTextField Microsoft ASP.NET

36 Part IIASP.NET 11-6 GridView void Page_Load(object sender, EventArgs e) { int id = Convert.ToInt32(Request.QueryString["id"]); string connstring = "..."; string cmdtext = "SELECT photo FROM employees WHERE employeeid=@empid"; using (SqlConnection conn = new SqlConnection(connString)) { SqlCommand cmd = new SqlCommand(cmdText, conn); cmd.parameters.addwithvalue("@empid", id); byte[] img = null; conn.open(); try { { img = (byte[])cmd.executescalar(); if (img!= null) Response.ContentType = "image/png"; Response.OutputStream.Write(img, EMP_IMG_OFFSET, img.length); 292

37 11 catch { Response.WriteFile("/proaspnet20/images/noimage.gif"); conn.close(); null NullImageUrl Note EMP_IMG_OFFSET0 Northwind Employees TemplateField AlternatingItemTemplate EditItemTemplate FooterTemplate HeaderTemplate ItemTemplate ItemTemplate Microsoft ASP.NET

38 Part IIASP.NET 10 <asp:templatefield headertext="product"> <itemtemplate> <b><%# Eval("productname")%></b> <br /> available in <%# Eval("quantityperunit")%> </itemtemplate> </asp:templatefield> GridView 294

39 11 Note TemplateField InsertTemplate GridView InsertTemplate FormView ASP.NETTemplateFieldTemplateField 13 FormView GridView CanSort Important GridViewDataSource DataGridGridView GridView GridView DataGrid Web GridView Microsoft ASP.NET

40 Part IIASP.NET GridView AllowPaging trueallowpaging true GridView GridView DataGrid ASP.NETGridView PageIndexChanged PageIndexChanging GridView <asp:gridview ID="GridView1" runat="server" DataSourceID="SqlDataSource1" AllowPaging="true" /> SqlDataSource GridView 296

41 11 GridView PageIndexChanged protected void GridView1_PageIndexChanged(object sender, EventArgs e) { ShowPageIndex(); private void ShowPageIndex() { CurrentPage.Text = (GridView1.PageIndex + 1).ToString(); DataGrids PageIndexChanged GridView SqlDataSource ObjectDataSource SqlDataSource DataSourceModeDataSet EnableCaching True SqlDataSource ASP.NET Tip SqlDataSourceSelectCommand Microsoft ASP.NET

42 Part IIASP.NET DAL 10ObjectDataSource DAL ObjectDataSource ObjectDataSource StartRowIndexParameterName MaximumRowsParameterName GridViewObjectDataSource ObjectDataSource EnablePaging true <asp:objectdatasource ID="ObjectDataSource1" runat="server" EnablePaging="true" TypeName="Core35.DAL.Customers" StartRowIndexParameterName="firstRow" MaximumRowsParameterName="totalRows" SelectMethod="LoadByCountry"> <SelectParameters> <asp:controlparameter Name="country" ControlID="Countries" PropertyName="SelectedValue" /> </SelectParameters> </asp:objectdatasource> <asp:gridview ID="GridView1" runat="server" AutoGenerateColumns="false" DataSourceID="ObjectDataSource1" AllowPaging="true" OnPageIndexChanged="GridView1_PageIndexChanged"> <PagerSettings Mode="NextPreviousFirstLast" /> <Columns> <asp:boundfield DataField="id" HeaderText="ID" /> <asp:boundfield DataField="companyname" HeaderText="Company" /> <asp:boundfield DataField="contactname" HeaderText="Contact" /> </Columns> </asp:gridview> <b>page: </b><asp:label runat="server" ID="CurrentPage" /> 298

43 11 GridView GridView PageSize LoadByCountry public static CustomerCollection LoadByCountry(string country) { LoadByCountry(country, -1, 0); public static CustomerCollection LoadByCountry(string country, int totalrows, int firstrow) { // ObjectDataSource LoadByCountry GridViewDataGrids AllowCustomPaging SELECT TOP TOP Microsoft ASP.NET

44 Part IIASP.NET SQLhttp://weblogs.sqlteam.com/jeffs/ archive/2004/03/22/1085.aspx DBA DAL AllowPaging true <PagerSettings> <PagerStyle> GridView DataGrids Mode NextPrevious NextPreviousFirstLast Numeric NumericFirstLast

45 11 xxxpagetext xxxpageimageurl xxx First Last Next Previous GridView <PagerSettings> Position <PagerSettings Position="TopAndBottom" /> GridView <PagerTemplate> <PagerTemplate> <asp:button ID="BtnFirst" runat="server" commandname="first" Text="First" /> <asp:button ID="BtnPrev" runat="server" commandname="prev" Text="<<" /> <asp:button ID="BtnNext" runat="server" commandname="next" Microsoft ASP.NET

46 Part IIASP.NET Text=">>" /> <asp:button ID="BtnLast" runat="server" commandname="last" Text="Last" /> </PagerTemplate> RowCommand void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.commandname == "Last") GridView1.PageIndex = GridView1.PageCount - 1; if (e.commandname == "First") GridView1.PageIndex = 0; if (e.commandname == "Next") GridView1.PageIndex ++; if (e.commandname == "Prev") GridView1.PageIndex --; GridView 302

47 11 GridView GridView GridViewAllowSortingtrue GridView SortExpression ASC DESC DESCASC ASC GridView productname <asp:gridview runat="server" id="mygridview" DataSourceID="MySource" AllowSorting="true" AutoGenerateColumns="false"> <Columns> <asp:boundfield datafield="productname" headertext="product" sortexpression="productname" /> <asp:boundfield datafield="quantityperunit" headertext="packaging" /> </Columns> </asp:gridview> GridView GridView Microsoft ASP.NET

48 Part IIASP.NET SqlDataSource AllowSorting true SqlDataSource SqlDataSourceDataSet DataView DataView Sort Web GridView SqlDataSourceDataSourceMode DataReader DataSet SortParameterName ORDER BYNorthwind CustOrderHist 304

49 11 CREATE PROCEDURE varchar(20)='total' AS SET QUOTED_IDENTIFIER OFF = '' BEGIN = 'total' END EXEC ( 'SELECT ProductName, Total=SUM(Quantity) ' + 'FROM Products P, [Order Details] OD, Orders O, Customers C ' + 'WHERE C.CustomerID = "' + '" ' + 'AND C.CustomerID = O.CustomerID AND O.OrderID = OD.OrderID ' + 'AND OD.ProductID = P.ProductID GROUP BY ProductName ' + 'ORDER BY ' GO DBMS <asp:sqldatasource ID="SqlDataSource1" runat="server" DataSourceMode="DataReader" ConnectionString='<%$ ConnectionStrings:NWind %>' SortParameterName="SortedBy" SelectCommand="CustOrderHistSorted" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:controlparameter ControlID="CustList" Name="CustomerID" PropertyName="SelectedValue" /> </SelectParameters> </asp:sqldatasource> EnableCaching false Microsoft ASP.NET

50 Part IIASP.NET DataSet DataSet DataReader SortParameterName Repeater DAL ObjectDataSource DAL LoadByCountry public static CustomerCollection LoadByCountry( string country, int totalrows, int firstrow, string sortexpression) { CustomerCollection coll = new CustomerCollection(); using (SqlConnection conn = new SqlConnection(ConnectionString)) { SqlCommand cmd; cmd = new SqlCommand(cmdLoadByCountry, conn); cmd.parameters.addwithvalue("@country", country); if (!String.IsNullOrEmpty(sortExpression)) cmd.commandtext += " ORDER BY " + sortexpression; conn.open(); SqlDataReader reader = cmd.executereader(); HelperMethods.FillCustomerList(coll, reader, totalrows, firstrow); reader.close(); conn.close(); return coll; 306

51 11 cmdloadbycountrysql ORDER BY DAL ObjectDataSource SortParameterName sortexpression <asp:objectdatasource ID="ObjectDataSource1" runat="server" EnablePaging="true" TypeName="Core35.DAL.Customers" SortParameterName="sortExpression" StartRowIndexParameterName="firstRow" MaximumRowsParameterName="totalRows" SelectMethod="LoadByCountry"> <SelectParameters>... </SelectParameters> </asp:objectdatasource> DAL ASP.NET Note GridView Sorting GridViewSortEventArgs Cancel true GridView Microsoft ASP.NET

52 Part IIASP.NET <script runat="server"> void GridView1_RowCreated (object sender, GridViewRowEventArgs e) { if (e.row.rowtype == DataControlRowType.Header) AddGlyph(sender as GridView, e.row); void AddGlyph(GridView grid, GridViewRow item) { Label glyph = new Label(); glyph.enabletheming = false; // // glyph.font.name = "webdings"; glyph.font.size = FontUnit.Small; glyph.text = (grid.sortdirection==sortdirection.ascending?"5" :"6"); // Find the column you sorted by for(int i=0; i<grid.columns.count; i++) { string colexpr = grid.columns[i].sortexpression; if (colexpr!= "" && colexpr == grid.sortexpression) item.cells[i].controls.add (glyph); </script> RowCreated LabelLabel Label 5 6 Webdings Sorting View State SortExpression Lable item.cells[i].controls.add (glyph); 308

53 Label label EnableTheming 11-12GridView Web ASP.NETScript CallbackProgramming Microsoft ASP.NET 2.0 Applications: Advanced Topics Microsoft Press,2006 GridView EnableSortingAndPagingCallbacks ASP.NET Internet ExplorerFirefox Netscape 6.x Safari 1.2 Opera Important 19 20AJAX AJAX ASP.NET Microsoft ASP.NET

54 Part IIASP.NET SqlDataSource vs. ObjectDataSource SqlDataSource ObjectDataSource ASP.NET 2.0 SqlDataSource ObjectDataSource ASP.NET SqlDataSource DataSet DataSet SqlDataSource SqlDataSource DAL ObjectDataSource DAL grid ObjectDataSource.NET Framework DAL LINQ ObjectDataSource LINQ DALLINQSqlDataSourceLINQ DAL 310

55 11 GridView DataGrid DataGridDataGrid GridView CanUpdate DataGrid GridView DataGrid EditCommandColumnGridView AutoGenerate EditButton <asp:gridview runat="server" id="gridview1" datasourceid="mysource" autogeneratecolumns="false" autogenerateeditbutton="true">... </asp:gridview> AutoGenerateEditButton true GridView Microsoft ASP.NET

56 Part IIASP.NET 11-13GridView GridView EditIndex -1 GridView RowUpdating CanUpdate CanUpdatefalse CanUpdate false SqlDataSource <asp:sqldatasource runat="server" ID="EmployeesSource" ConnectionString="<%$ ConnectionStrings:NWind %>" SelectCommand="SELECT employeeid, firstname, lastname FROM employees" UpdateCommand="UPDATE employees SET WHERE </asp:sqldatasource> <asp:gridview runat="server" id="gridview1" datasourceid="employeessource" AutoGenerateColumns="false" DataKeyNames="employeeid" AutoGenerateEditButton="true"> <columns> <asp:boundfield datafield="firstname" headertext="first" /> 312

57 11 <asp:boundfield datafield="lastname" headertext="last" /> </columns> </asp:gridview> UpdateCommandSQL firstname DataFieldWHERE DataKeyNamesoriginal_XXX OldValuesParameterFormatString RowUpdated Note GridView/ dictionary GridViewRowUpdating GridView Page.IsValid Page.IsValidfalse ObjectDataSource DAL <asp:objectdatasource ID="CustomersSource" runat="server" TypeName="Core35.DAL.Customers" SelectMethod="LoadAll" UpdateMethod="Save" DataObjectTypeName="Core35.DAL.Customer"> </asp:objectdatasource> <asp:gridview ID="GridView1" runat="server" DataSourceID="CustomersSource" DataKeyNames="id" AutoGenerateColumns="false"> AutoGenerateEditButton="true" <Columns> <asp:boundfield DataField="companyname" HeaderText="Company" /> Microsoft ASP.NET

58 Part IIASP.NET <asp:boundfield DataField="street" HeaderText="Address" /> <asp:boundfield DataField="city" HeaderText="City" /> </Columns> </asp:gridview> Save public static void Save(Customer cust) { using (SqlConnection conn = new SqlConnection(ConnectionString)) { SqlCommand cmd = new SqlCommand(cmdSave, conn); cmd.parameters.addwithvalue("@id", cust.id); cmd.parameters.addwithvalue("@companyname", cust.companyname); cmd.parameters.addwithvalue("@city", cust.city); cmd.parameters.addwithvalue("@address", cust.street);... conn.open(); cmd.executenonquery(); conn.close(); return; SQLUPDATE SETDataObjectTypeName ObjectDataSource Note DataObjectTypeName DataObjectTypeName 314

59 11 GridView GridView AutoGenerateDeleteButton TrueGridView / <asp:sqldatasource runat="server" ID="EmployeesSource" ConnectionString="<%$ ConnectionStrings:NWind %>" SelectCommand="SELECT employeeid, firstname, lastname FROM employees" UpdateCommand="UPDATE employees SET firstname=@firstname, lastname=@lastname WHERE employeeid=@original_employeeid" DeleteCommand="DELETE employees WHERE employeeid=@original_employeeid" /> GridView Page.IsValid RowDeleting ObjectDataSource public static void Delete(Customer cust) { Delete(cust.ID); public static void Delete(string id) { using (SqlConnection conn = new SqlConnection(ConnectionString)) { Microsoft ASP.NET

60 Part IIASP.NET SqlCommand cmd = new SqlCommand(cmdDelete, conn); cmd.parameters.addwithvalue("@id", id); conn.open(); cmd.executenonquery(); conn.close(); return; overloading DAL GridView GridView 13 DetailsView FormView ASP.NET DataGrid GridView PagerTemplate RowCreated EmptyDataTemplate <emptydatatemplate> <asp:label ID="Label1" runat="server"> There's no data to show in this view. <asp:button runat="server" ID="btnAddNew" CommandName="AddNew" Text="Add New Record" /> </asp:label> </emptydatatemplate> 316

61 11 RowCommand void Gridview1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.commandname == "AddNew") {... GridView RowCommand void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.commandname.equals("add")) { // int index = Convert.ToInt32(e.CommandArgument); // AddToShoppingCart(index); Microsoft ASP.NET

62 Part IIASP.NET AddToShoppingCart ShoppingCart public class ShoppingCart : List<ShoppingItem> { public ShoppingCart() { ShoppingItem session state MyShoppingCart protected ShoppingCart MyShoppingCart { get { object o = Session["ShoppingCart"]; if (o == null) { InitShoppingCart(); return (ShoppingCart) Session["ShoppingCart"]; return (ShoppingCart) o; private void InitShoppingCart() { ShoppingCart cart = new ShoppingCart(); Session["ShoppingCart"] = cart; AddToShoppingCartShoppingItem 318

63 11 GridViewGridViewCommandEventArgs Command Argument GridView DataKeyNames RowCommand DataKeyNames DataGridDataKeyField GridView DataGridGridView <asp:gridview ID="GridView1" runat="server" DataSourceID="SqlDataSource1" DataKeyNames="productid,productname,unitprice"... /> DataKeyNames Web ShoppingItem private void AddToShoppingCart(int rowindex) { DataKey data = GridView1.DataKeys[rowIndex]; ShoppingItem item = new ShoppingItem(); item.numberofitems = 1; item.productid = (int) data.values["productid"]; item.productname = data.values["productname"].tostring(); item.unitprice = (decimal) data.values["unitprice"]; MyShoppingCart.Add(item); ShoppingCartGrid.DataSource = MyShoppingCart; ShoppingCartGrid.DataBind(); Microsoft ASP.NET

64 Part IIASP.NET DataKeyNamesDataKeys DataGrid DataKeys DataKey DataKey dictionary Values GridView DataSource 11-3 Caution RowCommand GridViewRow DataItem nullrowcommand DataKeyNamesDataKeys AutoGenerateSelectButton <asp:gridview ID="GridView1" runat="server"... > <SelectedRowStyle BackColor="cyan" />... </asp:gridview> SelectedIndex ChangedSelectedIndex SelectedRow SelectedDataKey RowCommandSelectedIndexChanged RowCommand 320

65 11 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { AddToShoppingCart(); private void AddToShoppingCart() { DataKey data = GridView1.SelectedDataKey; ShoppingItem item = new ShoppingItem(); item.numberofitems = 1; item.productid = (int) data.values["productid"]; item.productname = data.values["productname"].tostring(); item.unitprice = (decimal) data.values["unitprice"]; MyShoppingCart.Add(item); ShoppingCartGrid.DataSource = MyShoppingCart; ShoppingCartGrid.DataBind(); DataKey SelectedDataKey Microsoft ASP.NET

66 Part IIASP.NET GridView RowCreated RowData Bound RowDataBound Discontinuedtrue RowDataBound RowCreated void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.row.rowtype == DataControlRowType.DataRow) { object dataitem = e.row.dataitem; bool discontinued = (bool) DataBinder.Eval(dataItem, "discontinued"); e.row.enabled =!discontinued; RowDataBound GridViewRow DataItem DataBinder.Eval 322

67 11 reflection Enable ((WebControl)e.Row.Cells[0].Controls[0]).Enabled =!discontinued; Microsoft ASP.NET

68 Part IIASP.NET ASP.NETDataGrid GridViewWeb Web HTML ASP.NET Excel ASP.NET 2.0 DataGrid Backward CompatibilityASP.NET GridView GridView ASP.NET ASP.NET 1.x ASP.NET GridViewDataGrid ListView DetailsView FormView GridView ASP.NET 324

69 11 ASP.NET grid DataGrid GridView DataGrid ASP.NET 1.xGridView ASP.NET GridView GridView ASP.NET 1.x DataGrid SqlDataSourceGridViewDataSet LinqDataSourceGridView LINQ ObjectDataSourceGridView DAL DataGridGridView / CommandArgumentDataKeys DataGrid Microsoft ASP.NET

70 Part IIASP.NET 326

untitled

untitled 1 .NET 料.NET 料 料來 類.NET Data Provider SQL.NET Data Provider System.Data.SqlClient 料 MS-SQL OLE DB.NET Data Provider System.Data.OleDb 料 Dbase FoxPro Excel Access Oracle Access ODBC.NET Data Provider 料

More information

untitled

untitled Data Source 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 8-1 Data Source 8-2 Data Source 8-3 Data Source 8-4 Data Source 8-5 DataSourceID 8-6 DataSourceMode 8-7 DataSource 8-8 8-9 Parameter Direction

More information

untitled

untitled 12-1 -2 VC# Web Blog 12-1 -1-1 12-1.1-1 C:\ ChartModuleSample_CSharp\Application\2001\ Files\ 4096 KB 120 Web.Config httpruntime maxrequestlength executiontimeout 12-2

More information

untitled

untitled 1 LinkButton LinkButton 連 Button Text Visible Click HyperLink HyperLink 來 立 連 Text ImageUrl ( ) NavigateUrl 連 Target 連 _blank _parent frameset _search _self 連 _top 例 sample2-a1 易 連 private void Page_Load(object

More information

untitled

untitled 1 Access 料 (1) 立 料 [] [] [ 料 ] 立 料 Access 料 (2) 料 [ 立 料 ] Access 料 (3) 料 料 料 料 料 料 欄 ADO.NET ADO.NET.NET Framework 類 來 料 料 料 料 料 Ex MSSQL Access Excel XML ADO.NET 連 .NET 料.NET 料 料來 類.NET Data Provider

More information

Microsoft Word - ACL347_01序.doc

Microsoft Word - ACL347_01序.doc ASP.NET 4.0 是微軟開啟網頁技術多元性的一個里程碑, 突破長久以來 Web Form 獨秀的局面, 進而轉變成與 MVC 及 Web Pages 的多元齊放的新風貌, 讓不同調性的開發人員, 都能有一套適合的對應工具, 以符合其偏好, 同時在 www.asp.net 網站中, 也對此三種技術提供大量教學與文章, 令不同的技術愛用者, 都能找到最好的參考資源 而 ASP.NET 4.0 所使用的.NET

More information

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM CHAPTER 6 SQL SQL SQL 6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM 3. 1986 10 ANSI SQL ANSI X3. 135-1986

More information

untitled

untitled 1 Access 料 (1) 立 料 [] [] [ 料 ] 立 料 Access 料 (2) 料 [ 立 料 ] Access 料 (3) 料 料 料 料 料 料 欄 ADO.NET ADO.NET.NET Framework 類 來 料 料 料 料 料 Ex MSSQL Access Excel XML ADO.NET 連 .NET 料.NET 料 料來 類.NET Data Provider

More information

untitled

untitled 1 .NET 利 [] [] 來 說 切 切 理 [] [ ] 來 說 拉 類 類 [] [ ] 列 連 Web 行流 來 了 不 不 不 流 立 行 Page 類 Load 理 Response 類 Write 料 Redirect URL Response.Write("!! ives!!"); Response.Redirect("WebForm2.aspx"); (1) (2) Web Form

More information

第一章 章标题-F2 上空24,下空24

第一章 章标题-F2 上空24,下空24 Web 9 XML.NET Web Web Service Web Service Web Service Web Service Web Service ASP.NET Session Application SOAP Web Service 9.1 Web Web.NET Web Service Web SOAP Simple Object Access Protocol 9.1.1 Web Web

More information

VB控件教程大全

VB控件教程大全 Datagrid DataGrid1.Columns.Remove(0) ' 0 DataGrid1.Columns.Add(0).Caption= ' DataGrod1.Columns(0).DataField= Name ' Adodc1.Refresh DataGrid BackColor Font DataGrid CellPadding HTML CellSpacing HTML Width

More information

untitled

untitled 1 行 行 行 行.NET 行 行 類 來 行 行 Thread 類 行 System.Threading 來 類 Thread 類 (1) public Thread(ThreadStart start ); Name 行 IsAlive 行 行狀 Start 行 行 Suspend 行 Resume 行 行 Thread 類 (2) Sleep 行 CurrentThread 行 ThreadStart

More information

IsPostBack 2

IsPostBack 2 5 IsPostBack 2 TextBox 3 TextBox TextBox 4 TextBox TextBox 1 2 5 TextBox Columns MaxLength ReadOnly Rows Text TextMode TextMode MultiLine TextMode MultiLine True False TextMode MultiLine Password MulitLine

More information

導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式

導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式 導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式語言篇第 3 章 C# 程式語言基礎 C# C# 3.0 var 第 4 章 基本資料處理 C# x

More information

Microsoft Office SharePoint Server MOSS Web SharePoint Web SharePoint 22 Web SharePoint Web Web SharePoint Web Web f Lists.asmx Web Web CAML f

Microsoft Office SharePoint Server MOSS Web SharePoint Web SharePoint 22 Web SharePoint Web Web SharePoint Web Web f Lists.asmx Web Web CAML f Web Chapter 22 SharePoint Web Microsoft Office SharePoint Server MOSS Web SharePoint Web SharePoint 22 Web 21 22-1 SharePoint Web Web SharePoint Web Web f Lists.asmx Web Web CAML f Views.asmx View SharePoint

More information

基于ECO的UML模型驱动的数据库应用开发1.doc

基于ECO的UML模型驱动的数据库应用开发1.doc ECO UML () Object RDBMS Mapping.Net Framework Java C# RAD DataSetOleDbConnection DataGrod RAD Client/Server RAD RAD DataReader["Spell"].ToString() AObj.XXX bug sql UML OR Mapping RAD Lazy load round trip

More information

1. 2. Flex Adobe 3.

1. 2. Flex Adobe 3. 1. 2. Flex Adobe 3. Flex Adobe Flex Flex Web Flex Flex Flex Adobe Flash Player 9 /rich Internet applications/ria Flex 1. 2. 3. 4. 5. 6. SWF Flash Player Flex 1. Flex framework Adobe Flex 2 framework RIA

More information

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

ASP.NET实现下拉框二级联动组件

ASP.NET实现下拉框二级联动组件 ASP.NET 实现下拉框二级联动组件 namespace WebApplicationDlh using System.Drawing; using System.Web; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using Db; / / Area 的摘要说明 /

More information

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 ->

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 -> 目录 1 大概思路... 1 2 创建 WebAPI... 1 3 创建 CrossMainController 并编写... 1 4 Nuget 安装 microsoft.aspnet.webapi.cors... 4 5 跨域设置路由... 4 6 编写 Jquery EasyUI 界面... 5 7 运行效果... 7 8 总结... 7 1 1 大概思路 创建 WebAPI 创建 CrossMainController

More information

Microsoft Word - 01.DOC

Microsoft Word - 01.DOC 第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的

More information

<ADB6ADB1C25EA8FAA6DB2D4D56432E706466>

<ADB6ADB1C25EA8FAA6DB2D4D56432E706466> packages 3-31 PART 3-31 03-03 ASP.NET ASP.N MVC ASP.NET ASP.N MVC 4 ASP.NET ASP.NE MVC Entity Entity Framework Code First 2 TIPS Visual Studio 20NuGetEntity NuGetEntity Framework5.0 CHAPTER 03 59 3-3-1

More information

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2.

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2. 2005-06 p.1 HTML HyperText Mark-up Language 1. HTML Logo, Pascal, C++, Java HTML 2. HTML (tag) 3. HTML 4. HTML 1. HTML 2. 3. FTP HTML HTML html 1. html html html cutehtmleasyhtml 2. wyswyg (What you see

More information

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F 1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET 2.0 2.0.NET Framework.NET Framework 2.0 ( 3).NET Framework 2.0.NET Framework ( System ) o o o o o o Boxing UnBoxing() o

More information

untitled

untitled 1 .NET sln csproj dll cs aspx 說 料 料 利 來 料 ( 來 ) 利 [] [] 來 說 切 切 理 [] [ ] 來 說 拉 類 類 [] [ ] 列 連 Web 行流 來 了 不 不 不 流 立 行 Page 類 Load 理 Click 滑 料 Response 列 料 Response HttpResponse 類 Write 料 Redirect URL Response.Write("!!

More information

untitled

untitled JavaEE+Android - 6 1.5-2 JavaEE web MIS OA ERP BOSS Android Android Google Map office HTML CSS,java Android + SQL Sever JavaWeb JavaScript/AJAX jquery Java Oracle SSH SSH EJB+JBOSS Android + 1. 2. IDE

More information

第 5 章数据处理控件 GridView 在 ASP.NET 中,GridView 控件是数据信息列表显示处理控件功能最为强大的控件, 当然也是学习的重点内容 本章将详细讲解 GridView 控件的使用方法 本章示例代码参考 :/Code/ch05

第 5 章数据处理控件 GridView 在 ASP.NET 中,GridView 控件是数据信息列表显示处理控件功能最为强大的控件, 当然也是学习的重点内容 本章将详细讲解 GridView 控件的使用方法 本章示例代码参考 :/Code/ch05 第 5 章数据处理控件 GridView 在 ASP.NET 中,GridView 控件是数据信息列表显示处理控件功能最为强大的控件, 当然也是学习的重点内容 本章将详细讲解 GridView 控件的使用方法 本章示例代码参考 :/Code/ch05 第 章 5 数据处理控件GridView 5.1 GridView控件功能概述 学习目标 了解GridView功能 显示表格数据是软件开发中的一个周期性任务

More information

ebook46-23

ebook46-23 23 Access 2000 S Q L A c c e s s S Q L S Q L S Q L S E L E C T S Q L S Q L A c c e s s S Q L S Q L I N A N S I Jet SQL S Q L S Q L 23.1 Access 2000 SQL S Q L A c c e s s Jet SQL S Q L U N I O N V B A S

More information

(Microsoft Word - blog\244p\275\327\244\345no.1.doc)

(Microsoft Word - blog\244p\275\327\244\345no.1.doc) 篇名 : 作者 : 喻千榮大安高工電子三甲佟建達大安高工電子三甲陳逸樵大安高工電子三甲 指導老師 張漢明老師 壹 前言 我們製作的專題是部落格網站, 什麼是 部落格 呢? 部落格 是一種能讓使用者在網頁上發表意見, 並且提供回應的網路平台 ; 使用者不必具備太多電腦知識或網頁撰寫技巧, 就可以輕鬆做出一個屬於自己的個人站台, 這似乎和傳統的 bbs, 就是所謂的 電子告示板系統 差不多, 但它比 bbs

More information

Microsoft Word - 第7章.doc

Microsoft Word - 第7章.doc 第 章 ASP.NET 4 中的数据绑定 本章要点 使用数据源控件 运用内联的数据绑定语法 数据绑定表达式 ASP.NET 1.0/1.1 中最令人兴奋的功能是在运行时把整个数据集合绑定到控件上, 并且无需编写大量的代码 控件知道它们与数据绑定, 并为数据集合中的每一项显示相应的 HTML 另外, 还可以把控件绑定到任意类型的数据源上, 从简单的数组到复杂的 Oracle 数据库查询结果 这比 ASP

More information

投影片 1

投影片 1 資料庫管理程式 ( 補充教材 -Part2) 使用 ADO.NET 連結資料庫 ( 自行撰寫程式碼 以實現新增 刪除 修改等功能 ) Private Sub InsertButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InsertButton.Click ' 宣告相關的 Connection

More information

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6 www.brainysoft.net 1.JasperReport ireport...4 1.1 JasperReport...4 1.2 ireport...4 2....4 2.1 JDK...4 2.1.1 JDK...4 2.1.2 JDK...5 2.1.3 JDK...5 2.2 ant...6 2.2.1 ant...6 2.2.2 ant...6 2.3 JasperReport...7

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

一 個 SQL Injection 實 例 的 啟 示 頁 2 / 6 因 此, 在 知 名 網 站 上 看 到 SQL Injection, 讓 人 驚 心, 卻 不 意 外 網 站 專 案 外 包 是 目 前 業 界 的 常 態, 而 在 價 格 取 勝 的 制 度 下, 低 價 得 標 的 S

一 個 SQL Injection 實 例 的 啟 示 頁 2 / 6 因 此, 在 知 名 網 站 上 看 到 SQL Injection, 讓 人 驚 心, 卻 不 意 外 網 站 專 案 外 包 是 目 前 業 界 的 常 態, 而 在 價 格 取 勝 的 制 度 下, 低 價 得 標 的 S 一 個 SQL Injection 實 例 的 啟 示 頁 1 / 6 你 的 網 站 在 裸 奔 嗎? 一 個 SQL Injection 實 例 的 啟 示 作 者 : 李 明 儒 SQL Injection( 資 料 隱 碼 攻 擊 ) 問 題 早 就 不 是 什 麼 新 聞, 但 前 陣 子 在 一 個 頗 具 知 名 度 的 活 動 網 站 上, 赫 然 發 現 它 大 刺 刺 地 現 身!

More information

附件3:

附件3: 目 录 第 一 部 分 主 体 部 分... 1 一 专 业 建 设 发 展 情 况... 1 二 专 业 培 养 目 标... 4 三 就 业 面 向... 7 四 毕 业 要 求... 10 五 课 程 体 系 与 核 心 课 程... 10 六 实 践 教 学 基 本 要 求... 16 七 教 学 及 课 程 安 排... 21 八 继 续 专 业 学 习 深 造 建 议... 25 九 其

More information

Microsoft Word - ch04三校.doc

Microsoft Word - ch04三校.doc 4-1 4-1-1 (Object) (State) (Behavior) ( ) ( ) ( method) ( properties) ( functions) 4-2 4-1-2 (Message) ( ) ( ) ( ) A B A ( ) ( ) ( YourCar) ( changegear) ( lowergear) 4-1-3 (Class) (Blueprint) 4-3 changegear

More information

目錄 C ontents Chapter MTA Chapter Chapter

目錄 C ontents Chapter MTA Chapter Chapter 目錄 C ontents Chapter 01 1-1 MTA...1-2 1-2...1-3 1-3...1-5 1-4...1-10 Chapter 02 2-1...2-2 2-2...2-3 2-3...2-7 2-4...2-11...2-16 Chapter 03 3-1...3-2 3-2...3-8 3-3 views...3-16 3-4...3-24...3-33 Chapter

More information

教案模板4-2

教案模板4-2 传 智 播 客 ASP.NET 就 业 实 例 教 程 教 学 设 计 课 程 名 称 :ASP.NET 就 业 实 例 教 程 授 课 年 级 : 2015 年 级 授 课 学 期 : 2015 学 年 第 二 学 期 教 师 姓 名 : 某 某 老 师 2015 年 02 月 02 日 课 题 名 称 第 2 章 ADO.NET 计 划 学 时 6 课 时 内 容 分 析 教 学 目 标 及 基

More information

untitled

untitled 1 Outline 料 類 說 Tang, Shih-Hsuan 2006/07/26 ~ 2006/09/02 六 PM 7:00 ~ 9:30 聯 ives.net@gmail.com www.csie.ntu.edu.tw/~r93057/aspnet134 度 C# 力 度 C# Web SQL 料 DataGrid DataList 參 ASP.NET 1.0 C# 例 ASP.NET 立

More information

目錄

目錄 資 訊 素 養 線 上 教 材 單 元 五 資 料 庫 概 論 及 Access 5.1 資 料 庫 概 論 5.1.1 為 什 麼 需 要 資 料 庫? 日 常 生 活 裡 我 們 常 常 需 要 記 錄 一 些 事 物, 以 便 有 朝 一 日 所 記 錄 的 事 物 能 夠 派 得 上 用 場 我 們 能 藉 由 記 錄 每 天 的 生 活 開 銷, 就 可 以 在 每 個 月 的 月 底 知

More information

幻灯片 1

幻灯片 1 沈 阳 工 业 大 学 2014 年 6 月 第 7 章 数 据 库 技 术 基 础 主 要 内 容 : 7.1 数 据 库 概 述 数 据 库 基 本 概 念 数 据 模 型 逻 辑 数 据 模 型 数 据 库 系 统 的 产 生 和 发 展 常 用 的 数 据 库 管 理 系 统 7.2 Access 2010 数 据 库 创 建 及 维 护 创 建 Access 2010 数 据 库 创 建

More information

epub 94-3

epub 94-3 3 A u t o C A D L AY E R L I N E T Y P E O S N A P S T Y L E X R E F - AutoLISP Object ARX A u t o C A D D C L A u t o C A D A u t o d e s k P D B D C L P D B D C L D C L 3.1 Wi n d o w s A u t o C A D

More information

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF Chapter 2 WF 2.1 WF 2.2 2. XAML 2. 2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF WF WF WF WF EDI API WF Visual Studio Designer 1 2.1 WF Windows Workflow Foundation 2 WF 1 WF Domain-Specific

More information

(TestFailure) JUnit Framework AssertionFailedError JUnit Composite TestSuite Test TestSuite run() run() JUnit

(TestFailure) JUnit Framework AssertionFailedError JUnit Composite TestSuite Test TestSuite run() run() JUnit Tomcat Web JUnit Cactus JUnit Java Cactus JUnit 26.1 JUnit Java JUnit JUnit Java JSP Servlet JUnit Java Erich Gamma Kent Beck xunit JUnit boolean JUnit Java JUnit Java JUnit Java 26.1.1 JUnit JUnit How

More information

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘 ITE 資 訊 專 業 人 員 鑑 定 資 料 庫 系 統 開 發 與 設 計 實 務 試 卷 編 號 :IDS101 注 意 事 項 一 本 測 驗 為 單 面 印 刷 試 題, 共 計 十 三 頁 第 二 至 十 三 頁 為 四 十 道 學 科 試 題, 測 驗 時 間 90 分 鐘 : 每 題 2.5 分, 總 測 驗 時 間 為 90 分 鐘 二 執 行 CSF 測 驗 系 統 -Client

More information

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2 CHAPTER 1 Understanding Core Database Concepts 1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2 1 Understanding Core Database Concepts

More information

Microsoft Word - 最新正文.doc

Microsoft Word - 最新正文.doc 2 2 Web 2.0 Ajax StarTrackr! GPS RFID jquery JavaScript StarTrackr! JavaScript jquery 1 jquery jquery jquery JavaScript HTML jquery JavaScript jquery jquery jquery $(document).ready()! jquery jquery (document)

More information

基于UML建模的管理管理信息系统项目案例导航——VB篇

基于UML建模的管理管理信息系统项目案例导航——VB篇 PowerBuilder 8.0 PowerBuilder 8.0 12 PowerBuilder 8.0 PowerScript PowerBuilder CIP PowerBuilder 8.0 /. 2004 21 ISBN 7-03-014600-X.P.. -,PowerBuilder 8.0 - -.TP311.56 CIP 2004 117494 / / 16 100717 http://www.sciencep.com

More information

PowerPoint Presentation

PowerPoint Presentation Visual Basic 2005 學 習 範 本 第 7 章 陣 列 的 活 用 7-1 陣 列 當 我 們 需 要 處 理 資 料 時, 都 使 用 變 數 來 存 放 資 料 因 為 一 個 變 數 只 能 代 表 一 個 資 料, 若 需 要 處 理 100 位 同 學 的 成 績 時, 便 要 使 用 100 個 不 同 的 變 數 名 稱, 這 不 但 會 增 加 變 數 名 稱 命 名

More information

投影片 1

投影片 1 1 ASP.NET 互動式網頁程式設計 ( 使用 C#) CSIE NTU 實例探討 sample3-a1 (1) 2 程式功能 建立與資料庫間的連線 程式內容 protected void Page_Load(object sender, EventArgs e) { Response.Write(" 尚未連線.."); Response.Write(" 進行連線.."); AccessDataSource

More information

投影片 1

投影片 1 ASP.NET 網頁程式設計 ( 使用 C#) CSIE NTU 1 .NET 資料提供者.NET 資料提供者為存取資料來源的一組類別.NET Data Provider SQL.NET Data Provider 命名空間.. System.Data.SqlClient 可用資料庫.. MS-SQL OLE DB.NET Data Provider 命名空間.. System.Data.OleDb

More information

(HMI) IO A

(HMI) IO A 6.5 6.5 (HMI) IO 6.52 6.52 6.5 2007 113 A 602 100086 010 82616619 010 62638166 www.kingview.com 4 7 25 38 43 52 63 68 86 SQL 95 99 WEB 105 Web Web Web I/O Microsoft Windows XP/NT/2000 I/O PLC PLC PLC PLC

More information

3 Driver do Microsoft Access (*.mdb) hisdata IFIX 1.4

3 Driver do Microsoft Access (*.mdb) hisdata IFIX 1.4 IFix3.5 ACCESS ACCESS hisdata D:\Dynamics\SampleSystem\HistoricalData ODBC DSN hisdata 1 ODBC 1.1 2 1.2 3 Driver do Microsoft Access (*.mdb) 1.3 4 hisdata IFIX 1.4 1.4 5 Access 1.5 6 ODBC ifix3.5 1.6 1.6

More information

untitled

untitled 1 MessageBox 類 MessageBox 類 Show Show (,,, ); Show (string, string, MessageBoxButtons, MessageBoxIcon) MessageBox 類 列 數 MessageBoxButtons.OK MessageBoxButtons.OKCancel MessageBoxButtons.AbortRetryIgnore

More information

2 ADO.NET Internet 1.2

2 ADO.NET Internet 1.2 C H A P T E R 1 ADO.NET XML ADO.NET ADO.NET.NET Framework.NET XML ADO.NET.NET Microsoft Visual Studio 200 ADO.NET ADO.NET 2 ADO.NET 1 1.1 1.1 1.1 1.2 Internet 1.2 1.1 Internet 2 1.2 (Internet) Web 1. ADO.NET

More information

VB程序设计教程

VB程序设计教程 高 等 学 校 教 材 Visual Basic 程 序 设 计 教 程 魏 东 平 郑 立 垠 梁 玉 环 石 油 大 学 出 版 社 内 容 提 要 本 书 是 按 高 等 学 校 计 算 机 程 序 设 计 课 程 教 学 大 纲 编 写 的 大 学 教 材, 主 要 包 括 VB 基 础 知 识 常 用 程 序 结 构 和 算 法 Windows 用 户 界 面 设 计 基 础 文 件 处

More information

untitled

untitled 2006 6 Geoframe Geoframe 4.0.3 Geoframe 1.2 1 Project Manager Project Management Create a new project Create a new project ( ) OK storage setting OK (Create charisma project extension) NO OK 2 Edit project

More information

untitled

untitled ADF Web ArcGIS Server ADF GeocodeConnection control 4-2 Web ArcGIS Server Application Developer Framework (ADF).NET interop semblies.net Web ADF GIS Server 4-3 .NET ADF Web Represent the views in ArcMap

More information

1 Internet [1]P44-46 2 1 000 200 200 000 3 Web Service Web Service Web XML HTTP URL 1..NET Framework.NET Framework Web Service HTTP 80.NET Framework 2

1 Internet [1]P44-46 2 1 000 200 200 000 3 Web Service Web Service Web XML HTTP URL 1..NET Framework.NET Framework Web Service HTTP 80.NET Framework 2 Journal of Nanning Polytechnic 2013 18 2 2013 Vol.18 No.2 易 著 梁 530008 [ ] [ ] [ ]TP311.52 [ ]A [ ]1009-3621 2013 02-0041-05 GRE 1. 1 2 GRE 3 4 1 000 5 6 2. 1 CPU [ ]2013-01-15 [ ]http://www.cnki.net/kcms/detail/45.1268.c.20130325.1733.011.html

More information

EJB-Programming-4-cn.doc

EJB-Programming-4-cn.doc EJB (4) : (Entity Bean Value Object ) JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Session Bean J2EE Session Façade Design Pattern Session Bean Session

More information

untitled

untitled Database System Principle Database System Principle 1 SQL 3.1 SQL 3.2-3.3 3.4 3.5 3.6 Database System Principle 2 3.1 SQL SQL Structured Query Language SQL Database System Principle 3 SQL 3.1.1 SQL 3.1.2

More information

回滚段探究

回滚段探究 oracle oracle internal DBA oracle document oracle concepts oracle document oracle DBWR update t set object_id = '0' where object_id = '12344'; 1 row updated. commit; Commit complete. 0 12344 12344 0 10%

More information

内 容 协 作 平 台 TRS WCM 6.5 北 京 拓 尔 思 信 息 技 术 股 份 有 限 公 司 Beijing TRS Information Technology Co., Ltd 版 权 说 明 本 手 册 由 北 京 拓 尔 思 信 息 技 术 股 份 有 限 公 司 ( 以 下 简 称 TRS 公 司 ) 出 版, 版 权 属 TRS 公 司 所 有 未 经 出 版 者 正 式

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费 助 理 电 子 商 务 考 试 真 题 试 题 第 一 部 分 : 理 论 部 分 一 单 项 选 择 题 1 ( B ) 是 信 息 系 统 的 核 心 组 成 部 分 A 逻 辑 模 型 B 数 据 库 C 概 念 模 型 D 以 上 全 部 2 ping www.163.com -t 中 参 数 t 的 作 用 是 :( A ) A 进 行 连 续 测 试 B 在 新 窗 口 中 显 示 C

More information

RUN_PC連載_12_.doc

RUN_PC連載_12_.doc PowerBuilder 8 (12) PowerBuilder 8.0 PowerBuilder PowerBuilder 8 PowerBuilder 8 / IDE PowerBuilder PowerBuilder 8.0 PowerBuilder PowerBuilder PowerBuilder PowerBuilder 8.0 PowerBuilder 6 PowerBuilder 7

More information

RUN_PC連載_8_.doc

RUN_PC連載_8_.doc PowerBuilder 8 (8) Web DataWindow ( ) DataWindow Web DataWindow Web DataWindow Web DataWindow PowerDynamo Web DataWindow / Web DataWindow Web DataWindow Wizard Web DataWindow Web DataWindow DataWindow

More information

untitled

untitled ArcGIS Server Web services Web services Application Web services Web Catalog ArcGIS Server Web services 6-2 Web services? Internet (SOAP) :, : Credit card authentication, shopping carts GIS:, locator services,

More information

Microsoft Word - Learn Objective-C.doc

Microsoft Word - Learn Objective-C.doc Learn Objective C http://cocoadevcentral.com/d/learn_objectivec/ Objective C Objective C Mac C Objective CC C Scott Stevenson [object method]; [object methodwithinput:input]; output = [object methodwithoutput];

More information

SUBMIT 创建一个提交按钮 写 按钮的 type= RESET 创建一个 置按钮 input 元素还能创建如 控件 文本框(type= text ) 复选框 type= checkbox 密码框 type= password 自定 按钮 单选按钮 type= radio type= button

SUBMIT 创建一个提交按钮 写 按钮的 type= RESET 创建一个 置按钮 input 元素还能创建如 控件 文本框(type= text ) 复选框 type= checkbox 密码框 type= password 自定 按钮 单选按钮 type= radio type= button 6 日作业 第 1 章 2.1 3 一 单项选择填空 浏览的页面编写语言是 1 可以不用发布就能在本地计算机 a) ASP 2 b) HTML c) PHP d) JSP 技术是基于 Java Servlet 以及整个 java 体系的 Web 开发技术 c a) CGI b) ASP c) JSP d) PHP 3 在客户端网页脚本语言中最为通用的是( a a) JavaScript b) VB

More information

untitled

untitled OO 1 SQL Server 2000 2 SQL Server 2000 3 SQL Server 2000 DDL 1 2 3 DML 1 INSERT 2 DELETE 3 UPDATE SELECT DCL 1 SQL Server 2 3 GRANT REVOKE 1 2 1 2 3 4 5 6 1 SQL Server 2000 SQL Server SQL / Microsoft SQL

More information

<4D6963726F736F667420576F7264202D20C6F3D2B5CDF8D5BECFB5CDB3BCBCCAF5B9E6B7B6CAE9A3A8C6C0B9C0D3C3A3A92E646F63>

<4D6963726F736F667420576F7264202D20C6F3D2B5CDF8D5BECFB5CDB3BCBCCAF5B9E6B7B6CAE9A3A8C6C0B9C0D3C3A3A92E646F63> 企 业 门 户 网 站 系 统 技 术 规 范 书 1. 综 述 1.1. 本 技 术 规 范 书 是 实 施 企 业 门 户 网 站 系 统 ( 以 下 简 称 系 统 ) 项 目 的 技 术 规 范 及 说 明 内 容 包 括 系 统 功 能 系 统 性 能 系 统 架 构 软 硬 件 产 品 和 运 行 环 境 实 施 和 售 后 服 务 培 训 等 要 求 1.2. 本 技 术 规 范 书

More information

FileMaker 15 WebDirect 指南

FileMaker 15 WebDirect 指南 FileMaker 15 WebDirect 2013-2016 FileMaker, Inc. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker FileMaker Go FileMaker, Inc. FileMaker WebDirect FileMaker, Inc. FileMaker

More information

untitled

untitled Inside ASP.NET 2.0- ASP.NET 1.1 2. 理念 讀 了 了 度 讀 了 理 類 來 來說 流 了 來 來 來 來 理 來 不 讀 不 不 力 來參 流 讀 了 異 行 來了 錄 行 不 了 來 了 來 行 論說 了 更 不 例 來了 力 行 樂 不 說 兩 例 利 來 了 來 樂 了 了 令 讀 來 不 不 來 了 不 旅行 令 錄 錄 來 了 例 來 利 來 ManagerProvide

More information

Oracle Database 10g: SQL (OCE) 的第一堂課

Oracle Database 10g: SQL (OCE) 的第一堂課 商 用 資 料 庫 的 第 一 堂 課 中 華 大 學 資 訊 管 理 系 助 理 教 授 李 之 中 http://www.chu.edu.tw/~leecc 甲 骨 文 俱 樂 部 @Taiwan Facebook 社 團 https://www.facebook.com/groups/365923576787041/ 2014/09/15 問 題 一 大 三 了, 你 為 什 麼 還 在 這

More information

Microsoft Word - 学字〔2015〕16号

Microsoft Word - 学字〔2015〕16号 山 东 省 教 育 厅 鲁 教 学 字 2015 16 号 山 东 省 教 育 厅 关 于 做 好 2016 届 师 范 类 高 校 毕 业 生 生 源 信 息 和 特 困 家 庭 毕 业 生 信 息 审 核 工 作 的 通 知 有 关 高 等 学 校 : 为 全 面 准 确 掌 握 全 省 2016 届 师 范 类 高 校 毕 业 生 生 源 信 息 和 特 困 家 庭 毕 业 生 情 况, 进

More information

主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new

主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new ListView 自訂排版 主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new int[]{r.drawable.dog1, R.drawable.dog2,

More information

untitled

untitled PowerBuilder Tips 利 PB11 Web Service 年度 2 PB Tips PB9 EAServer 5 web service PB9 EAServer 5 了 便 web service 來說 PB9 web service 力 9 PB11 release PB11 web service 力更 令.NET web service PB NVO 論 不 PB 來說 說

More information

JavaIO.PDF

JavaIO.PDF O u t p u t S t ream j a v a. i o. O u t p u t S t r e a m w r i t e () f l u s h () c l o s e () public abstract void write(int b) throws IOException public void write(byte[] data) throws IOException

More information

Microsoft Word - 序+目錄.doc

Microsoft Word - 序+目錄.doc ORACLE 公 司 的 專 業 認 證 是 當 今 市 場 上 公 認 價 值 最 高, 最 具 鑑 別 力 的 認 證 目 前 全 球 有 超 過 50 萬 以 上 人 已 透 過 Oracle Certification Program 取 得 專 業 認 證, 成 為 職 場 新 鮮 人 的 首 選 認 證, 它 具 有 以 下 三 大 優 勢 : 一 更 多 的 工 作 機 會, 二 更

More information

SP_ SP_03 JAVA...6 SP_10 SQL...8 SP_ SP_ SP_ SP_ SP_ SP_ SP_ SP_04.NET...33 SP_02 C...37 SP_05

SP_ SP_03 JAVA...6 SP_10 SQL...8 SP_ SP_ SP_ SP_ SP_ SP_ SP_ SP_04.NET...33 SP_02 C...37 SP_05 1 SP_01...3 SP_03 JAVA...6 SP_10 SQL...8 SP_51...12 SP_32...15 SP_53...18 SP_20...21 SP_22...24 SP_21...27 SP_23...30 SP_04.NET...33 SP_02 C...37 SP_05 FLASH...39 SP_06...42 2 SP_01 1. 8. Excel 2. 9. PowerPoint

More information

ebook42-13

ebook42-13 13 Excel E x c e l 13 Excel 133 E x c e l 13.1 1 E x c e l 2 X Y y x 12 1 7 1 3 134 Excel 2000 13-1 13-2 13-1 13-2 4 E x c e l 1) E x c e l 3 2) E x c e l 13 Excel 135 3) 1 13-3 Microsoft Excel 4) 13-3

More information

面向.NET的Web应用程序设计for VB.NET模拟题_70-305_.doc

面向.NET的Web应用程序设计for VB.NET模拟题_70-305_.doc .NET Web for VB.NET (MCP 70-305) 1. Web ASP.NET ServerA Microsoft SQL Server 2000 ServerA ServerA Factory SQL Server 2000 FactoryDB Windows FactoryDB ASP.NET FactoryDB SqlConnection ServerA Factory SQL

More information

專題 ASP.NET + DB

專題 ASP.NET + DB ASP.NET + 資料庫 建國科技大學資管系饒瑞佶 2015/9 V1 2016/3 V2 幾件一定要會的事 資料庫架構 SQL 指令.NET 資料庫存取架構 資料庫種類 檔案式 vs. Server 式 階層式 網狀式 關聯式 NOSQL 資料庫系統 資料庫 資料庫管理者 應用程式 資料庫 內容 SQL Server (server 式 ) 使用北風 (Northwind) 或 POS 範例資料庫

More information

天津天狮学院关于修订2014级本科培养方案的指导意见

天津天狮学院关于修订2014级本科培养方案的指导意见 目 录 天 津 天 狮 院 关 于 修 订 2014 级 本 科 培 养 方 案 的 指 导 意 见...1 金 融 类 专 业...9 金 融 专 业 培 养 方 案...9 保 险 专 业 培 养 方 案...14 人 力 资 源 管 理 专 业 培 养 方 案...19 劳 动 与 社 会 保 障 专 业 培 养 方 案...24 工 商 管 理 类 专 业...29 市 场 营 销 专 业

More information

Microsoft Word - 改版式网页全文.doc

Microsoft Word - 改版式网页全文.doc 第 4 章 Dreamweaver CS3 高 级 篇 4.1 表 单 概 述 表 单 是 用 来 收 集 浏 览 者 的 用 户 名 密 码 E-mail 地 址 个 人 爱 好 和 联 系 地 址 等 用 户 信 息 的 输 入 区 域 集 合 浏 览 者 填 写 表 单 的 方 式 一 般 是 输 入 文 本 选 择 单 选 按 钮 或 复 选 框 以 及 从 下 拉 列 表 框 中 选 择

More information

十天学会 ASP.NET 第一天 我认为 ASP.NET 比 ASP 难很多, 希望大家做好准备 难难在实现同一个效果有很多方法, 大家或许会疑惑 十天学会系列教程会清晰的写出各种方法, 让大家能少一点坎坷 在 ASP 里面, 大家几乎都是使用 VB, 数据库嘛, 也无非是 SQL 和 ACCESS

十天学会 ASP.NET 第一天 我认为 ASP.NET 比 ASP 难很多, 希望大家做好准备 难难在实现同一个效果有很多方法, 大家或许会疑惑 十天学会系列教程会清晰的写出各种方法, 让大家能少一点坎坷 在 ASP 里面, 大家几乎都是使用 VB, 数据库嘛, 也无非是 SQL 和 ACCESS 十天 学会 ASP NET 第一天 : 调试出安装环境第二天 : 掌握 C# 的基本知识第三天 : 掌握 WEB 控件的使用 ( 一 ) 第四天 : 掌握 WEB 控件的使用 ( 二 ) 第五天 : 学会连接两种数据库第六天 : 学会读取数据库第七天 : 学会添加删除修改记录第八天 : 初步掌握 DATAGRID 的使用第九天 : 学会用 DATAGRID 分页显示第十天 : 学会 SESSION

More information

5-1 nav css 5-2

5-1 nav css 5-2 5 HTML CSS HTML CSS Ê Ê Ê Ê 5-1 nav css 5-2 5-1 5 5-1-1 5-01 css images 01 index.html 02 5-3 style.css css 03 CH5/5-01/images 04 images index.html style.css 05

More information

Chapter 9: Objects and Classes

Chapter 9: Objects and Classes Java application Java main applet Web applet Runnable Thread CPU Thread 1 Thread 2 Thread 3 CUP Thread 1 Thread 2 Thread 3 ,,. (new) Thread (runnable) start( ) CPU (running) run ( ) blocked CPU sleep(

More information

Microsoft PowerPoint - L17_Inheritance_v4.pptx

Microsoft PowerPoint - L17_Inheritance_v4.pptx C++ Programming Lecture 17 Wei Liu ( 刘 威 ) Dept. of Electronics and Information Eng. Huazhong University of Science and Technology May. 2015 Lecture 17 Chapter 20. Object-Oriented Programming: Inheritance

More information

Strings

Strings Inheritance Cheng-Chin Chiang Relationships among Classes A 類 別 使 用 B 類 別 學 生 使 用 手 機 傳 遞 訊 息 公 司 使 用 金 庫 儲 存 重 要 文 件 人 類 使 用 交 通 工 具 旅 行 A 類 別 中 有 B 類 別 汽 車 有 輪 子 三 角 形 有 三 個 頂 點 電 腦 內 有 中 央 處 理 單 元 A

More information

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

KillTest 质量更高 服务更好 学习资料   半年免费更新服务 KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务 Exam : 70-515 Title : TS: Web Applications Development with Microsoft.NET Framework 4 Version : Demo 1 / 13 1.You are implementing an ASP.NET application

More information

EJB-Programming-3.PDF

EJB-Programming-3.PDF :, JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Value Object Design Pattern J2EE Design Patterns Value Object Value Object Factory J2EE EJB Test Client

More information

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

KillTest 质量更高 服务更好 学习资料   半年免费更新服务 KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务 Exam : 70-523 Title : UPG:Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev Version : Demo 1 / 13 1.You use Microsoft Visual Studio 2010 and Microsoft.NET

More information

没 有 多 余 的 Contruol 或 Action 了 原 来 Domain 层 被 服 务 层 Service layer 遮 挡, 在 右 边 图 中, 则 Domain 层 直 接 暴 露 给 前 台 了, 没 有 被 遮 挡, 裸 露 了 这 样 一 步 到 位 实 现 领 域 模 型

没 有 多 余 的 Contruol 或 Action 了 原 来 Domain 层 被 服 务 层 Service layer 遮 挡, 在 右 边 图 中, 则 Domain 层 直 接 暴 露 给 前 台 了, 没 有 被 遮 挡, 裸 露 了 这 样 一 步 到 位 实 现 领 域 模 型 文 章 编 号 :1007-757X(2012)1-0036-04 领 域 驱 动 模 型 的 WEB 软 件 系 统 设 计 研 究 摘 要 : J2EE 3 JDK1.7 Tomcat WEB 关 键 词 : 中 图 分 类 号 :TP311 文 献 标 志 码 :A 0 引 言 Web 软 件 系 统 的 分 层 结 构 典 型 的 J2EE 软 件 系 统 开 发 方 法 分 为 三 层 结

More information

概述

概述 OPC Version 1.8 build 0925 KOCRDK Knight OPC Client Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOC_Init...5 2.2.2 KOC_Uninit...5 2.3...5

More information

MVB-1001.DOC

MVB-1001.DOC 20 1.5 10 15 20 25 80 100 CSF 1. 2. 0105 3. 4. 5. 30% 1.5 0.75 1. Visual Basic Visual Basic (A) Visual Basic Enterprise Edition (B) Visual Basic Script Edition (C) Visual Basic Learning Edition (D) Visual

More information

声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本 公 司 负 责 人 和 主 管 会 计 工

声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本 公 司 负 责 人 和 主 管 会 计 工 Shenzhen WitSoft Information Technology Co., Ltd. 主 办 券 商 二 〇 一 六 年 二 月 声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本

More information

<4D6963726F736F667420506F776572506F696E74202D20332D322E432B2BC3E6CFF2B6D4CFF3B3CCD0F2C9E8BCC6A1AAD6D8D4D8A1A2BCCCB3D0A1A2B6E0CCACBACDBEDBBACF2E707074>

<4D6963726F736F667420506F776572506F696E74202D20332D322E432B2BC3E6CFF2B6D4CFF3B3CCD0F2C9E8BCC6A1AAD6D8D4D8A1A2BCCCB3D0A1A2B6E0CCACBACDBEDBBACF2E707074> 程 序 设 计 实 习 INFO130048 3-2.C++ 面 向 对 象 程 序 设 计 重 载 继 承 多 态 和 聚 合 复 旦 大 学 计 算 机 科 学 与 工 程 系 彭 鑫 pengxin@fudan.edu.cn 内 容 摘 要 方 法 重 载 类 的 继 承 对 象 引 用 和 拷 贝 构 造 函 数 虚 函 数 和 多 态 性 类 的 聚 集 复 旦 大 学 计 算 机 科 学

More information

untitled

untitled 21 Visual FoxPro Visual FoxPro 6.0 11 Visual FoxPro Visual FoxPro CIP Visual FoxPro 2004 21 ISBN 7-03-014834-7 V Visual FoxPro TP311.138 CIP 2004 143035 16 100717 http://www.sciencep.com * 2004 12 7871092

More information