how can i got an inistance of a page from the assembly ?
-
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لا اله الا الله محمد رسول الله
-
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لا اله الا الله محمد رسول الله
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