Make your own free website on Tripod.com
Blog Tools
Edit your Blog
Build a Blog
RSS Feed
View Profile
« May 2012 »
S M T W T F S
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
You are not logged in. Log in
Entries by Topic
All topics  «
.Net
ASP.Net
CSharp
VBA
Renugopal's Programming Blog
Sunday, 28 May 2006
Disable Viewstate in ASP.Net
Topic: ASP.Net
3 Ways to disable Viewstate in ASP.Net
1) Machine wide
add the below line in machine.conf
<pages enabledViewState="false" />
2) Page wide
<%@ Page EnableViewState="false" %>

3) control wide
yourControl.EnableViewState = false;

Posted by Renugopal D at 3:45 AM
Post Comment | Permalink
Thursday, 24 November 2005
what is meant by Domain Bound & Domain Neutral Assemblies
Topic: .Net
Domain Bound Assemblies:
    Domain Bound Assemblies are assmeblies used by particular Application Domain, It never shared with Other Application Domain. Otherwise it also called as Domain Specific Assembelies.

Domain Neutral Assemblies:
    Domain Neutral Assemlies are assemblies used across Multiple Application Doamin in a Process.

Posted by Renugopal D at 10:56 AM
Post Comment | Permalink
Wednesday, 23 November 2005
Why Structue is called Value-Type and Class is called Reference Type?
Topic: .Net
Every one know Structue is called as Value Type and Class is called as
Reference Type in .net Framework.
For Example:

// value-type
struct TestStruct { int s; }

// reference-type
class TestClass { int c; }

TestStruct ts1 = new TestStruct(10);
TestStruct ts2= ts1;
ts2.s = 20;

TestClass tc1 = new TestClass(10);
TestClass tc2 = tc1;
tc2.c = 20;

if you print ts1,ts2,tc1 and tc2 value you will get the Following ouput:

ts1->10 ts2->20
tc1->20 tc2->20


so , when you copy from ts1 to ts2, the value is passes as py value
where as when you copy from tc1 to tc2 the reference of tc1 is passwed to tc2.
when you set new value to tc2 object it also modify tc1 address, because of passing reference.
now your very clear about why structure is Value type and class is reference Type

Posted by Renugopal D at 10:43 AM
Post Comment | Permalink
Tuesday, 22 November 2005
.Net new keyword used as Operator or Modifier?
Topic: CSharp

The answer for this question is both,new Keyword used as both Operator and Modifier

Used as Operator:
by using new keword as operator we can create and instance of class in Heap.

used as Modifier:
by using new keword as Modifier we can hide class/member form Inherited class

Posted by Renugopal D at 12:24 PM
Post Comment | Permalink
New Namespace avaiable with .Net Framework 2.0
Topic: .Net
The new namespace that are available with .Net Framework 2.0 are
1) addition of new namespace called System.IO.Compression
2) and new class added in cryptogrphy services

Reference:
http://msdn2.microsoft.com/en-us/library/t357fb32(en-US,VS.80).aspx

Posted by Renugopal D at 12:23 PM
Post Comment | View Comments (1) | Permalink

Newer | Latest | Older