Hey Everyone,
Having a little trouble with this...It works in IE fine but in Firefox not so well.
Basically I am getting a dataset from an XML file then using a server side table to dymnically create the table with textbox's so the user can modify the data.
Basically I am trying to set the width of the textbox
newTextBox.Width = System.Web.UI.WebControls.Unit.Pixel(500)
In firefox it just doesn't even attempt to modify the width of the textbox
In IE the source code ends up:
<input name="_ctl0" type="text" value="Date: 4/16/06 -- Removed all late binding in favor of early binding to improve speed performance. All logic was added to session variable returns. (Version updated to 1.2)" style="width:500px;" />
In firefox:
<input name="_ctl0" type="text" value="Date: 4/16/06 -- Removed all late binding in favor of early binding to improve speed performance. All logic was added to session variable returns. (Version updated to 1.2)" />
Here is the code in ASP.NET -
vb
Dim i As Int32
Dim newTableCell As TableCell
Dim newTableRow As TableRow
Dim dsXMLFile As New DataSet
Dim newChkBox As CheckBox
Dim newTextBox As TextBox
dsXMLFile = CType(Session("adminXMLNewsDataSet"), DataSet)
For i = 0 To dsXMLFile.Tables(0).Rows.Count - 1
newTableRow = New TableRow
newTableCell = New TableCell
newChkBox = New CheckBox
newTextBox = New TextBox
newTableRow.Width = System.Web.UI.WebControls.Unit.Percentage(90)
newTextBox.Width = System.Web.UI.WebControls.Unit.Pixel(500)
newTextBox.Text = CType(dsXMLFile.Tables(0).Rows(i).Item(1), String)
newTableCell.Controls.Add(newTextBox)
newTableRow.Cells.Add(newTableCell)
tblNews.Rows.Add(newTableRow)
Next
Anyone have any idea's. I havent tried using CSS to use for the table property's yet.
Thanks for yoru help in advance