Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

3.4.10

Downloading a File with a Save As Dialog in ASP.NET

Downloading a File with a Save As Dialog in ASP.NET
http://www.west-wind.com/weblog/posts/76293.aspx

Contact us form with "Mail attachment"

Contact us form with "Mail attachment":

http://www.aspsnippets.com/Articles/Contact-Us-Form-with-Rich-TextBox-in-ASP.Net.aspx

14.3.10

Write mail c#

Sending Email using C# and ASP.Net 2.0

http://www.codedigest.com/Articles/ASPNET/95_Sending_Email_using_C__and_ASPNet_20.aspx


Write body HtML with string builder

http://www.dotnetspider.com/forum/162323-How-write-Html-tags-email-body.aspx

call 2 javascript functions on click of single html button

input type="button" value="Calculate" onClick="(func1(), func2() )" >

14.1.10

Useful c#

classes,Overloading,Properties::

http://www.codeguru.com/csharp/csharp/cs_syntax/anandctutorials/article.php/c5829
=====================================================================================

Properties in c#:

http://www.devarticles.com/c/a/C-Sharp/Understanding-Properties-in-C-Sharp/

==============================================================================
http://www.devarticles.com/c/a/C-Sharp/Inheritance-and-Polymorphism/
http://www.devarticles.com/c/a/C-Sharp/Introduction-to-Objects-and-Classes-in-C-sharp/6/

http://www.sitepoint.com/article/dataset-datareader/

=========
Convert a DataReader to DataTable in ASP.NET

http://www.dotnetcurry.com/ShowArticle.aspx?ID=143

===========
Static Method::
http://forums.asp.net/t/1445372.aspx

Static CLass:;
http://msdn.microsoft.com/en-us/library/79b3xss3(VS.80).aspx

===========

abstract"

http://www.javacoffeebreak.com/faq/faq0084.html
================
difference between abstract class and interface::

http://www.codeproject.com/KB/cs/abstractsvsinterfaces.aspx

========================

29.1.09

difference between value type and reference type

n simple words, all value based types are allocated on the stack, while all reference based types are allocated on the heap. What does this mean? A value type contains the actual value. A reference type contains a reference to the value. When a value type is assigned to another value type, it is copied. When a reference type is assigned to another reference type, a reference is assigned to the value.

By saying stack, we mean things are kept one on top of the other. We keep track of each value at the top. By saying heap, we mean things are kept in a mashed order. We keep track of each value by its address, that is referenced by a pointer to it.

All value types are implicitly derived from System.ValueType. This class actually overrides the implementation in System.Object, the base class for all objects which is a reference type itself.

Data types like integers, floating point numbers, character data, Boolean values, Enumerations and Structures are examples of Value Types. Classes, Strings, Arrays are examples of Reference Types.

A value type may not contain NULL values. Reference types may contain NULL values.

It is not possible to derive new types from Value Types. This is possible in Reference types. However, Value Types like Structures can implement interfaces