Techknow Study

difference between ASPX and ASCX

9:18:00 PM vikas 0 Comments Category :

Little difference between ASPX and ASCX Extension

The Difference is in Tabular form with an example.

The .ascx files are basically used to create or define custom controls to be placed onto web pages(.aspx).

So We can say ASPX contain ASCX, i.e. Web page contain User control

Now we take an Example for this:-

  • A login user control is best example for this having username and password fields and button. With the help of web user control we can create one single login control and then put it into numbers of pages of your website.
  • That reduce your work for again and again creation of login fields in every page.
  • We can call user control created into .ASCX page in every .ASPX page through some sort of lines.