Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

read variable from content page to usercontrol in masterpage

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shailesh Patel - 03 Dec 2007 16:29 GMT
Hi,
I havea variable in cotent page. I want to read that variable into
usercontrol located in master page.
Is there any trick to read it in usercontrol?

Thank you in advance.

Shailesh
bruce barker - 03 Dec 2007 17:10 GMT
the proper way is to define an interface (in app_code) and have pages
that have the variable implement the interface. then the master page can
just cast this.Page to the interface and access the variable. this way
the master page can easily detect pages that do not.

-- bruce (sqlwork.com)

> Hi,
> I havea variable in cotent page. I want to read that variable into
[quoted text clipped - 4 lines]
>
> Shailesh
Shailesh Patel - 03 Dec 2007 17:22 GMT
Hi Bruce,
Can you please give me some short example to understand better.
I apperetiate your feedback.

Thank you.

> the proper way is to define an interface (in app_code) and have pages that
> have the variable implement the interface. then the master page can just
[quoted text clipped - 11 lines]
>>
>> Shailesh

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.