Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Adding extra attribute / event to web control

Adding extra attribute / event to web control

Scheduled Pinned Locked Moved C#
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 1194469
    wrote on last edited by
    #1

    :eek: Is it possible to add our own attribute / events to web control (if it is not supporting) to increase functionality

    C 1 Reply Last reply
    0
    • U User 1194469

      :eek: Is it possible to add our own attribute / events to web control (if it is not supporting) to increase functionality

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Yes, you derive a class from the web control and add the properties. The following article on MSDN gives you a starting point, it uses the generic Control as the base, but you can derive from other existing controls as well. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconwalkthroughdevelopingsimplewebformscontrol.asp[^]


      "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar The Second EuroCPian Event will be in Brussels on the 4th of September Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way! My Blog

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups