Professional Documents
Culture Documents
Installation and Environment Setup
Installation and Environment Setup
Installation and Environment Setup
1
Click to edit
Dow n l o a dMaster title style
Installation
https://visualstudio.microsoft.com/downloads/
Visual Studio Installer
Select option ASP .Net and web development
2 2
Click to edit Master
Project Creation title style
3 3
Project Name
Click to edit Master title style
4 4
Click to edit Master title style
5 5
Click to edit Master title style
6 6
Click to edit Master title style
Add a Controller
Step#1
Right click on Controller
Step#2
Select Add option
Step#3
A list will showed up
Select first option controller
7 7
Click to edit Master title style
Add a Controller
Step#1
Right click on Controller
Step#2
Select Add option
Step#3
A list will showed up
Select first option controller
8 8
Click to edit Master title style
9 9
Click to edit
Controller Master title style
Class
public class FirstController : Controller
{
public string Index()
{
return "This is my default action...";
}
public string Welcome()
{
return "This is the Welcome action method...";
}
public string Welcome(string name, int numTimes)
{
return HtmlEncoder.Default.Encode($"Hello {name}, NumTimes is:{numTimes}");
}
} 1010
Click to
HTTP edit Master title style
Request
1111
Click to
HTTP edit Master title style
Request
1212
Click to edit Master title style
Startup.CS
1313
ClickView
Add to edit Master title style
1414
Click to edit Master title style
Thank You
15