在asp页面上制作表格的最佳方法是什么? [英] What is the best way to make a table on asp page?

查看:87
本文介绍了在asp页面上制作表格的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想把我的桌子放在asp页面清洁器上。


现在,我有一个html表在我的页面上从我的数据库中提取信息。客户可以在注册页面上输入以下内容:


提供商名称:"下拉菜单列表"名为provider1的选项

如果未列出名称,请输入name:" text box"命名为其他

提供者2名称:下拉菜单列表名为provider2的选项

如果未列出名称,请输入name:" text box"命名为other2


我遇到的问题是当表格显示在asp帐户页面上时,存在一个不合适的间距。例如,如果用户仅在第1行中找到其提供者但必须为提供者2输入文本,则这些提供者之间存在更大的边界。如果他们只进入一个提供商并留下第二个空白,那么桌子的底部会向下延伸,但除了坚实的背景颜色之外什么都没有。


我想知道是否有更好的制作一个识别所输入信息的表格的方法,并根据输入的信息调整表格的大小。


对不起,如果这非常令人困惑,我有一点时间解释这一点。如果有办法在这里展示图片,如果你能告诉我如何,我很乐意张贴我的桌子的照片。


感谢您的任何见解 - 杰里

Hi,

I am trying to make my table on an asp page cleaner.

Right now, I have an html table on my page that draws information from my database. The customer can enter the following on the registration page:

Provider name: "drop down menu list" option named "provider1"
If name not listed, enter name: "text box" named "other"
Provider 2 name: "drop down menu list" option named "provider2"
If name not listed, enter name: "text box" named "other2"

The problem I am having is when the table shows up on the asp account page, there is akward spacing. For instance, if the user only finds his provider in line 1 but has to enter text for provider 2, there is a larger border between these. If they only enter one provider and leave the 2nd blank, the bottom of the table is extended down but nothing is there except the solid background color.

I am wondering if there is a better way to make a table that recognizes the information entered and resizes the table depending on the information entered.

Sorry if this is very confusing, I am having a heck of a time explaining this. If there is a way to show pictures on here, I''ll gladly post a picture of my table if you can tell me how.

Thanks for any insight - Jerry

推荐答案

Hello Jerry,


你能否发布你的代码。这将有助于你找到答案。


谢谢,

CroCrew~
Hello Jerry,

Could you post your code. That will help in getting you an answer.

Thanks,
CroCrew~


这是我的代码。请注意,客户将在程序中输入文本。或者其他或其他文本框。如果他们输入5个程序,表格看起来很棒。如果它们输入较少,则底部有额外的空间,如果它们进入任何其他的空间。然后边界线更胖。任何想法如何清理这一点?谢谢

Here is my code. Please take note, the customer will either enter a text into the "program" or the "other" text boxes. If they enter 5 programs, the table looks great. If they enter less, there is extra space at the bottom and if they enter any "other" then the border lines are much fatter. Any ideas how to clean this up a bit? Thanks

展开 | 选择 | Wrap | 行号


Hello Jerrydigital,


它是什么?有点困惑你的请求帮助,但我认为这可能会帮助你。您似乎已经构建了表,并且只是在单元格中记录了记录集值。从而;如果输入程序1,2,3,4,5,那么每行中的所有单元格都将被填充。但是,让我们说如果有人只输入程序1,2,4,5那么程序2和4之间会有一个空行。


没有看到你的所有代码唯一的建议我可以给你的是在构建行之前检查记录集中的值。每行都有这样的东西:

Hello Jerrydigital,

It?s a bit confusing what your asking help for but I think this might help you out. It seems that you have built the table and are just plopping the recordset values in the cells. Thus; if programs 1, 2, 3, 4, 5 where entered then all the cells in each row would be filled. But let?s say if someone entered just programs 1, 2, 4, 5 then there would be a blank row between programs 2 and 4.

Without seeing all your code the only advice that I could give you is to check for a value in the recordset before building the row. Something like this for each row:

展开 | 选择 | Wrap | 行号


这篇关于在asp页面上制作表格的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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