Posts

Showing posts with the label dot net

Asp.net Interview questions and answers

                       Asp.net Interview questions and answers 1.   Does Main() always have to be public?        -->    No. 2. How do you turn off SessionState in the web.config file?        -->  just simply put following code to disable SessionState.              <httpModules>              <remove name=”Session” />              </httpModules> 3. short-circuited operators:              -->   short-circuited operators In C#, "&" and "|" operators evaluate both boolean expressions in the statement. However, the "&&" operator only evaluates the first Boolean if false ,and the "||" operator only evaluates the first Boolean if true. This...