--LETS START ASP.NET
SELECT FILE-->NEW PROJECT
--SOLUTION EXPLORER
VIEW-->SOLUTION EXPLORER
SOLUTION ITSELF WHOSE NAME IS WEBAPPLICATION2.
Solution is collection of projects.
--Add a Class Library
So when you add Class Library you see now there are two projects. So solution is collection of projects.
A solution will have .sln extension.

Now double click the webapplication2 in that folder[folder below the webapplication2].
You will find the files has .csproj extension. [as we have created the webapplication in c sharp language].
And the same thing will be for class library.[as we have created the class library in c sharp language]
@page directive tells us which is our code behind file.
SELECT FILE-->NEW PROJECT
--SOLUTION EXPLORER
VIEW-->SOLUTION EXPLORER
SOLUTION ITSELF WHOSE NAME IS WEBAPPLICATION2.
Solution is collection of projects.
--Add a Class Library
So when you add Class Library you see now there are two projects. So solution is collection of projects.
A solution will have .sln extension.
Now double click the webapplication2 in that folder[folder below the webapplication2].
You will find the files has .csproj extension. [as we have created the webapplication in c sharp language].
And the same thing will be for class library.[as we have created the class library in c sharp language]
--Selecting start up project makes it bold. Only one start up project can be there.
--Make class library as the start up project. That makes it bold to the class Library.
Now the code Behind is written Default.aspx.cs[Where we write the code]
Then what is this Default.aspx.designer.cs ?
Now drag and drop a drop downlist and press f4 to check its properties.The default name is dropdownlist1. Now we didnot write that. So from where did it come. This autogenerated code is written in Default.aspx.designer.aspx.cs
No comments:
Post a Comment