raju beta
raju beta

Reputation: 1

There is no Default.aspx.cs file into my webapplications project

Before telling you anything i'd like to clear, I'm a completely beginner in ASP.NET. In fact, I started learning today ASP.NET.

So, I'm making an event that would bind my code with C# files. Well I'm good in C#.

But the problem is as I find into projects, there is no Default or any aspx.cs files here. Can you please help? Where can I find it?

This tutorial says that to bind events, you need to write code in .cs files.

Here is my how my project is setup:

enter image description here

Upvotes: -1

Views: 3870

Answers (1)

Jags
Jags

Reputation: 782

I think you have choosen a wrong project type while creating your project.For your purpose you need to do following

  1. File>New>Project
  2. On the left panel Go Visual C# > Web
  3. Select ASP.NET Web Forms Application

Looking at your screenshot it seems you selected "ASP.NET Empty Web Application".You can add files to this as well but since you are a beginner its better to follow above steps.

Upvotes: 1

Related Questions