Can we use a static function with a non-static variable?
Answer / Desh Deepak Srivastava
In C#, which is commonly used in ASP.NET, you cannot directly access or modify a non-static member (like a field) from a static method because it does not have access to the instance of the class. However, you can pass an instance of the object as a parameter to the static function and use that instance's non-static members.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we have 2 web config files?
Where is session data stored in asp net?
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
what is a virtual class?
What are directives in asp.net?
Define secured sockets layer.
can u debug application programatically? if yes how?
What is asp.net futures?
what is diffrent between asp & asp.net
What are the type of session in Asp.Net
when i want to use asp.net configuration for creat users and roles i recived this message: There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem: Unable to connect to SQL Server database. when i clicked the choose data source button that give me another message that is this: Use this page to configure how Web site management data such as membership is stored. You can use a single provider for all the management data for your site or you can specify a different provider for each feature. Your application is currently configured to use the provider: AspNetSqlProvider Select a single provider for all site management data Select a different provider for each feature (advanced) ------------------------- and this message was reapeted in other choose again. please help me if u know why i gave that message so i wont can creat my users and roles
I have one .Net application and i have two databases which is in SQL server2000 and one more database in ORACLE? how can i access the database from different Databases?
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)