Function navigation in one of ASP. NET web development frameworks

Source: Internet
Author: User

Function navigation mainly addresses how to layout functions and how to reasonably arrange functions in pages. Currently, a popular solution is left-side navigation, tree menu on the left, and detail function on the right. The implementation is as follows:

C/s of the same versionProgramThe interface appears with the same effect.

 

Click the tree node on the left side of the web page, and the corresponding function list is displayed on the right side to display the functions under the node. These function nodes are designed and implemented using the Menu Designer to help customers customize the main interface. The design style of the menu designer is as follows:

There are many ways to implement the parent-child relationship between Tree nodes. One way is to add a parentid to each node of the tree to indicate its upper-level node. In this way, each node designed must point out its parent node to present the parent-child relationship. Another method is as follows: 1002 is the sales Tree node, and its subnodes are all identified by 1002xx. As shown in, 100201 indicates the journal, and 100202 indicates the report, 100203 indicates query. For the previous method, see the x_menu table in the framework database. For the latter method, see usergroupmenu.

 

Another purpose of navigation is to achieve automatic switch between Chinese and English to facilitate different user preferences. All components of the enterprise solution series have built-in functions for switching between Chinese and English. You can select a preferred language in settings. For Web applications, users' language preferences are stored in the cookie of the browser. For c/s programs, users' language preferences are stored in the registry.

 

Let's take a look at how to quickly find the desired function and enable it. If you are used to searching in the left menu, you can directly enable this function in the function list area on the right of the menu. Another way is to enter function encoding in the Quick Start bar and click go. Then, it will open the function on the new options page. Generally, the system provides three types of functions.

    • Page Functions
    • Reports
    • Custom Query

How can I make an ASP. NET page a feature and be automatically found by the system framework? Please refer to the example belowCode

 
[Function ("Aiitrl","~ /Module/Note. aspx")]Public Partial ClassNote: entrypagebase {Protected Override VoidPageloadevent (ObjectSender, eventargs e ){If(! Ispostback) transactiontype ="Blotterentity";Base. Pageloadevent (sender, e );}}

Add the function feature to the page. The first parameter is the function code, and the second parameter is the absolute address of the page. When you enter aiitrl in the Quick Start column, the framework will find the (reflection) page and enable this function in the new tab page.

Here we need to mention a few shortcomings. for ASP. NET, it is requested by the browser for execution. Unlike C/S, you can create a new form and then show it. I have been looking for a way to find the address of the aspx file where the page is located through the page type, so that the second parameter of the function feature can be omitted, no feasible solutions have been found. The second parameter can be completed through the Menu Designer. However, the principle is similar to that here, and it is also manual recognition. Therefore, I directly put the address in the feature parameter for navigation.

 

The second type of function is report. Design the report in the report designer and give a number, as shown in

In the report design form, give basic parameters. Then, place the report file in the report directory of the web project. Theoretically, it is necessary to support three popular report systems. Rdlc, Microsoft Client report, simple, easy to use, Crystal Report, powerful functions, reporting services Microsoft Server Report. Enterprise Solution web section. Currently, only rdlc client reports are available. The other two reports are available for further research and implementation. To add a report type, you must implement the following basic functions:

1 Basic Chinese, English, and traditional Chinese

2 or more versions. There are multiple versions of crystal report. You must be able to identify report files of different versions and load the appropriate render)

3. Enter and pass the value on the page. Some reports need to pass parameters. The system needs to create interface input values and automatically import them to the reports.

 

The third feature is custom query. For queries designed by users in the query designer, the Web framework must be able to parse the interface and present it to users.

The query designed here is displayed on the following interface by entering puprsq function encoding in the Quick Start column:

The query result can be exported to excel. How to convert a query to a web interfaceArticleI will explain the principle, and I will skip it here.

 

The quality of the navigation function has a certain impact on the availability of the system. Imagine a system with complicated functions. If you want to find a function that cannot be found for a long time or find it quickly, you will not think it is easy to use. Secondly, the Quick Start bar design uses a function code to identify a function module required by the user, facilitating the user to quickly execute the required functions. If advanced users do not want to search for the node in the tree, they can execute the function in this method.

Finally, the navigation menu can be edited. A menu editor is provided to design the desired effect as needed.

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.