This topic is locked

Column sizing

7/7/2003 4:09:31 AM
ASPRunnerPro General questions
author

Hello

I just generated and deployed the ASP with ASP-Runner. It works very good. One of my listed colums has a lot of text to show. Where in ASP-Code can I change the size of this column the easiest.

Thx Patrick

R
roller 7/8/2003

Hi Patrick
Go to "yourdatabase"_list.asp
Scroll down through the code. It's line 320 in what I'm trying to do but I guess it could be different with you. You'll find the start of the table headings e.g.
<TD>

<table><tr><td><a href="yourdatabase_list.asp" onClick="java script:

document.forms.frmAdmin.action.value = 'OrderBy';

document.forms.frmAdmin.orderby.value = '<%="YOUR FIELD NAME"%>';

document.forms.frmAdmin.submit(); return false; "><%=Label("YOUR FIELD NAME")
As far as I know all you have to do is put in the width you want just after the table tag. So now the second line will read:
<TD>

<table WIDTH=250 (or whatever width you want)><tr><td><a href="yourdatabase_list.asp" onClick="java script:
Hope this helps
Ian

Sergey Kornilov admin 7/8/2003

Patrick,
just a small addition to the previous answer.
In your <..._list.asp> file find sub WriteTableHeader. This subroutine displays table header with field names. Find the following section of code:

<TD>

<table><tr><td><a href="yourdatabase_list.asp" onClick="java script:

document.forms.frmAdmin.action.value = 'OrderBy';

document.forms.frmAdmin.orderby.value = '<%="YOUR FIELD NAME"%>';

document.forms.frmAdmin.submit(); return false; "><%=Label("YOUR FIELD NAME")


The best approach is to set cell width this way:

<TD width=300>

<table><tr><td><a href="yourdatabase_list.asp" onClick="java script:


Repeat this for each column that you need to resize.
Sergey Kornilov

Joe F 8/1/2003

Patrick,

Did this work for you? I have tried this (width=300) and my column sizes stayed the same width. Or if it didn't work for you, did you do something that did work?

500050 8/1/2003

I tried it like this:
<TD width=300>

<table><tr><td><a href="yourdatabase_list.asp" onClick="java script:
But it worked like this:
<TD>

<table width=300><tr><td><a href="yourdatabase_list.asp" onClick="java script:
Just my 2 cents

Joe F 8/1/2003

Thanks, Ken. I going to give this a try later today. Is this site (other than the forum) down for you also? I can't get to anything at www.asprunner.com other than this discussion board. I need to purchase this software. My trial time is running out!

Sergey Kornilov admin 8/4/2003

Joe,
we had major problem with our hosting company. Everything is working now. Thank you for your patience.
Best regards,

Sergey Kornilov