| What environment do I need to use generics? |
| To deploy and run code that uses generics you need version 2.0 or higher of the .Net runtime. |
|
|
|
|
|
| How is .NET able to support multiple languages? |
| A language should comply with the Common Language Runtime (CLR) standard to become a .Net language. In .Net, code is compiled to Microsoft Intermediate Language (MSIL). This is called as Managed Code. This Managed code is run in .Net environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language. |
|
|
|
|
|
| What are web Forms? |
| Web Forms are an ASP.Net technology that you use to create programmable Web pages. Web Forms render themselves as browser-compatible HTML and script, which allows any browser on any platform to view the pages. Using Web Forms, you create Web pages by dragging and dropping controls onto the designer and then adding code, similar to the way that you create Visual Basic forms. For more information, see ASP.NET Web Pages Overview. |
|
|
|
|
|
| How do you define the lease of the object? |
The lifetime of the server object is determined by the lifetime lease. This is defined by implementing ILease interface when writing the class code.
OR
You can define the lease of the object by implementing the ILease interface at the code time. |
|
|
|
|
|
| How do you turn off cookies for one page in your site? |
| Use the Cookie.Discard Property which Gets or Sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the hard disk when a session ends. |
|
|
|
|
|
| What is System.Net.Mail? |
| System.Net.Mail is the namespace used to send email if you are using the .Net 2.0 (or higher) Framework. |
|
|
|
|
|
| What is System.Web.Mail? |
System.Web.Mail (SWM) is the .Net namespace used to send email in .Net Framework applications. SWM contains three classes:
MailMessage – used for creating and manipulating the mail message contents.
MailAttachments – used for creating a mail attachment to be added to the mail message.
SmtpMail – used for sending email to the relay mail server. |
| Note: More information on the System.Web.Mail Namespace can be found on MSDN here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebmail.asp |
|
|
|
|