473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Differences betwen ASPX and ASCX

Sorry for the dumb question but what is the difference between ASPX and ASCX
pages?

Cheers
PK.
Nov 18 '05 #1
5 25453
ASPX is a page and ASCX is a usercontrol. A page can contain usercontrols.

Chris
"Paul King" <ki******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Sorry for the dumb question but what is the difference between ASPX and ASCX pages?

Cheers
PK.

Nov 18 '05 #2
Why would you want a user control then.

I had seen this example of a copyright notice - in a usercontrol but this
won't never change
"Christopher Kimbell" <c_*******@online.nospam> wrote in message
news:41********@news.broadpark.no...
ASPX is a page and ASCX is a usercontrol. A page can contain usercontrols.

Chris
"Paul King" <ki******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Sorry for the dumb question but what is the difference between ASPX and

ASCX
pages?

Cheers
PK.


Nov 18 '05 #3
Paul King wrote:
Sorry for the dumb question but what is the difference between ASPX
and ASCX pages?


..aspx files are a Web Forms (i.e. pages), whereas .ascx are User Controls
(*not* pages, but page fragments).

Cheers,
--
Joerg Jooss
jo*********@gmx.net

Nov 18 '05 #4
Paul,

Let's say you have a control that you want to appear on every page. A login
with username and password fields and button is a good example. With a user
control you could create one single login control and then drop it onto
every page of your website instead of having to recreate it on every page.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Paul King" <ki******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Why would you want a user control then.

I had seen this example of a copyright notice - in a usercontrol but this
won't never change
"Christopher Kimbell" <c_*******@online.nospam> wrote in message
news:41********@news.broadpark.no...
ASPX is a page and ASCX is a usercontrol. A page can contain
usercontrols.

Chris
"Paul King" <ki******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
> Sorry for the dumb question but what is the difference between ASPX and

ASCX
> pages?
>
> Cheers
> PK.
>
>



Nov 18 '05 #5
I see - now I understand cheers matey

:)

"S. Justin Gengo" <sjgengo@aboutfortunate[no-spam].com> wrote in message
news:10*************@corp.supernews.com...
Paul,

Let's say you have a control that you want to appear on every page. A login with username and password fields and button is a good example. With a user control you could create one single login control and then drop it onto
every page of your website instead of having to recreate it on every page.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Paul King" <ki******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Why would you want a user control then.

I had seen this example of a copyright notice - in a usercontrol but this won't never change
"Christopher Kimbell" <c_*******@online.nospam> wrote in message
news:41********@news.broadpark.no...
ASPX is a page and ASCX is a usercontrol. A page can contain
usercontrols.

Chris
"Paul King" <ki******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
> Sorry for the dumb question but what is the difference between ASPX and ASCX
> pages?
>
> Cheers
> PK.
>
>



Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: dh | last post by:
As a simple example, I can't seem to be able to reference a label called "lblOutput" that exists in my test.aspx page from within a User control, TestControl.ascx. I am stumped. Any help is...
4
by: BH | last post by:
I'm looking at the source code of the ASP.NET forum sample application. It has the "code-behind" classes compiled into a separate DLL, totally separated from the aspx/ascx files. Adding the class...
3
by: Tom | last post by:
Hi, I have an index.aspx page which includes top.aspx, left.aspx, main.aspx and bottom.aspx. In the left.aspx, there is a login web control - login.ascx. It keeps session of username and role...
4
by: Nedu N | last post by:
Hi, I want to put a HTML table on aspx webform so that i can place my header, menu, footer user controls appropriately. I got 3 user controls header.ascx menu.ascx footer.ascx I trying to...
2
by: Peter Jackson | last post by:
I'm using v2 of the UIP App. Block. I've created all my .aspx pages, all of which contain .ascx user controls. The .ascx user controls provide the standard server controls (i.e., LinkButtons, etc.)...
2
by: InHyuk, Song | last post by:
I want to include ascx file, it displays some contents. therefore I drag the ascx file from the solution explorer into the design window of the aspx file. However, in case that ascx file(not...
2
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a...
2
by: mharness | last post by:
Hello, I've tried a number of examples showing how to read the properties of a user control from an aspx file where the code is on the html view of the form but I can't figure out how to read...
6
by: Martin Eyles | last post by:
Hi, I have a .aspx page which has a .ascx file included through the lines <%@ Register TagPrefix="aspcustom" TagName="menu" Src="Menu.ascx" %> and <aspcustom:menu id="Menu1"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.