Click here to Skip to main content
15,903,523 members
Home / Discussions / C#
   

C#

 
AnswerRe: Get return value from one class to another Pin
led mike28-Jun-06 11:22
led mike28-Jun-06 11:22 
AnswerRe: Get return value from one class to another Pin
Martin#28-Jun-06 11:26
Martin#28-Jun-06 11:26 
QuestionRe: Get return value from one class to another Pin
Saamir28-Jun-06 11:54
Saamir28-Jun-06 11:54 
AnswerRe: Get return value from one class to another Pin
Alexander Wiseman28-Jun-06 12:09
Alexander Wiseman28-Jun-06 12:09 
QuestionRe: Get return value from one class to another Pin
Saamir28-Jun-06 12:20
Saamir28-Jun-06 12:20 
QuestionRe: Get return value from one class to another Pin
Alexander Wiseman28-Jun-06 12:28
Alexander Wiseman28-Jun-06 12:28 
QuestionRe: Get return value from one class to another Pin
Saamir28-Jun-06 16:20
Saamir28-Jun-06 16:20 
AnswerRe: Get return value from one class to another Pin
Alexander Wiseman28-Jun-06 16:30
Alexander Wiseman28-Jun-06 16:30 
Well your code looks fine, so the only thing I can think of is that LoadReport is being called before you set the session ID - that is, it is being called from the constructor of form 2. If you are calling LoadReport from the constructor of form 2, then SessionId will not have the proper value in it, because you are setting its value only after the constructor is finished.

So the main question is: when are you calling <ocde>LoadReport in Form2?

If you are calling it in the constructor of Form2, then I recommend instead that you make an event handler for the Form.Load event and in that, call the function LoadReport.

Let me know if that gets you anywhere.

Sincerely,
Alexander Wiseman
QuestionRe: Get return value from one class to another [modified] Pin
Saamir28-Jun-06 16:32
Saamir28-Jun-06 16:32 
JokeRe: Get return value from one class to another Pin
Saamir28-Jun-06 16:40
Saamir28-Jun-06 16:40 
GeneralRe: Get return value from one class to another Pin
Alexander Wiseman28-Jun-06 16:48
Alexander Wiseman28-Jun-06 16:48 
AnswerRe: Get return value from one class to another Pin
Mike Poz28-Jun-06 12:12
Mike Poz28-Jun-06 12:12 
AnswerRe: Get return value from one class to another Pin
Rojan Gh.28-Jun-06 14:45
professionalRojan Gh.28-Jun-06 14:45 
Questionload a whole database into a DataSet Pin
hamidreza_buddy28-Jun-06 10:56
hamidreza_buddy28-Jun-06 10:56 
AnswerRe: load a whole database into a DataSet Pin
stancrm28-Jun-06 20:26
stancrm28-Jun-06 20:26 
QuestionXMLSerialize and Microsoft Controls Pin
3Dizard28-Jun-06 10:14
3Dizard28-Jun-06 10:14 
AnswerRe: XMLSerialize and Microsoft Controls Pin
BoneSoft28-Jun-06 10:55
BoneSoft28-Jun-06 10:55 
QuestionHelp with UserControl State Save and Restore Pin
TheBlindWatchmaker28-Jun-06 9:04
TheBlindWatchmaker28-Jun-06 9:04 
AnswerRe: Help with UserControl State Save and Restore [modified] Pin
Martin#28-Jun-06 9:59
Martin#28-Jun-06 9:59 
QuestionDatagridview.selectedValue help? Pin
PyroManiak28-Jun-06 8:38
PyroManiak28-Jun-06 8:38 
AnswerRe: Datagridview.selectedValue help? Pin
Mairaaj Khan28-Jun-06 20:11
professionalMairaaj Khan28-Jun-06 20:11 
GeneralRe: Datagridview.selectedValue help? Pin
PyroManiak29-Jun-06 10:51
PyroManiak29-Jun-06 10:51 
QuestionRegular expression Pin
NaNg1524128-Jun-06 8:36
NaNg1524128-Jun-06 8:36 
AnswerRe: Regular expression [modified] Pin
User 665828-Jun-06 8:44
User 665828-Jun-06 8:44 
GeneralRe: Regular expression Pin
Bitwise Gamgee28-Jun-06 11:41
Bitwise Gamgee28-Jun-06 11:41 

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.