Common field events and results different relationship and processing

Source: Internet
Author: User

in ASP. NET development, maybe we need to add, search or do updates in a common field domain. The other Ammonium button events are also separate separately. Events do not handle the same results. This requires that the relationship and results between them be reconciled in an ASPX Web page.
If online users also asked similar questions:

Insus.net this as a small case, simple to do a demonstration, for your reference. Prepare the database First:

SQL Source:

CREATE TABLE [T1]([col1] NVARCHAR( -),[col2] NVARCHAR( -))GOCREATE PROCEDURE [dbo].[Usp_t1_insert](    @col1 NVARCHAR( -),    @col2 NVARCHAR( -)) asINSERT  into [dbo].[T1]([col1],[col2])VALUES(@col1,@col2)GOCREATE PROCEDURE [dbo].[Usp_t1_getall] asSELECT [col1],[col2]  from [dbo].[T1] GOCREATE PROCEDURE [dbo].[Usp_t1_search](    @col1 NVARCHAR( -),    @col2 NVARCHAR( -)) asSELECT [col1],[col2]  from [dbo].[T1] WHERE [col1]  like '%'+@col1 +'%'  and [col2]  like '%'+@col2 +'%'GO
View Code


Prepare the file or interface on the website in the following order:



Demonstrate:


Weibo will take the focus and simplification, the code is a different, you can directly download from the following link:
Http://download.cnblogs.com/insus/ASPDOTNET/DyFieldAspxUcInterface.rar


From this blog post, you will learn about the collaboration between ASPX and user control ascx, how to load statically, and dynamically load, how to set properties, assign values, and get values. The assignment of dynamic loading will be handled, and will be applied when developing ASP. The other interface (interface) does play an important role between multiple controls.

Common field events and results different relationship and processing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.