Solved

User Controls .ascx files

Posted on 2014-02-17
2
269 Views
Last Modified: 2014-02-17
A user control needs to be registered correct?  Why does it need to be registered?
0
Comment
Question by:metro156
2 Comments
 
LVL 35

Expert Comment

by:Miguel Oz
ID: 39866106
Register is used to include your user control on the target web page.
http://msdn.microsoft.com/en-us/library/sbz9etab(v=vs.85).aspx

It is like the using directive (It just let your page know where to find your user control)
0
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 39866108
In Visual Web Developer, open the Web page to which you want to add the ASP.NET user control.     Switch to Design view.     Select your custom user control file in Solution Explorer, and drag it onto the page.     The ASP.NET user control is added to the page. In addition, the designer creates the @ Register directive, which is required for the page to recognize the user control. You can now work with the control's public properties and methods.
http://msdn.microsoft.com/en-us/library/5d0t5fak.aspx
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now