Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand ASP.NET Web Development Framework Project

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you how to understand the ASP.NET Web development framework project, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Project name: Enterprise Solution

Technical parameters

1 C # ASP.NET Web Forms technology, with the help of ExtAspNet control, rapid development

2 SQL Server database. Use LLBL Gen ORM framework for data reading and writing, which can support any database

Based on the LLBL Gen ORM framework, reduce the dependence on SQL scripts and focus on business logic

Login form, showing the database that needs to be logged in

Enter the main form frame. On the left is the function navigation, and on the right is the function list.

Click on the tree node, expand the corresponding function item on the right, click the function, open a new tab, and load this function.

If you are not used to the English interface, you can click the settings in the Quick launch bar to choose simplified or traditional Chinese, and the interface will immediately switch to the corresponding language.

In the figure above, the tab is not translated into the corresponding language. The following translation should be added to the framework database to display the correct language.

Exec spAddTranslationText N'Sales Order', null, N 'sell list', N 'sales order'

All translation projects are completed in this way. You can change the content of the translation by looking at the table LanguageTranslation.

Three basic functions

1 data input form inherits from this form, which can quickly input and save entity data and read

2 the report form inherits from this form, which is convenient to render Microsoft's RDLC client report.

3 Custom queries designed in query designer can be displayed as ASP.NET Web interface, browse data records and export to EXCEL

Five core components

1 menu designer to realize flexible interface navigation and easy to customize

2 report designer flexibly designs report and its parameters, it is convenient to realize multi-language, multi-parameter transmission and automatic binding of data sources.

3 query designer designs queries, which can be used for rendering in both Cpicurus and Bripple.

4 Workflow designer meets the frequently changing workflow (message notification, approval) by dragging and dragging.

5 Development tools provide a sufficient number of auxiliary tools to facilitate various needs in development. The preview of development tools is shown below.

These tools originated from the usual thinking and collection. For example, the data reading and writing code of Enterprise Solution is based on Code Smith template code. If you need to automatically pass parameters to the Code Smith template and generate the specified file, you need to use the Smith Builder code generation assistant tool in the figure above. For example, Solution Converter originates from switching projects in different versions of Visual Studio, so this tool is convenient. The source code of this project comes from CodeProject, here, I just integrated it into Solution Package.

Project source code view

Business Logic business model entity

Service data read and write code, all generated by the code generator Smith Builder

ExtAspNet third-party control library, which has been partially extended (extension) to meet the need

Enterprise Solution Web application source code, ASP.NET Web Forms structure. In the Web project, all folder and page names are lowercase, and the folder name of the page matches the namespace of its type. Let's look at the background source code of a notepad page.

[Function ("AIITRL", "~ / module/note.aspx")] public partial class note: EntryPageBase {protected override void PageLoadEvent (object sender, EventArgs e) {if (! IsPostBack) TransactionType = "BlotterEntity"; base.PageLoadEvent (sender, e) } public override EntityBase2 LoadEntity (string customerNo) {IBlotterManager manager = ClientProxyFactory.CreateProxyInstance (); BlotterEntity customer = manager.GetBlotter (Convert.ToInt16 (customerNo)); return customer;} public override void DeleteEntity (EntityBase2 entity) {BlotterEntity user = (BlotterEntity) entity IBlotterManager manager = ClientProxyFactory.CreateProxyInstance (); manager.DeleteBlotter (user);} public override void SaveEntity (EntityBase2 entity) {BlotterEntity user = (BlotterEntity) entity; IBlotterManager manager = ClientProxyFactory.CreateProxyInstance (); manager.SaveBlotter (user);}}

This is the basic data read and write all the code, including read, delete, save, are in the form of override, called by the framework class.

The notepad function interface is shown in the figure above. The EntryPageBase type greatly simplifies the code amount of the data entry form and focuses on logic.

The above content is how to understand the ASP.NET Web development framework project, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report