当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: source:http://msdn.microsoft.com
 

 

 ·排列组合与回溯算法浅谈    »显示摘要«
    摘要:[原创] kuibing 2003-11-14 这篇论文主要针对排列组合对回溯算法展开讨论,在每一个讨论之后,还有相关的推荐题。在开始之前,我们先应该看一下回溯算法的概念,所谓回溯:就是搜索一棵状态树的过程,这个过程类似于图的深度优先搜索(dfs),在搜索的每一步(这里的每一步对应搜索树的第i层)中产生一个正确的解,然后在以后的每一步搜索过程中,都检查其前一步的记录,并且它将有条件的选择以后的每一......
 ·java程序设计的基本结构    »显示摘要«
    摘要:--------------------------------------------------------------------------本系列文档配合前面的《jbuilder开发实践者之路》系列文章推出,站在语言本身的层次上供大家学习java程序设计语言。主要参考java在线文档,以及《java2核心技术》。文章定位和读者对象主要是针对零起点的读者。基本上针对初级读者逐步辅导走上jav......


Using Reflection to Bind Business Objects to ASP.NET Form Controls
source:

http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/aspformbinding.asp 【程序编程相关:JDBC 高级数据类型的应用

【推荐阅读:文字逐字上屏的实现(C代码)

【扩展信息:学习JSP指南

begin:

john dyer

dallas theological seminary

september 2004

applies to:

   microsoft visual studio 2005 and previous versions

   asp.net 1.1

   c# programming language

   visual basic programming language

summary: use reflection to bind your business objects to asp.net web forms with a single line of code, resulting in decreased complexity and fewer errors. (12 printed pages)

download the msdformbinding.msi sample file.

contents

introduction

simplifying and shortening form code

getting started: retrieving a list of properties from reflection

binding object property values to controls

setting values of unknown controls with known properties

reversing the process: bindcontrolstoobject

performance and extending the formbinding scheme

conclusion

introduction

one of the most common tasks web developers do over and over is to build a simple form that updates a database table. we create a list page that displays the records in a table and a form page with appropriate form controls for each database field. many developers also use business objects that represent their database tables to organize their code into a multitiered design. if the database table (documents) is represented by a business object (document), many of our forms look something like the code below:

<script runat="server"> protected void page_load(object src, eventargs e) { if (!ispostback) { document document = documents.getdocument(request.querystring["documentid"]); title.text = document.title; active.checked = document.active; createddate.text = document.createddate.tostring(); authorid.findbyvalue(document.authorid.tostring()).selected = true; // ... and so on htmlbody.text = document.htmlbody; } } protected void savebutton_click(object src, eventargs e) { document document = documents.getdocument(request.querystring["documentid"]); document.title = title.text; document.active = active.checked; document.createddate = convert.todatetime(createddate.text); document.authorid = convert.toint32(authorid.selecteditem.value); // ... and so on document.htmlbody = htmlbody.text; documents.update(document); } </script> simplifying and shortening form code


...   下一页
 ·映射 dtd 到数据库[下]    »显示摘要«
    摘要:3.4. 映射次序 本节讨论对象-关系映射如何处理次序。 3.4.1. 同级次序, 层次次序, 和文档次序 同级(sibling)意味着“兄妹”。就是说,同级元素或 pcdata 是有相同父元素的元素或 pcdata。换句话说,它们出现在同一个内容模型中。例如,如果在前面的章节中文档被表示为一棵树,这很容易的显示出那些元素是同级的: 这些元素在这个层次的第二级上,都有 a......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE