|
Hi,
I have aspx and i have few ascx within the same aspx. I want to use a page variable for it so it should be readable from any part of the page, from aspx or any of its ascx, something like the session but for that page only.
what's your idea?
|
|
|
|
|
VieState or ControlState plus some helper class. I don't see other alternatives. Maybe custom Page class with custom Controls, but it is harder to acomplish.
No more Mister Nice Guy... >: |
|
|
|
|
|
Create an object for MyPage class like
MyPage myPage = new MyPage();
myPage.productName = "adidos";
productName is a variable of your page
|
|
|
|