How do u declare static variable and how it is declared and what is its lifetime?
Answer / Abhinaya Bhullar
In C#, a static variable is declared with the 'static' keyword. Here's an example: `private static int myStaticVariable = 0;` The variable will be created once when the class is loaded by AppDomain and exist for the lifetime of that application domain.nnThe lifetime of an application domain can vary depending on how it was created, but typically it persists until the last user closes the application.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the asp.net mvc request life cycle? : asp.net mvc
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
What is the lifespan for items stored in ViewState?
what is SQL cache Invalidation?
What is the difference between and ActiveX dll and control?
with which controls you worked in Asp.net 2.0?
2 Answers HP, nTech Solutions,
Fetch one page value to another page without using state-managment ?
Below is a code extract from an ASP.Net application. The code basically reads data from the “name” field in the “members” table and prints them onto the webpage. Using the assumptions provided, fill in the 4 blanks below so that the code will run correctly. ‘Assumptions: ‘conn_str is a variable that holds the connection string to the database ‘Objects dbcomm and dbread are already declared earlier dbcomm = New OleDbCommand("SELECT name FROM members", conn_str) dbread = dbcomm._______________ _____________________ response.write(_______________) _____________________ dbread.Close()
How to identify host of my system? How to identify servername of my system? How to identify domainname of my system?
Why do we use Option Explicit?
Explain the difference between Web Garden and Web Farm?
1 Answers Sans Pareil IT Services,
What is the life cycle of web page?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)