Showing posts with label webcontrols. Show all posts
Showing posts with label webcontrols. Show all posts

Saturday, March 31, 2012

Table Rows

Hello,
I have dynamically created a table in ASP.NET using tbl.rows.add(tr)
method where 'tbl' is a System.Web.UI.WebControls.Table. and tr is a
TableRows object.
Any ideas why I can't then itterate through the table object and reference
each of the rows using:
Dim tb as tablesRow
For Each tr In tbl.Rows
xx = tr.Cells(1).Text
Next
There appears to be no rows in the table ie. tbl.tablerows.count = 0
TIA
TimDim t as new table
Page.Controls.Add(t)
Dim r As TableRow
Dim c As TableCell
For i As Int32 = 0 To 5
r = New TableRow
c = New TableCell
c.Text = i.ToString
r.Cells.Add(c)
t.Rows.Add(r)
Next
For Each r In t.Rows
Response.Write("<BR>Cell Value = " & r.Cells(0).Text)
Next
"Tim" <timbryant@.smoothit.co.uk> wrote in message
news:OUr4bISvFHA.2064@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I have dynamically created a table in ASP.NET using tbl.rows.add(tr)
> method where 'tbl' is a System.Web.UI.WebControls.Table. and tr is a
> TableRows object.
> Any ideas why I can't then itterate through the table object and reference
> each of the rows using:
> Dim tb as tablesRow
> For Each tr In tbl.Rows
> xx = tr.Cells(1).Text
> Next
> There appears to be no rows in the table ie. tbl.tablerows.count = 0
> TIA
> Tim
>
>
Tim,
If you are trying to access the rows on postback, note, that you have to
re-create dynamucally created objects in the code.
Eliyahu
"Tim" <timbryant@.smoothit.co.uk> wrote in message
news:OUr4bISvFHA.2064@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I have dynamically created a table in ASP.NET using tbl.rows.add(tr)
> method where 'tbl' is a System.Web.UI.WebControls.Table. and tr is a
> TableRows object.
> Any ideas why I can't then itterate through the table object and reference
> each of the rows using:
> Dim tb as tablesRow
> For Each tr In tbl.Rows
> xx = tr.Cells(1).Text
> Next
> There appears to be no rows in the table ie. tbl.tablerows.count = 0
> TIA
> Tim
>
>

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

Wednesday, March 28, 2012

TableCaptionAlign Enum missing in Same Version of two System.Web.D

I have 2 System.Web.dll taken from 2 different machines, one of the
System.Web.Dll contains a enum System.Web.UI.WebControls.TableCaptionAlign
and the other did not. I have development a functionality which was not
working in some of the machines and on diggin' into, i found this. I also
compare the 2 dlls through ILDisassembler. Can anyone explain me WHY, WHICH
one should i use?I believe SP1 introduced the new type...
Karl
MY ASP.Net tutorials
http://www.openmymind.net/
"Mike" <Mike@.discussions.microsoft.com> wrote in message
news:68A461A9-9DCA-42C0-8795-BC657BF2C6ED@.microsoft.com...
> I have 2 System.Web.dll taken from 2 different machines, one of the
> System.Web.Dll contains a enum System.Web.UI.WebControls.TableCaptionAlign
> and the other did not. I have development a functionality which was not
> working in some of the machines and on diggin' into, i found this. I also
> compare the 2 dlls through ILDisassembler. Can anyone explain me WHY,
WHICH
> one should i use?

TableCaptionAlign Enum missing in Same Version of two System.Web.D

I have 2 System.Web.dll taken from 2 different machines, one of the
System.Web.Dll contains a enum System.Web.UI.WebControls.TableCaptionAlign
and the other did not. I have development a functionality which was not
working in some of the machines and on diggin' into, i found this. I also
compare the 2 dlls through ILDisassembler. Can anyone explain me WHY, WHICH
one should i use?I believe SP1 introduced the new type...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"Mike" <Mike@.discussions.microsoft.com> wrote in message
news:68A461A9-9DCA-42C0-8795-BC657BF2C6ED@.microsoft.com...
> I have 2 System.Web.dll taken from 2 different machines, one of the
> System.Web.Dll contains a enum System.Web.UI.WebControls.TableCaptionAlign
> and the other did not. I have development a functionality which was not
> working in some of the machines and on diggin' into, i found this. I also
> compare the 2 dlls through ILDisassembler. Can anyone explain me WHY,
WHICH
> one should i use?

Monday, March 26, 2012

TabStrip

IE WebControls had TabStrip web control. MS is not supporting IE WebControls any more. In VS 2005, there is no TabStrip control. How could I use TabStrip?There is no TabStrip control in the box of ASP.Net 2.0. But you can use the Menu control to do something similar by setting the Orientation attribute to Horizontal.

Saturday, March 24, 2012

TABSTRIP

I am using a tabstrip control provided bymicrosoft.web.ui.webcontrols.dll. However this works fine onlyin IE. In Mozilla the screen goes haywire. Any suggestions onhow to make this control cross browser compatible. I havedeveloped a lot of screens and would not like to restart all thefront end development. I face the same problem with tree view.The fonts, sizing and alignment goes off.

Please help!!

----------
From: Jacob Williams

--------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>NoYxX9OGaUKn6XUY83/0WA==</Id>Hi Jacob,

You may have to try some third party controls like

search for infragetics

Thanks
Raghavendra

"Jacob Williams via .NET 247" <anonymous@.dotnet247.com> wrote in message
news:uuJCGs$jEHA.712@.TK2MSFTNGP09.phx.gbl...
I am using a tabstrip control provided by microsoft.web.ui.webcontrols.dll.
However this works fine only in IE. In Mozilla the screen goes haywire. Any
suggestions on how to make this control cross browser compatible. I have
developed a lot of screens and would not like to restart all the front end
development. I face the same problem with tree view. The fonts, sizing and
alignment goes off.

Please help!!

----------
From: Jacob Williams

--------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>NoYxX9OGaUKn6XUY83/0WA==</Id
microsoft.web.ui.webcontrols.dll - AKA Internet Explorer Controls ... hence
your problem ...

"would not like to restart all the front end development" - I hear you on
this one ... I had to make our intranet users make a choice; browser or
fancy control ... they chose the latter ... if you are coding for internet -
I feel your pain.

"Jacob Williams via .NET 247" <anonymous@.dotnet247.com> wrote in message
news:uuJCGs$jEHA.712@.TK2MSFTNGP09.phx.gbl...
I am using a tabstrip control provided by microsoft.web.ui.webcontrols.dll.
However this works fine only in IE. In Mozilla the screen goes haywire. Any
suggestions on how to make this control cross browser compatible. I have
developed a lot of screens and would not like to restart all the front end
development. I face the same problem with tree view. The fonts, sizing and
alignment goes off.

Please help!!

----------
From: Jacob Williams

--------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>NoYxX9OGaUKn6XUY83/0WA==</Id