Difference between C# var and Javascript var
C#
var i = 10; // implicitly typed
int i = 10; //explicitly typed
//Initialization is mandatory
var a = 10;
//Allowed
a = 13;
//Not Allowed
a = "string";
By using above example we can say C# var is strongly typed, but inferred from whatever the value is being assigned.
Javascript
<script type="text/javascript">
var a = "stringValue";
a = 567;
a= "2ndString"; // allowed
</script>
Solution for the QlikView, Biztalk, DotNet and MSBI real time development problems
Search This Blog
Wednesday, November 9, 2011
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Confirmation box from code behind c# using modalpopup ajax control <% @ Page Language ="C#" AutoEventWireup ="true...
-
WWF Related Sites (No need to search for WWF): http://aspalliance.com/1074_An_Introduction_to_Windows_Workflow_Foundation.all http://www.cod...
-
WCF offers immensely valuable support for reliability, transactions, concurrency management, security, and instance activation, all of w...
-
In earlier versions of ASP.NET, you enable smart navigation by using the Page.SmartNavigation property. When you set the Page.SmartNavigatio...
-
If you place a file with this name ( app_offline.htm ) in the root of a web application directory, ASP.NET 2.0 will shut-down the applica...
No comments:
Post a Comment