Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
AnswerRe: On form's Close Application is not stopping Pin
Nader Elshehabi3-Oct-06 2:38
Nader Elshehabi3-Oct-06 2:38 
Questionstring operations Pin
Vipin.d3-Oct-06 1:50
Vipin.d3-Oct-06 1:50 
AnswerRe: string operations Pin
Nader Elshehabi3-Oct-06 2:05
Nader Elshehabi3-Oct-06 2:05 
GeneralRe: string operations Pin
Rob Philpott3-Oct-06 2:58
Rob Philpott3-Oct-06 2:58 
AnswerRe: string operations Pin
Stefan Troschuetz3-Oct-06 2:09
Stefan Troschuetz3-Oct-06 2:09 
AnswerRe: string operations Pin
LongRange.Shooter3-Oct-06 7:37
LongRange.Shooter3-Oct-06 7:37 
GeneralRe: string operations Pin
Vipin.d4-Oct-06 2:09
Vipin.d4-Oct-06 2:09 
QuestionMake tablerows invisible Pin
tadhg883-Oct-06 0:55
tadhg883-Oct-06 0:55 
Hi I am having trouble trying to display some rows of a html table. I am trying to display the same amount of rows that is in a datatable returned from database. At the moment I have named all rows of table and put in the runat=”server” so I can reference it in the code. This is the code I am using but I get an invalid cast error

//*** work through datatable of drills
for(int rowNum = 1; rowNum<=iSet.Tables[0].Rows.Count; rowNum++)
{
//*** declare founctrl and set equal to a control found with the id
TableRow founctrl = (TableRow)FindControl("row"+rowNum.ToString());

//*** if a control is found
if (founctrl != null)
{
//*** dislay the row
founctrl.Visible = true;
}
}

I am looping throught datatable and tryin to find the rows of html table and make them visible but it crashes on the line that tries to find the tablerow. So im just wondering if there is a better way to go about this or am I making a mistake in this code thanks in advance. Tim
AnswerRe: Make tablerows invisible Pin
Rob Philpott3-Oct-06 3:03
Rob Philpott3-Oct-06 3:03 
GeneralRe: Make tablerows invisible Pin
tadhg883-Oct-06 3:10
tadhg883-Oct-06 3:10 
QuestionHelp file issue Pin
Glen Harvy3-Oct-06 0:24
Glen Harvy3-Oct-06 0:24 
AnswerRe: Help file issue Pin
Nader Elshehabi3-Oct-06 2:12
Nader Elshehabi3-Oct-06 2:12 
GeneralRe: Help file issue Pin
Glen Harvy3-Oct-06 4:05
Glen Harvy3-Oct-06 4:05 
GeneralRe: Help file issue Pin
Nader Elshehabi3-Oct-06 4:36
Nader Elshehabi3-Oct-06 4:36 
GeneralRe: Help file issue Pin
Glen Harvy3-Oct-06 4:53
Glen Harvy3-Oct-06 4:53 
GeneralRe: Help file issue Pin
Nader Elshehabi3-Oct-06 6:21
Nader Elshehabi3-Oct-06 6:21 
Questionright mouse click on tree node Pin
shaz jazz2-Oct-06 23:54
shaz jazz2-Oct-06 23:54 
AnswerRe: right mouse click on tree node Pin
aamironline3-Oct-06 0:12
aamironline3-Oct-06 0:12 
AnswerRe: right mouse click on tree node Pin
Eric Dahlvang3-Oct-06 3:54
Eric Dahlvang3-Oct-06 3:54 
AnswerRe: right mouse click on tree node Pin
Major_A3983-Oct-06 16:19
Major_A3983-Oct-06 16:19 
GeneralRe: right mouse click on tree node Pin
shaz jazz4-Oct-06 22:03
shaz jazz4-Oct-06 22:03 
Questionhow to implement a link class? Pin
Rodrigo Gil2-Oct-06 23:34
Rodrigo Gil2-Oct-06 23:34 
AnswerRe: how to implement a link class? Pin
S. Senthil Kumar2-Oct-06 23:47
S. Senthil Kumar2-Oct-06 23:47 
GeneralRe: how to implement a link class? Pin
Rodrigo Gil3-Oct-06 1:26
Rodrigo Gil3-Oct-06 1:26 
QuestionKeyborad Lock Pin
Haridas.R2-Oct-06 22:56
Haridas.R2-Oct-06 22:56 

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.