Last post Dec 08, 2013 01:51 PM by thunderxlight
Dec 08, 2013 09:53 AM|thunderxlight|LINK
here is my problem
i know to make table from html
<table id="mytable" style = ... runatserver = true>
<td> .... </td>
but i really want to add more rows and data from css ... , and i dont know how to do that ..
because iam using c# to make a project and i want to add more rows and data when the customer press (add) button
here (c# code)
mytable.style.add("???","???") ... i dont know what should i write here so i can add more rows and data ...
i hope you guys can help me
Dec 08, 2013 10:02 AM|oned_gk|LINK
Dec 08, 2013 10:11 AM|thunderxlight|LINK
no i want to add more rows and data from c#
how can i do that !!( tr and td )
Dec 08, 2013 10:19 AM|smirnov|LINK
TableRow row = new TableRow();
TableCell cell1 = new TableCell();
TableCell cell2 = new TableCell();
Dec 08, 2013 10:43 AM|thunderxlight|LINK
ohh thank you a lot brother , but i tried this before and i got another problem in css
like adding border style and color etc...
row.style["border-color"] = "red"; also doesn,t work
the same thing with the cells
thank you again for your replay
Dec 08, 2013 11:01 AM|smirnov|LINK
What does not work, border-width=100px? Are you serious?
Why don't you define all styles separately, in the head of the page or in css file
border-width:1px 0 1px 1px;
border-width:1px 1px 1px 0;
Hope this helps.
Dec 08, 2013 11:03 AM|oned_gk|LINK
Dec 08, 2013 11:47 AM|thunderxlight|LINK
noo , but your first replay was good
but you gave me half the answer ..!
when i try to put style to its border width or color or style .. they all dont work , i tried with many ways
how can i put style for the rows
row.borderstyle = Color.Red ; //i did using sys....
row.style["border-width"] = "100px";
they dont work at all
Dec 08, 2013 12:00 PM|oned_gk|LINK
Dec 08, 2013 12:54 PM|smirnov|LINK
Border-width cannot be 100px. See more about border here http://www.w3schools.com/css/css_border.asp. It has examples as well as explains tha border-width does not work if it is used alone.
Dec 08, 2013 01:51 PM|thunderxlight|LINK
lol , yeah you right
i should put the style first
thank you a lot brother.
thank you for your replay