Buy Questpond's video subscriptions on
huge discount
.
Online: 3429
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
I've doubt sessions are using in asp.net instead of sessions any other possibility is there in windo
Posted by
Sudheep.grandhe
under
C#
on 10/14/2011 |
Points: 10
| Views : 1867 | Status :
[Member]
| Replies : 4
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hi,
the below coding was used for asp.net.the same coding i want to use in windows applications.how can i do this.please do the needful
eg:Session["OrderNo"] = dt.Rows[0][0].ToString();
Best,
Sudheep.
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Gausi
on: 10/14/2011
[Member]
Starter
|
Points: 25
0
There is no concept of Global Variables in C# Windows Applications, you can use global variables inside the entire class but not in the entire namespace.
Solution for this problem is to create STATIC VARIABLES and use these variables anywhere in the namespace. Hope this might help
Regards,
Gaurav Singh
(gausi)
Sudheep.grandhe
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Sudheep.grandhe
on: 10/14/2011
[Member]
Starter
|
Points: 25
0
Hi,
can you please give it with some example.it will help me a lot.please do the needful.
Best,
Sudheep.
Sudheep.grandhe
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Jiji
on: 10/15/2011
[Member]
Starter
|
Points: 25
0
Hi,
You can define One Property and Set that Value to Property.Otherwise you can declare Global Variable in whole Applications.(Settings Application).
By
JIJI
Sudheep.grandhe
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Mittaikariss
on: 10/18/2011
[Member]
Bronze
|
Points: 25
0
Mr Sudheep u can use delegates otherwise events ................
u can declare global variable in static method and then assign value to variable ......then call that value from any form...........
http://www.invomtech.com/
....sundarsowmia....
Sudheep.grandhe
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...