Click here to Skip to main content
15,911,531 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Page Size Pin
wpcolleen16-Sep-05 2:02
wpcolleen16-Sep-05 2:02 
GeneralRe: Page Size Pin
enjoycrack16-Sep-05 2:27
enjoycrack16-Sep-05 2:27 
Questionsave excel file inside an IFRAME with ASPX Pin
andreapv15-Sep-05 22:15
andreapv15-Sep-05 22:15 
QuestionExport to Excel Pin
mjackson1115-Sep-05 17:35
mjackson1115-Sep-05 17:35 
AnswerRe: Export to Excel Pin
enjoycrack15-Sep-05 17:58
enjoycrack15-Sep-05 17:58 
QuestionProject Pin
kofler15-Sep-05 11:35
kofler15-Sep-05 11:35 
AnswerRe: Project Pin
seee sharp18-Sep-05 18:36
seee sharp18-Sep-05 18:36 
QuestionAdding Row to table causing NullReferenceException Pin
acoulter15-Sep-05 6:24
acoulter15-Sep-05 6:24 
Hi,
I sure this is a bit of a newbee question/problem but I am currently trying to build a table dynamically. The table is on an inherited page and I am looping through a dataset building the cells into a tablerow then adding this row to the table. I am using c# and setting the table row to null after each loop but its not getting very far.

I am creating the row like this - where the cells (f1-f6 are setup with height an width and some have buttons and images)

hr.Cells.Add(f1);
hr.Cells.Add(f2);
hr.Cells.Add(f3);
hr.Cells.Add(f4);
hr.Cells.Add(f5);
hr.Cells.Add(f6);

I am getting an error on this line -

forumtable.Rows.Add(hr);

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 201: hr.Cells.Add(f6);
Line 202:
Line 203: forumtable.Rows.Add(hr);
Line 204:
Line 205: hr = null;


Any help would be most appreciated Smile | :) Confused | :confused:


AnswerRe: Adding Row to table causing NullReferenceException Pin
Guffa15-Sep-05 11:53
Guffa15-Sep-05 11:53 
GeneralRe: Adding Row to table causing NullReferenceException Pin
acoulter15-Sep-05 12:37
acoulter15-Sep-05 12:37 
AnswerRe: Adding Row to table causing NullReferenceException Pin
Guffa16-Sep-05 7:42
Guffa16-Sep-05 7:42 
QuestionW3C learning Pin
Ann6615-Sep-05 6:04
sussAnn6615-Sep-05 6:04 
AnswerRe: W3C learning Pin
Alsvha15-Sep-05 21:19
Alsvha15-Sep-05 21:19 
AnswerRe: W3C learning Pin
enjoycrack16-Sep-05 0:09
enjoycrack16-Sep-05 0:09 
QuestionASP retrieve font info????? Pin
Small Rat15-Sep-05 6:04
Small Rat15-Sep-05 6:04 
AnswerRe: ASP retrieve font info????? Pin
Guffa15-Sep-05 12:04
Guffa15-Sep-05 12:04 
QuestionGet Data out of html-page Pin
Tomerland15-Sep-05 1:47
Tomerland15-Sep-05 1:47 
AnswerRe: Get Data out of html-page Pin
markkuk15-Sep-05 11:39
markkuk15-Sep-05 11:39 
QuestionJavascript Q: How to remove selection rectangles Pin
matthias s.15-Sep-05 1:40
matthias s.15-Sep-05 1:40 
AnswerRe: Javascript Q: How to remove selection rectangles Pin
alex.barylski16-Sep-05 8:00
alex.barylski16-Sep-05 8:00 
QuestionRich-Thin Clients Pin
Spaz8014-Sep-05 21:46
Spaz8014-Sep-05 21:46 
AnswerRe: Rich-Thin Clients Pin
Edbert P15-Sep-05 16:04
Edbert P15-Sep-05 16:04 
QuestionPop screen opening problem Pin
ravibabu_kanaparthi14-Sep-05 19:03
ravibabu_kanaparthi14-Sep-05 19:03 
AnswerRe: Pop screen opening problem Pin
LeenaSo14-Sep-05 19:45
LeenaSo14-Sep-05 19:45 
GeneralRe: Pop screen opening problem Pin
ravibabu_kanaparthi14-Sep-05 20:04
ravibabu_kanaparthi14-Sep-05 20:04 

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.