Solved

User Controls .ascx files

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JSON  parse help 7 40
Change to file doesn't show up 16 57
how to just get time from a date 6 34
Regarding swagger API 1 17
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 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