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. Web Development
  3. ASP.NET
  4. Generics

Generics

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 Posts 3 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.
  • A Offline
    A Offline
    Alex_Y
    wrote on last edited by
    #1

    How to use generic class name in aspx Inherits="GenericClassName" :)

    C M 2 Replies Last reply
    0
    • A Alex_Y

      How to use generic class name in aspx Inherits="GenericClassName" :)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I doubt you can. VB.NET does not offer generics in 2005, so I don't see why they'd put generics into ASP.NET, when half their users cannot use it. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • A Alex_Y

        How to use generic class name in aspx Inherits="GenericClassName" :)

        M Offline
        M Offline
        MihirV
        wrote on last edited by
        #3

        hi i think you should do like this... class GenericWebClass : System.Web.UI.Page { } class yourASPXpage1 : GenericWebClass { } class yourASPXpage2 : GenericWebClass { } don inherit class in .aspx file may be worked.... :) Mihir...

        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