欢迎来到毕设资料网! | 帮助中心 毕设资料交流与分享平台
毕设资料网
全部分类
  • 毕业设计>
  • 毕业论文>
  • 外文翻译>
  • 课程设计>
  • 实习报告>
  • 相关资料>
  • ImageVerifierCode 换一换
    首页 毕设资料网 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    计算机专业外文翻译---数据捆绑技术

    • 资源ID:129977       资源大小:24.16KB        全文页数:6页
    • 资源格式: DOCX        下载积分:100金币
    快捷下载 游客一键下载
    账号登录下载
    三方登录下载: QQ登录
    下载资源需要100金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

    计算机专业外文翻译---数据捆绑技术

    1、出自微软 数据技术 The Data Binding Technology In my project,I need to show the data from the DataBase,so I need to use the data binding technology which Microsoft company support.In the following ,lets discuss it together. If you are familiar with classic ASP, the declarative data binding syntax introduced

    2、in ASP.NET will be familiar to you even though the functionality is vastly different. Data binding expressions are the code you see between characters in an ASPX file. The expressions allow you to easily bind controls to data sources, as well as properties, expressions, and results from method calls

    3、 exposed by the page. While this feature is easy to use, it often causes some confusion about what is allowed and whether it should be employed. Data binding basics Data binding expressions link ASP.NET page properties, server control properties, and data sources when the pages DataBind method is ca

    4、lled. You can place data binding expressions on the value side of an attribute/value pair in the opening tag of a server control or anywhere in the page. All data binding expressions, regardless of where you place them, must be contained between characters. When used with data controls (like Repeate

    5、r, DataGrid, and so forth), the expression parameter is usually a column name from the data source. However, as long as it returns a value, any valid expression may be used. Likewise, the same syntax may be used outside list controls. This includes displaying values on the page or populating control

    6、 attributes. Container.DataItem is a runtime alias for the DataItem bound to a specific item. It maps to an individual item from the data source like one row from a database query or an individual element from an array. The actual data type for the DataItem is determined by the data source. So, if y

    7、oure dealing with an array of integers, the DataItem will be an integer. The following list provides a quick review of the VB.NET syntax for various scenarios: -An array of string values is returned. -The specific field from a DataView container is returned. -The specific string property value of da

    8、ta source is returned. -Returns a property value converted to its string representation. When youre using C#, the syntax is a bit different. The following list includes the corresponding C# code for each line in the previous list. Notice the basic syntax is the same, but it changes when property val

    9、ues are returned and converted to the appropriate data type. Syntax is consistent when working with page level properties and methods. The syntax remains the same as long as string values are returned. The following list provides some examples: -The value for a page level property is returned. asp:L

    10、istBox id=lstValues datasource= runat=server-The value retrieved from the page level property (array, collection of objects, etc.) is bound to the data control. -The value of the page level object property is displayed. -The value returned from the page method is displayed. You may use individual va

    11、lues (albeit properties, method return values, and so forth) on a page using the following syntax: The C# code in Listing A demonstrates data binding in an ASP.NET Web form. It selects employee names and telephone numbers from the SQL Server Northwind Employees table. The values from the query are d

    12、isplayed via an ASP.NET Repeater control. The column values are inserted via data binding, and the forms window title is populated using a method call. In addition, the ItemIndex property of the DataItem is used to display a row number. The ItemIndex property begins with zero, so one is added before

    13、 it is displayed. Listing B contains the equivalent VB.NET code. The main difference is the use of parentheses as opposed to brackets in C#. Also, the casting of the rows is not necessary with VB.NET. Using the Contain.DataItem object can be tedious, since you must be aware of the data type and conv

    14、ert it accordingly for use. Microsoft does provide the DataBinderclass to further simplify development. Microsoft documentation (on MSDN) states the DataBinder class uses reflection to parse and evaluate a data binding expression against an object at runtime. This method allows RAD designers, such a

    15、s Visual Studio .NET, to easily generate and parse data binding syntax. This method can also be used declaratively on a Web forms page to simplify casting from one type to another. You can use the Eval method of the DataBinder class to make .NET do the heavy lifting when using data values in an ASP.

    16、NET page. The Eval method accepts the previously covered Container.DataItem object; it works hard to figure out the details of the field identified in the expression and displays it accordingly. It has the following syntax: DataBinder.Eval(Container.DataItem, field name, optional formatting) Using t

    17、his syntax, you could rewrite the first example to use DataBinder.Eval to look like the C# code in Listing C. Listing D contains the equivalent VB.NET code. The DataBinder.Eval approach is great as it pushes work to the system. On the other hand, you should use it with caution, since time and resour

    18、ces are consumed as the system locates the element and determines its object/data type. Plenty of options Data binding makes it relatively simple to include data in ASP.NET pages. There are various data binding options available, which include: binding the data to a control and allowing it to decide how it is presented, or choosing declarative data binding to control presentation within the ASP.NET page. In the end, it comes down to your preference, but it is great to have options.


    注意事项

    本文(计算机专业外文翻译---数据捆绑技术)为本站会员(泛舟)主动上传,毕设资料网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请联系网站客服QQ:540560583,我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们
    本站所有资料均属于原创者所有,仅提供参考和学习交流之用,请勿用做其他用途,转载必究!如有侵犯您的权利请联系本站,一经查实我们会立即删除相关内容!
    copyright@ 2008-2025 毕设资料网所有
    联系QQ:540560583