locked
Create a Custom Control(web control library) in vs2010 RRS feed

  • Question

  • User-521440736 posted

    Hi

    In last versions of VS there are 2 topics: User Control and Custom Control

    in VS2010 I didn’t find  Custom Control but in file->new->project->web

    I found a ASP .Net  Server Control.

    Is it same the "Custom Control" in last version of  VS?

    If not ,how Can I Create a Custom Control (web control library) in vs2010

    Thanks very much

    Wednesday, June 15, 2011 2:38 AM

Answers

  • User377791177 posted

    Is it same the "Custom Control" in last version of  VS?

    YES.

    how Can I Create a Custom Control (web control library) in vs2010

    any class that inherits from WebControl , DataBoundControl or Control for that matter is a web server control , so you can add a class library project and start adding classes that inherits from these classes and you'll have a custom control library.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 15, 2011 2:47 AM

All replies

  • User377791177 posted

    Is it same the "Custom Control" in last version of  VS?

    YES.

    how Can I Create a Custom Control (web control library) in vs2010

    any class that inherits from WebControl , DataBoundControl or Control for that matter is a web server control , so you can add a class library project and start adding classes that inherits from these classes and you'll have a custom control library.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 15, 2011 2:47 AM
  • User3866881 posted

    Hello armm1388:)

    Asp.Net Server-Side Control is different from Custom Control (ascx) file in mainly developing way, you can see the details at:

    1)About Asp.net Server-Side Controls' Developing in details Step-by-Step:

    http://msdn.microsoft.com/en-us/library/zt27tfhy.aspx

    2)The most differences between them:

    http://msdn.microsoft.com/en-us/library/aa651710(v=vs.71).aspx

    Thursday, June 16, 2011 10:47 PM