Click here to Skip to main content
15,905,420 members
Home / Discussions / C#
   

C#

 
AnswerRe: Session.clear ans session.abandon Pin
Pete O'Hanlon9-Sep-07 22:55
mvePete O'Hanlon9-Sep-07 22:55 
AnswerRe: Session.clear ans session.abandon Pin
Guffa9-Sep-07 23:10
Guffa9-Sep-07 23:10 
GeneralRe: Session.clear ans session.abandon Pin
Sonia Gupta9-Sep-07 23:17
Sonia Gupta9-Sep-07 23:17 
GeneralRe: Session.clear ans session.abandon Pin
Pete O'Hanlon9-Sep-07 23:29
mvePete O'Hanlon9-Sep-07 23:29 
GeneralRe: Session.clear ans session.abandon Pin
Sonia Gupta9-Sep-07 23:34
Sonia Gupta9-Sep-07 23:34 
AnswerRe: Session.clear ans session.abandon Pin
Guffa9-Sep-07 23:41
Guffa9-Sep-07 23:41 
GeneralRe: Session.clear ans session.abandon Pin
Sonia Gupta9-Sep-07 23:55
Sonia Gupta9-Sep-07 23:55 
GeneralRe: Session.clear ans session.abandon Pin
Pete O'Hanlon10-Sep-07 0:01
mvePete O'Hanlon10-Sep-07 0:01 
GeneralRe: Session.clear ans session.abandon Pin
Sonia Gupta10-Sep-07 0:04
Sonia Gupta10-Sep-07 0:04 
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 

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.