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. how can i got an inistance of a page from the assembly ?

how can i got an inistance of a page from the assembly ?

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-net
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.
  • M Offline
    M Offline
    Modern_night
    wrote on last edited by
    #1

    i want to get an instance of the web pages from the assembly in asp.net .. i couldn't use this method .. AppDomain.CurrentDomain.CreateInstanceAndUnwrap(pg.GetType.Assembly.GetName.Name, System.String.Concat(pg.GetType.Assembly.GetName.Name, ".", pageName)) how can i got an inistance of a page from the assembly .. thanx

    لا اله الا الله محمد رسول الله

    L 1 Reply Last reply
    0
    • M Modern_night

      i want to get an instance of the web pages from the assembly in asp.net .. i couldn't use this method .. AppDomain.CurrentDomain.CreateInstanceAndUnwrap(pg.GetType.Assembly.GetName.Name, System.String.Concat(pg.GetType.Assembly.GetName.Name, ".", pageName)) how can i got an inistance of a page from the assembly .. thanx

      لا اله الا الله محمد رسول الله

      L Offline
      L Offline
      l0kke
      wrote on last edited by
      #2

      You have to use Assembly.FullName property instead of Name and I didn't understand your way to obtain type name. This works fine for me: object o = AppDomain.CurrentDomain.CreateInstanceAndUnwrap(page.GetType().Assembly.FullName, page.GetType().FullName); check msdn: http://msdn2.microsoft.com/en-us/library/3c4f1xde.aspx Pilo

      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