如何在运行时在asp.net中设置表的位置 [英] how to set position of table in asp.net at run time

查看:123
本文介绍了如何在运行时在asp.net中设置表的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我想在运行时动态地添加表格控件,还要设置表格的位置,并在表格中添加标签和文本框.
我创建了表格,但现在却无法成功设置表格的位置.

Hello ,i want to add table controls at runtime /dynamically.and also set the position of table and add the label & textbox into table.
i create table but yet now i not successful to set the position of table.

推荐答案

步骤:
1.定义一个div/panel/placeholder,基本上是之前的ASPX页面中的一个容器.
2.在运行时创建一个表,向运行时创建的表的单元格添加标签/文本框
3.从以前将表添加到ASPX中定义的div/panel/placeholder中.

因此,动态地将在运行时创建的表与所需内容一起添加到ASPX页的所需位置.

尝试!
Steps:
1. Define a div/panel/placeholder, basically a container in your ASPX page from before.
2. Create a table at runtime, add labels/textboxes to the cells of table created at runtime
3. Add the table to the div/panel/placeholder defined in your ASPX from before.

Thus, dynamically, the table created at runtime would be added to the ASPX page at desired location with the needed content.

Try!


写下以下内容
Response.Write(");
Respose.write(");
Response.write(");
Respose.write("
");

Response.write("
");
Write the following
Response.Write("");
Respose.write("");
Response.write("");
Respose.write("
");

Response.write("
");


这篇关于如何在运行时在asp.net中设置表的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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