Click here to Skip to main content
15,887,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: Session.clear ans session.abandon Pin
Pete O'Hanlon10-Sep-07 0:28
mvePete O'Hanlon10-Sep-07 0:28 
GeneralRe: Session.clear ans session.abandon Pin
Virendrak10-Sep-07 1:34
Virendrak10-Sep-07 1:34 
GeneralRe: Session.clear ans session.abandon Pin
Pete O'Hanlon10-Sep-07 1:42
mvePete O'Hanlon10-Sep-07 1:42 
GeneralRe: Session.clear ans session.abandon Pin
Virendrak10-Sep-07 1:36
Virendrak10-Sep-07 1:36 
AnswerRe: Session.clear ans session.abandon Pin
Guffa10-Sep-07 11:02
Guffa10-Sep-07 11:02 
AnswerRe: Session.clear ans session.abandon Pin
Guffa9-Sep-07 23:39
Guffa9-Sep-07 23:39 
GeneralRe: Session.clear ans session.abandon Pin
Sonia Gupta9-Sep-07 23:42
Sonia Gupta9-Sep-07 23:42 
QuestionWrong compilation error message Pin
vikben9-Sep-07 22:12
vikben9-Sep-07 22:12 
public void generateTabularStructure(DataSet dsItems, HtmlTable tblTemp)
{
DataView dvItems = dsItems.Tables[0].DefaultView;
HtmlTableRow trTemp;
HtmlTableCell tdtemp;
for (int i = 0; i < dvItems.Count; i++)
{
HtmlTable objTable = null;
objTable = getArticleTable(dvItems[i]);
if (i % 2 == 0)
{
trTemp = new HtmlTableRow();
tblTemp.Rows.Add(trTemp);
}
tdtemp = new HtmlTableCell();
trTemp.Cells.Add(tdtemp);
tdtemp.Controls.Add(objTable);

tdtemp = new HtmlTableCell();
trTemp.Cells.Add(tdtemp);
tdtemp.InnerHtml = " ";
}
}


The above code when compiled gives error message
Use of unassigned local variable 'trTemp'
at the line which is bold

but for value i = 0 'trTemp' would be initialized in the if syntax before it is used so the error should not appear

any justification for this compilation error
AnswerRe: Wrong compilation error message Pin
Pete O'Hanlon9-Sep-07 22:50
mvePete O'Hanlon9-Sep-07 22:50 
GeneralRe: Wrong compilation error message Pin
vikben9-Sep-07 23:44
vikben9-Sep-07 23:44 
GeneralRe: Wrong compilation error message Pin
Pete O'Hanlon10-Sep-07 1:25
mvePete O'Hanlon10-Sep-07 1:25 
QuestionHelp with C# generated Excel documents Pin
dadart9-Sep-07 22:01
dadart9-Sep-07 22:01 
AnswerRe: Help with C# generated Excel documents Pin
Giorgi Dalakishvili9-Sep-07 22:17
mentorGiorgi Dalakishvili9-Sep-07 22:17 
QuestionNUnit tests issue [modified] Pin
Johan Lombaard9-Sep-07 21:53
Johan Lombaard9-Sep-07 21:53 
AnswerRe: NUnit tests issue Pin
Pete O'Hanlon9-Sep-07 22:44
mvePete O'Hanlon9-Sep-07 22:44 
GeneralRe: NUnit tests issue Pin
Johan Lombaard9-Sep-07 23:07
Johan Lombaard9-Sep-07 23:07 
GeneralRe: NUnit tests issue Pin
Pete O'Hanlon9-Sep-07 23:11
mvePete O'Hanlon9-Sep-07 23:11 
GeneralRe: NUnit tests issue Pin
Johan Lombaard10-Sep-07 0:56
Johan Lombaard10-Sep-07 0:56 
QuestionCant close serial port in windows form application Pin
bigbrownbeaver9-Sep-07 21:12
bigbrownbeaver9-Sep-07 21:12 
AnswerRe: Cant close serial port in windows form application Pin
c0ax_lx10-Sep-07 4:51
c0ax_lx10-Sep-07 4:51 
QuestionHow to set my own serial key Pin
Exelioindia9-Sep-07 20:59
Exelioindia9-Sep-07 20:59 
AnswerRe: How to set my own serial key Pin
Paul Conrad14-Sep-07 19:03
professionalPaul Conrad14-Sep-07 19:03 
QuestionI need DLL or Tools For Convert PDF to Image Pin
sakthi dasan9-Sep-07 20:42
sakthi dasan9-Sep-07 20:42 
Questionhelp with search program related to pdf files Pin
noobneedshelp9-Sep-07 20:36
noobneedshelp9-Sep-07 20:36 
Questioncross thread..? How to populated a textbox with serial input?I Pin
mercenary019-Sep-07 20:24
mercenary019-Sep-07 20:24 

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.