Solved

MVC 2 master page data

Posted on 2015-02-02
1
106 Views
Last Modified: 2015-02-03
I need to read a query string value and if it exists, change a phone number on the master page of an mvc 2 website. I'm not sure how to do this and stay within the MVC model? I've found this solution but I'm still struggling to apply this to what I need to do: http://www.asp.net/mvc/overview/older-versions-1/views/passing-data-to-view-master-pages-cs
0
Comment
Question by:robanddeanna
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 40585876
Which part are you having trouble with?  The article you pointed to is essentially saying to use the ViewData dictionary object to provide data for the master page.

The ViewData dictionary is essentially a dumping ground for bits of data and is available across views, so can be used to feed your master page.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now