Click here to Skip to main content
16,018,394 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: vs2003 setup Pin
Kissy1628-Jul-08 20:20
Kissy1628-Jul-08 20:20 
GeneralRe: vs2003 setup Pin
Paul Conrad28-Jul-08 20:24
professionalPaul Conrad28-Jul-08 20:24 
QuestionSystem.Net.WebException--The underlying connection was closed: Pin
pubududilena28-Jul-08 19:28
pubududilena28-Jul-08 19:28 
Questionupdate progree bar in modal popup Pin
Member 387988128-Jul-08 19:24
Member 387988128-Jul-08 19:24 
AnswerRe: update progree bar in modal popup Pin
Christian Graus28-Jul-08 20:10
protectorChristian Graus28-Jul-08 20:10 
Questionhow import print option in Report viewer Pin
Guvera28-Jul-08 18:48
Guvera28-Jul-08 18:48 
QuestionCatch the no.of clicks on particular image Pin
dwadasi28-Jul-08 18:36
dwadasi28-Jul-08 18:36 
QuestionHow to color cells of table Pin
Rameez Raja28-Jul-08 17:19
Rameez Raja28-Jul-08 17:19 
hi,

iam unable to color the cells of table i did coding like this but not able to get result any one please suggest me where iam doing mistake .

Dim tbl As Table = New Table()
Dim tr As TableRow = New TableRow()
Dim tc As TableCell = New TableCell()
tc.ColumnSpan = 4
tc.RowSpan = 1
tc.Text = "8AM"
tr.Cells.Add(tc)
Table1.Rows.Add(tr)
Dim tc1 As TableCell = New TableCell
tc1.ColumnSpan = 4
tc1.RowSpan = 1
tc1.Text = "9AM"
tr.Cells.Add(tc1)
Table1.Rows.Add(tr)
Dim tc2 As TableCell = New TableCell
tc2.ColumnSpan = 4
tc2.RowSpan = 1
tc2.Text = "10AM"
tr.Cells.Add(tc2)
Table1.Rows.Add(tr)
Dim tc3 As TableCell = New TableCell
tc3.ColumnSpan = 4
tc3.RowSpan = 1
tc3.Text = "11AM"
tr.Cells.Add(tc3)
Table1.Rows.Add(tr)
Dim tc4 As TableCell = New TableCell
tc4.ColumnSpan = 4
tc4.RowSpan = 1
tc4.Text = "12PM"
tr.Cells.Add(tc4)
Table1.Rows.Add(tr)
Dim tc5 As TableCell = New TableCell
tc5.ColumnSpan = 4
' tc5.RowSpan = 1
tc5.Text = "1PM"
tr.Cells.Add(tc5)
Table1.Rows.Add(tr)

Dim tc6 As TableCell = New TableCell
tc6.ColumnSpan = 4
tc6.RowSpan = 1
tc6.Text = "2PM"
tr.Cells.Add(tc6)
Table1.Rows.Add(tr)

Dim tc7 As TableCell = New TableCell
tc7.ColumnSpan = 4
tc7.RowSpan = 1
tc7.Text = "3PM"
tr.Cells.Add(tc7)
Table1.Rows.Add(tr)

Dim tr2 As TableRow = New TableRow
Dim trcell As TableCell = New TableCell
Dim i As Integer
Dim MyArray() As Integer = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
For i = 0 To 31
If MyArray(i) = 1 Then
trcell.BackColor = Drawing.Color.Green
Else
trcell.BackColor = Drawing.Color.Yellow

End If
tr2.Cells.Add(trcell)

Next
Table1.Rows.Add(tr2)

In above code second row is not displaying please suggest me where iam wrong .


Regards
Rameez
RantRe: How to color cells of table Pin
Paul Conrad28-Jul-08 18:42
professionalPaul Conrad28-Jul-08 18:42 
GeneralRe: How to color cells of table Pin
Rameez Raja28-Jul-08 19:44
Rameez Raja28-Jul-08 19:44 
QuestionComposite Control Pin
Fayu28-Jul-08 16:44
Fayu28-Jul-08 16:44 
QuestionPlease Help Pin
tinamiller28-Jul-08 11:55
tinamiller28-Jul-08 11:55 
AnswerRe: Please Help Pin
Christian Graus28-Jul-08 12:51
protectorChristian Graus28-Jul-08 12:51 
GeneralRe: Please Help Pin
tinamiller28-Jul-08 13:17
tinamiller28-Jul-08 13:17 
GeneralRe: Please Help Pin
Christian Graus28-Jul-08 13:38
protectorChristian Graus28-Jul-08 13:38 
QuestionTargeting Panels with querystring Pin
Veldrain28-Jul-08 10:00
Veldrain28-Jul-08 10:00 
QuestionProviding security for webpage Pin
manoj2218428-Jul-08 6:45
manoj2218428-Jul-08 6:45 
AnswerRe: Providing security for webpage Pin
Christian Flutcher28-Jul-08 7:43
Christian Flutcher28-Jul-08 7:43 
GeneralRe: Providing security for webpage Pin
Vasudevan Deepak Kumar28-Jul-08 18:22
Vasudevan Deepak Kumar28-Jul-08 18:22 
AnswerRe: Providing security for webpage Pin
Christian Graus28-Jul-08 13:58
protectorChristian Graus28-Jul-08 13:58 
AnswerRe: Providing security for webpage Pin
Vasudevan Deepak Kumar28-Jul-08 18:24
Vasudevan Deepak Kumar28-Jul-08 18:24 
QuestionGridview resizing beyond its panel boundaries when populated/bound to data Pin
Steve Holdorf28-Jul-08 3:36
Steve Holdorf28-Jul-08 3:36 
GeneralRe: Gridview resizing beyond its panel boundaries when populated/bound to data Pin
Steve Holdorf28-Jul-08 7:17
Steve Holdorf28-Jul-08 7:17 
QuestionHow to resize the ContentPlaceHolder in child page.? Pin
mcmilan28-Jul-08 3:21
mcmilan28-Jul-08 3:21 
QuestionCOMException Error When run this program in asp.net Pin
Rinki Mukheraji28-Jul-08 2:49
Rinki Mukheraji28-Jul-08 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.