How to implement such a function, Master/Detailed tabbed Control

Source: Internet
Author: User

I want to implement this function. An interface for entering the order page. This interface is very common in C/S, but it is not easy in B/S. I have read a lotCode, Not found a very suitable.
The screen consists of order header, order item list, and order item detail.
The following functions can be completed for these three parts:
1: It can be edited at the same time, that is, three parts can be simultaneously operated on a screen.
2: Order header. Order item comes from two different tables.
3: Order item list and order item detail are placed in two view pages of tabbed control. When you select an order item list (gridview) Row, switch to order item detail (formview) to display the content of this row.
4: Save and cancel at the same time. That is, a button saves the order header and order item at the same time.

5: Of course, the screen should also include new, save, delete, find, first, Prior, next, last and other operation buttons.

Switchover functions: gridview/detailsview/formview

Http://www.lemongtree.com/zh-cn/item,292.html

Here refer
Below is an example of an sqldatasource that uses a control parameter, which
Takes the value from a dropdownlist control.



propertyname = "selectedvalue"
type = "int32"/>

the above bit in the tags is the key. the mane
property matches a parameter within your sqlquery or stored procedure, in the
abve example this is @ statusid. the controlid property is set to the ID of
the control from which to take the value of the parameter, in the case a
dropdownlist control called ddlselectstatus. this can be any Asp.net
control. the propertyname property is the property of the control poited to
by controlid, from which you want to take the value for the parameter. in
this case it takes the selectedvalue from the ddlselectedstatus control.

In your case you wocould just set up the datasource control to return
Values you needed, with a "where foreignkeyid = @ myparam" type where clause.
Then set up myparam as a controlparameter, as in the example above, but set
The controlid to the ID of your gridview and set the propertyname
Selectedvalue. The just bind this datasource to the formview using
Performanceid property and it will work.

Tabbed Control
Http://www.alistapart.com/articles/slidingdoors/ tab pretty
Creating a Tabbed interface for displaying parent/child data
Http://aspnet.4guysfromrolla.com/articles/092204-1.aspx

Use multiview controls in ASP. NET 2.0
Http://dev.yesky.com/msdn/30/2335530.shtml
A simple ASP. NET tab control using the multiview Control
Http://www.codeproject.com/aspnet/TabControl.asp

after two days of study, it is found that tabbed is easy to implement but dynamic data is used. This is troublesome because it requires interaction with background data. It can only be implemented using JavaScript.
How do I hand in the accounts script with the backend?

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.