Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Please help
i need a solution for below problem

My project requirement like project contains only .ascx page .NO .ASPX PAGE. So how i run the project .one .ascx page work as a master page and load all other .ascx and project works.

[Edit]SHOUTING removed from title[/Edit]
Posted
Updated 21-Jun-13 2:44am
v3
Comments
Rish_lp 21-Jun-13 9:02am    
Can u elaborate more about ur problem ? it's not clear from ur question .

1 solution

First of all, you should know the usage of ascx page?
The main usage of a ascx file: It is a user control, is a kind of composite control that works much like an ASP.NET Web page.

To a user contol:
*You can add existing Web server controls and markup to a user control
*Define properties and methods for the control.
*You can then embed them in ASP.NET Web pages.

How to use it in your aspx pages:
Call it in your page's head section.
C#
<![CDATA[<%@ Register Src="~/folder_name/YourControl.ascx" TagName="YourControl" TagPrefix="urCtrl" %>]]>


The functionality of a master page is totally different.

Good luck,
OI
 
Share this answer
 
Comments
Asp_Learner 21-Jun-13 10:14am    
totally true ,.ascx extension is used for user controls not for master pages or even simple webpages.
Thomas Daniels 21-Jun-13 10:43am    
Correct, my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900