如何制作待办事项清单?(How to make a To-Do list )

   IT问题网   2021-01-24 00:00:00

问 题

我是vb.net的初学者,正在使用microsoft visual studio 2010.所以我知道如何将文本从文本框传输到标签。但是我如何每次都创建新标签,并且还可以选择删除任务。



谢谢

解决方案

说实话,我根本不会使用标签。

我会改为查看创建表格,并动态填写page load事件中的行。

这是我用来组织文件下载的表 - 类似的操作:

 lt;  表格 gt;  
lt; tr gt;
lt; td gt;
lt; style =" width:100%;" id =" tbdownloads" runat =" server" gt;
lt; tr gt;
lt; th gt;
文件
lt; / th gt;
lt ; th gt;
版本
lt; / th gt;
lt; th gt;
上传
lt; / th gt;
lt; / tr gt;
lt;! - 此表在运行时加载:请参阅页面加载函数 - gt;
lt; / table gt;
lt; / td gt;
lt; / tr gt;
lt; / table gt;


列表与lt;下载gt; downloads = getdownloadlist(); 
foreach (可下载的dl 下载)
{
tbdownloads。 rows.add(adddownloadfile(dl));
}


 私人  static  htmltablerow adddownloadfile(可下载的dl)
{
htmltablerow row = new htmltablerow();
// 文件名
htmltablecell cell = htmltablecell();
cell.innerhtml = " lt; a href = \"filetransferdownload.aspx?file =" + dl.id + " \"target = \"_blank \"gt;" + dl.filename + " lt; / agt;";
row.cells.add(cell);
// 版本
cell = new htmltablecell();
cell.innertext = dl.version.tostring();
row.cells.add(cell);
// 上传日期
cell = new htmltablecell();
cell.innertext = dl.uploadedon.tostring();
row.cells.add(cell);
返回行;
}


这样可以更好地控制正在发生的事情。

标签:如何制作待办事项清单



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

在asp.net网站上的sqlite as beckend(sqlite as beckend in asp.net website)

problem hello, we can embade sqlite as beckend and it wo ...

如何使用datagridview插入,更新数据到sql server中的表?(How to insert,update data to table in sql server using datagridview)

problem hi all visitors i have 1 table(salesdetail) in sq ...

如何从GetDate获取时间()(How to get only Time from GetDate())

problem how to get only time from getdate(). format is hh ...

使用Windows服务时出现问题(A problem in working with windows service)

problem hi, i have created a windows service ...

Windows窗体应用程序中跟踪栏的代码(code for trackbar in windows form application)

problem hi, there is a trackbar in my window ...

Prism女士和域名服务银光(Ms Prism and Domain services with silverlight)

problem hi, how can i work with microsoft pri ...

使用Python访问我的.dll文件(Access my .dll file using Python)

problem i am currently planning to access my mfc dialog b ...

从另一个Windows服务调用Windows服务(Call windows service from another windows service)

problem is it possible to call windows service from anoth ...

创建会计程序(creating accounting program)

problem hi all, can any one guide me how to creat acco ...

c sharp regex替换任何单词的第一个或最后一个字符(c sharp regex replace first or last character of any word)

problem want to remove first and last charact ...

用于检查字符串数组是否为空的代码(Code for checking whether string array is empty or not)

problem hi, please send me the code for checking whether ...

消息在try catch块中不起作用(Message is not working in try catch block)

problem showing a modal dialog box or form wh ...

循环如何从开始日期算起5天(How loop to count for 5 days from the start date)

problem hi i have a starting date, now i nee ...

如何绑定diffirent windows窗体中使用的相同用户控件组合框的两个数据源(how to bind two data sources for same user control combo box used in diffirent windows forms)

problem lt;pre lang="c#"gt;lt;/pregt; i want to bind two ...

是他们的任何querybuilder工具(Is Their any querybuilder tool)

problem i want to know that is dere any gui q ...

我希望从gridview获得一个链接来搜索报告页面(i want to have a link from a gridview that will search a report page)

problem can someone help me i want to search fromgridview ...

存储文本框值时无法获得正确的输出(not getting correct output when storing textbox values)

problem i keep getting the output in messagebox as ''0'' ...

如何在asp.net中调用客户端的服务器端功能?(How to call server side function in client side in asp.net)

problem how to call server side function in client side i ...

将Excel数据导入并更新到sql中(Import and Update Excel data into sql)

problem hi, am working on a project which import data int ...

如何在asp中使用我的sql(How to use my sql in asp)

problem hi sir/madam, in our application of asp,we have ...