Instance of page loaded?
-
Hi, I have a certain peice of code written in master page, and on the click of a button which is on the master page i want to execute that code on the basis of the current page loadad in the contentplaceholder. Please help me to find out a way by whihc i can determine which page is currently loaded in master-page. Thanks.
Deepak Surana
-
Hi, I have a certain peice of code written in master page, and on the click of a button which is on the master page i want to execute that code on the basis of the current page loadad in the contentplaceholder. Please help me to find out a way by whihc i can determine which page is currently loaded in master-page. Thanks.
Deepak Surana
I suspect that you can do this with reflection, or by examining the Id of the parent control. However, an easy way to build this would be to create an enum representing all the different pages, or even just those pages you especially want to recognise, and one value for all you don't. Make the page set this property in it's master page, in the init method. The property itself is a member variable of the master page.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )