Asp.Net C#网格视图 [英] Asp.Net C# grid view

查看:65
本文介绍了Asp.Net C#网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在开发用于跟踪员工工作时间的时间跟踪Web应用程序,在此即时消息中,它使用了带有模板字段的网格视图.我正在使用带有模板字段的网格视图来获取用户输入的工作日.

网格视图看起来像

Hi I''m developing Time Tracking Web application which is used to track employee working hours, in this im using grid view with template fields. I''m using grid view with template field to get input from user for a week days.

Grid View Looks like

                                             [------Template Fields------]
Project  Module  Activity Sub-Activity       Monday  Tuesday ...... Sunday
                                            (22-Aug) (23-Aug)       (28-Aug)
[----dropdownlist to select detail----]      [----Text Box to get time---]



Add New Row (button)                         Save(button)    Update(button)


我的数据库表具有类似
的字段


My Database table has fields like

* work_id    (autogenerated field)
* project_id
* Module_id
* activity_id
* sub_activity_id
* work_date   (this field to save template field values)



我的问题是如何按日期明智地从网格视图中保存输入的值(剩余天数同样为星期一的Project_id,Module_id,activity_id,sub_activity_id work_date).

我计划将特定日期保存在数据库中.我如何从网格视图中保存该数据并在网格视图中显示输入的值以及更新选项.它是否可能,如果不是,请对该应用程序提出一些建议.



My question is how can I save the entered values from grid view by date wise (Project_id, Module_id, activity_id, sub_activity_id work_date for Monday likewise for remaining days).

Im plannig to save in database for particular date. How can i save this from grid view and display the entered values in grid view and also with update option. Whether its is possible or not, if not means kindly give some suggestion for this application.

推荐答案

它是否已经发生了?您的数据库表中确实有工作日期列.
Isn''t it happenning already? You do have work date column in your database table.


这篇关于Asp.Net C#网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆