Solved

User Controls .ascx files

Posted on 2014-02-17
2
266 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

19 Experts available now in Live!

Get 1:1 Help Now