Because I have developed a webpage based on a developed website, it is my first ASP. NET webpage.
Figure 1
Figure 2
Requirement: some resources are allocated to user B each time the task is assigned. After the task is completed, user a wants to get feedback in time to release the resources; note that after the task is completed, B still wants to retain resources until it is no longer needed. The requirement is to provide a Page C to obtain the list of resources to be released. 1.
DESIGN: provides a calendar control that allows a to obtain information about resources to be released on a specified day by clicking the date. B submits resource-related data through other pages, such as updatedtime, status, and recycleresourcesornot. Page C displays the resource data obtained from SQL, and needs to meet the requirement that a can directly obtain the list of resources to be released from the page. For example, you can directly copy the value of the resource column from the page. 2.
Implementation:
- Title
Add a lable to the display. The current date is displayed by default when you load the page. When you click the calendar control to change the time, the display date is also dynamically changed.
- Calendar Control
Click the event to get the selected date as the sqldatasource Control Parameter and determine the date validity.
- Export to excel
- Gridview/sqldatasource Control
- Magicmirror button
In the click event, the property value of the gridview. Columns. Visible column except the resource column is reversed. In this way, only the resource column is visible at one click, and then all columns are visible at one click.