Showing posts with label second. Show all posts
Showing posts with label second. Show all posts

Saturday, March 31, 2012

table sizing

I am in my second chapter of trying to learn asp.net and I have my first issue. I am working on an example that asks that I create a HTML table 4x2(RxC) via the web matrix interface. I am not using web matirx, I am with the Visual.NET IDE.
I have inserted a table on the webForm via the HTML tool box, the one under components, and I can not create the 4x2 table. Each time I change the Rows to 4, it keeps getting changed back to 2 when I apply the change.
Why?Vs 03 is notorious for screwing up html code.
Best bet do this:
<table>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
Alternativly i think theres an insert table command on the menu for vs03, which should let you specify 4x2 and insert you a new table.
Or if the book is working from Web Matrix then maybe you should too, after all its a free download from this site :)
Hope this helps,
Andrew
You may be better off using the web form table, not the one on the html portion of the toolbox.
Use the table menu in the top menu bar.
Zath
Thanks, I am learning quickly the quirks of VS.
Thanks.

table server control -- make column invisible

I have a table server control (System.Web.UI.WebControls.Table) on my form
that has three columns. Sometimes I need the second column to be invisible,
sometimes the third. How can I set a column to be invisible in code? There
appears to not be a programmatic way to work with columns in the way that
there is rows.

Thanks.

--SusanI don't think there a Column Visible property for the WebControls.Table object. So you may have to handle this on your own

For example
foreach(TableRow tr in myTable.Rows

tr.Cells[yourcolumnindex].Visible = false

HTH
Suresh

-- Susan Geller wrote: --

I have a table server control (System.Web.UI.WebControls.Table) on my for
that has three columns. Sometimes I need the second column to be invisible
sometimes the third. How can I set a column to be invisible in code? Ther
appears to not be a programmatic way to work with columns in the way tha
there is rows

Thanks

--Susa

Thursday, March 22, 2012

Taking account of screen resolution

Hello,
In asp .net is there any way of resizing
the component second the screen resolution?
If not is there any workaround?
thank you
Franckyou'll have to make it accessible to the clientside code (javascript event
tied to it's name, etc). There's really no much you can do from the
serverside...
I tend to just use fixed sizes for most of the layout, then use a 100% for
the last item, so that it fills the available space. This would be for thing
s
like the header width, left menu height, etc...
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Franck" wrote:

> Hello,
> In asp .net is there any way of resizing
> the component second the screen resolution?
> If not is there any workaround?
> thank you
> Franck
>
Franck,
You need to use relative size properties, like width="100%".
Eliyahu
"Franck" <fh@.fh.com> wrote in message
news:dg6pee$vvt$1@.s1.news.oleane.net...
> Hello,
> In asp .net is there any way of resizing
> the component second the screen resolution?
> If not is there any workaround?
> thank you
> Franck
If you need more granular control than a simple percentage, you'll have
full access to window size, screen resolution, color depth, etc. on the
client. You'll also have the ability to resize and move the browser
itself.
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Taking account of screen resolution

Hello,
In asp .net is there any way of resizing
the component second the screen resolution?
If not is there any workaround?
thank you
Franckyou'll have to make it accessible to the clientside code (javascript event
tied to it's name, etc). There's really no much you can do from the
serverside...
I tend to just use fixed sizes for most of the layout, then use a 100% for
the last item, so that it fills the available space. This would be for things
like the header width, left menu height, etc...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Franck" wrote:

> Hello,
> In asp .net is there any way of resizing
> the component second the screen resolution?
> If not is there any workaround?
> thank you
> Franck
Franck,

You need to use relative size properties, like width="100%".

Eliyahu

"Franck" <fh@.fh.com> wrote in message
news:dg6pee$vvt$1@.s1.news.oleane.net...
> Hello,
> In asp .net is there any way of resizing
> the component second the screen resolution?
> If not is there any workaround?
> thank you
> Franck
If you need more granular control than a simple percentage, you'll have
full access to window size, screen resolution, color depth, etc. on the
client. You'll also have the ability to resize and move the browser
itself.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/