I've doubt about report page coding

Posted by Sudheep.grandhe under C# on 10/17/2011 | Points: 10 | Views : 903 | Status : [Member] | Replies : 2
Hi,

I've an doubt below code was using in asp.net.my intension how can use in windows applications.


int id=Convert.ToInt32(Session["InvoiceId"]);

Best,
Sudheep.



Responses

Posted by: Blessyjees on: 10/17/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

You can use static fields of the static class in windows application
public static class GlobalSettings

{
public static string InvoiceId;
}

you could access this GlobalSettings.InvoiceId

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 10/17/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Windows applications don't support sessions. You can use a Global variable.


Thank you for posting at Dotnetfunda
[Administrator]

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response