c# - What is the difference between .aspx and .aspx.cs? -


I'm not new to programming, but I'm not new to Visual Studio, MVC, C #, ASP.NET, and EXT.NET I'm new to, that's all the tools I'm trying to use.

I am trying to create an Ext.Net 2.0 MVC4 project and in the same (functionality) Non-MVC project was given for reference.

I see that this non-MVC project contains .aspx and .aspx.cs files. It seems that the .aspx file is basically the maps in "View" in MVC that I want to create ... and work in .aspx.cs file that is related to .aspx file - similar to "controller"? However there are some functions in the .aspx file that do not look completely related to view ...

Can someone give me a quick overview or a place to start with this?

ASPX files usually have a UI and which are usually HTML tags, some ASP Net server control embed code (which is eventually some HTML markup) will be server-side coding in the ASPX.CS file (usually called codebehind) in C #.

If necessary, I can see the ASPX page and ASPX. I can address CS with controlling action methods.

You have to remember that in webform, we can control ASP.NET to use some HTML render in an ASPX file. Example text box, Datagrid etc. In MVC, there is nothing called server control, see Pure, handwritten HTML will be.

If necessary, you can create a hybrid project that is a combination of MVC and webform. Scott has a post explained about it.

There is no viewstation in MVC):

When you switch from ASP.NET webforms to MVC, you have to understand that one important thing is that the MVC architecture Trying to be true is that any viewstate is not available in HTTP is false MVC, then you need to make sure that You are reloading the data in every HTTP request, as required. People usually run problems in loading the dropdown list in MVC. There is so much more to do, how to handle dropdown lists on postbacks (when the form is posted).

I recommend that you check out some initial levels on ASP.NET MVC and start building your app step by step, and if you run on any issue, then relevant Post a question ( new ) with details.

Good luck, and welcome to the wonderful world of MVC. :)

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -