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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to derive aspx page from another aspx page / from user conrol /master page? [modified]

How to derive aspx page from another aspx page / from user conrol /master page? [modified]

Scheduled Pinned Locked Moved ASP.NET
ooptutorialquestion
3 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.
  • P Offline
    P Offline
    pkj
    wrote on last edited by
    #1

    Hi I want to derive aspx page from another aspx page i.e inheritance of aspx page. I want to inherit one aspx page i.e basic.aspx and its conrol in another aspx page like city master. basic page contain label (serial no.,Id, name), Textbox(serial no.,Id, name)and Bttons (btnadd ,btndelete,btnsave) . this conrol I want to inherit in citymaster.aspx.

    modified on Wednesday, October 7, 2009 2:18 AM

    A 1 Reply Last reply
    0
    • P pkj

      Hi I want to derive aspx page from another aspx page i.e inheritance of aspx page. I want to inherit one aspx page i.e basic.aspx and its conrol in another aspx page like city master. basic page contain label (serial no.,Id, name), Textbox(serial no.,Id, name)and Bttons (btnadd ,btndelete,btnsave) . this conrol I want to inherit in citymaster.aspx.

      modified on Wednesday, October 7, 2009 2:18 AM

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Create a Class inside App_Code like:

      public abstract class MyWebPage : System.Web.UI.Page
      {
      //Implement
      }

      Now inherit this call for all your pages where you need the common functionality.

      public partial class WebPages_MyTestPAge : MyWebPage
      {

      }

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET

      P 1 Reply Last reply
      0
      • A Abhijit Jana

        Create a Class inside App_Code like:

        public abstract class MyWebPage : System.Web.UI.Page
        {
        //Implement
        }

        Now inherit this call for all your pages where you need the common functionality.

        public partial class WebPages_MyTestPAge : MyWebPage
        {

        }

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET

        P Offline
        P Offline
        pkj
        wrote on last edited by
        #3

        I have created one page(aspx) in that page there is textbox,label,button.,i want that control(textbox,..,..)on another page(like inheritd from one page(aspx) to another page(aspx))

        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