在asp.net网页上编码 [英] coding on asp.net web page

查看:79
本文介绍了在asp.net网页上编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计了一个日历和一个文本框.当我自动单击日历上的一个日期时,它将在以前存储的文本框中显示当天的工作.我该怎么做?

i have designed a calender and a text box .when i will click one date on calender automatically it will show the work of that day on text box which is previously stored.how can i do it?

推荐答案

在日历的选择更改事件中,获取日期并将其传递给sql命令(从tbl_temp中选择工作,其中date = selecteddate).

执行命令并获取工作并将其显示在文本框中
In selection changed event of calendar, get the date and pass it to sql command (Select work from tbl_temp where date=selecteddate).

Execute the command and get the work and display it in textbox


1-您需要一个数据库!
2-一张桌子
3-一些列,如下所示:
日期
说明
.
.
.
4-您保存日期
5-当您单击表时,必须运行表的事件,然后在事件范围内从数据库中读取数据
6-仅在文本框或任何其他控件中显示它

祝你好运
1- you need a database !
2- a table
3- some columns like below:
date
description
.
.
.
4- you save dates
5- when you click on the table must run events of the table then read data from the database on the event scope
6- show it simply in textbox or any other control

good luck


这篇关于在asp.net网页上编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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