65.9K
CodeProject 正在变化。 阅读更多。
Home

插入、更新、删除、导航和搜索的简单方法

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.30/5 (8投票s)

2008年2月15日

CPOL
viewsIcon

32380

downloadIcon

1423

插入、更新、删除、导航和搜索的简单方法

Article

引言

我一直在寻找用于插入、删除、更新和导航的工具,以便开发 Web 应用程序。但我没有找到。我决定使用 Web 自定义控件项目制作这个控件。我相信这对大家会有用。

背景

Code.gif PageCode.gif

使用代码

这篇文章对于以简单的方式设计应用程序非常有用,无需编写任何代码即可实现插入、删除、更新、搜索和导航。只需设置属性即可工作。此工具仅支持 ODBC(sqlserver、Access 和 Mysql)。

WCLbase.dll consists WCLTextbox,WCLComboBox,WCLSearch and WCLToolBar.
Use these dll in your web application please follows the below steps:

1. Choose the items from in ur toolbox.Browse the .Net Component add the    WCLbase.dll.
2. After getting items in ur toolbox ,just drag and drop the controls.
3. For example put the WCLTextbox on the page and set its properties.
   DataSource mentions the Tablename and DataMember mentions the Field of the  Table.Type       property is must to identify the column of the type. It can be  string,integer,date,decimal.

4. WCLToolbar has the three properties: Connection,DataSource and Keyvalue.
   We should set Connection string to  Connection Property.
   Keyvalue is unique id of the tablename and its datatype should be int.

5. WCLCombobox has five properties : Connection,DataSource,DataTextField,DataValueField and      ControlSource.DataTextField is display the text,DataValueField is value of the field and    ControlSource is used for releation of the WCLToolbar DataSource and its Datasource.
   
6. We should give the search items to WCLSearch control on page_load event.
   These properties should match with WCLToolbar Properties.

	
	

请记得使用语言下拉菜单设置代码片段的语言。

使用“var”按钮将变量或类名包裹在<code>标签中,例如this

关注点

在编写代码的过程中,你学到了什么有趣/好玩/令人恼火的东西吗? 你做了什么特别巧妙、疯狂或异想天开的事情吗?

历史

大家好,我是 Gnanavadivelu,居住在 Pondicherry。我非常喜欢在 ASP.Net 中工作。 我在 PSL Management and Software Technology LTD. 担任软件工程师。

© . All rights reserved.