vijay

welcome Netizen

welcome Netizen
Hi folks this site Share Basic Knowledge in .NET, DotNet, C#,DOT NET CODE, ASP.NET, VB.NET, DOT NET TRICKS,Dotnetcode,Android and Latest Technology Articles in VB,Android and ASP.NET

Monday, November 26, 2012

Difference between C# and Java


C# and java was derived from c++ therefore they have similar roots.C# has borrowed some features from java. However, there exist a numbers of differences between c# and Java.



Java
C#

Java uses Static final to declare a class constant
C# uses CONST
Java does not support struct type
Its support struct type
Java does not support operator overloading
Its support operator overloading
Class members are virtual by default and a method name in a derived class overrides the base class member
In C# the base member is required to have the virtual keyword and the derived member is required to use the override keyword
In java parameters are always passed by value
It allows parameters to be passed by reference by using ref keyword
In java switch statement can have only integer expression
C# support either an integer or string expression
Java uses instanceof operator instead of  is operator in C#
C# uses is operator instead of instanceof operator in java
In java ,all c# data types are objects
C# has more primitive  data types
Java does not support directly on enumerations
C# supports enumerations



Monday, November 5, 2012

How to get the current system IP address in asp.net


Hi
Really am very proud to write the article with DotNetCode, they way to reach this article to help many people to save their time.
Article is about to client IP address from the machine, using C# code.i knew many people to search this code to find the system IP address.
Normally when we try to get the system IP its always return the server IP address instead of return the current  system IP address, here I solve the problem by the below code to get the current system IP address.
Code:

HttpRequest IPRrequest = HttpContext.Current.Request;
            string IPaddr= IPRrequest.ServerVariables["HTTP_X_FORWARDED_FOR"];

            if (IPaddr== null || IPaddr.ToLower() == "unknown")
                IPaddr= IPRrequest.ServerVariables["REMOTE_ADDR"];

            return IPaddr;


 Above code return the current system ip address eventhough the system connected on the network.
I hope you like this article..share this article with your friends.

Friday, November 2, 2012

Find out computer problem using beep sounds


This article is completely beyond to our platform. But they reason to write this article. In a daily life we are stick with computers, at least we must know the problem would arise in PC.

In an every computer they have default inbuilt speaker. By using speaker sound we can easily identity the problem occurs in Computer.
Here I have list out the common errors occurs in Computer. Also they way to find out the errors using Beep sounds.



Beep code
Beep Problem
No beep sound, system dead
Power supply bad,system not plugged in, or power not turned on
Continuous beeps
Power supply bad,not plugged into mother board correctly,or keyboard stuck
Repeating short beep sound
Power supply may be bad
1 short beep,nothing on the screen
Video card failure
1 short beep,video present,but system won’t boot
Bad cable,or controller
2 short beeps
Configuration error
1 long beep, 1 short beep
System board bad
1 long , 2 short
Video card failure

I hope you like this article…
If you want to share more……Post your comments here..