Creating New MVC Project

new MVC project,

File > New  > Project > MVC 4 project.

1- Select  ASPX instead of  RAZOR Syntax,

2- Remove all of Other Content of  Directories

— How to add Controller and  return string,  Which URL

>> Add new Controller !!!    url   localhost/ControllerNAME/

 

 

– How MVC calling controller, ?

Global.asax Fil e     calling route table, after route table calling controllers

 

Route Config.cs  > Called by Global.asax

 

 

XmlRpcUrl XmlRpcStruct Read Values and keys

 

pinging a server

  ….  

Creating a Timer, for this method

 

c# summary using,

 

speed up vs 2010 visual studio

Tools > Options — CHECK “Show all options

  • IntelliTrace — DISABLE
  • HTML Designer — DISABLE

startup speedup

Tools > Options

  • Environment > Add-in/Macros Security — UNCHECK “Allow Add-in components to load

Tools > Extension Manager

  • Uninstall all you don’t need.

Tools > Options > Environment >

  • Uncheck “Automatically adjust visual experience based on client performance”
  • then uncheck “Enable rich client visual experience

Tools > Options > Environment > Startup:

  • At startup = Show empty environment

Tools > Options > Source Control

  • Set to “None

C# and VB.NET

CSharp and VB.NET are the two primary languages used to program on the .NET Framework environment. Both languages are use the same framework and they both precompiled into the same byte code and then it is compiled and run at runtime. So we can say VB.NET and C# are functionally equivalent. Both C# and Visual Basic.NET share structural similarities with other modern high level languages such as Java and C++ .

But both have different in many features. Primarily keywords are different in each other language . C# is case sensitive while Visual Basic .NET is not. In VB.NET “Example” and “example” are same , but in CSHARP “Example” and “example” are two different variable names. Also it is good to remember that C# statements always terminated by a semicolon (;).

The following are some examples of differences between VB.NET and C#.

Single Line Comments