Solved

layout page access

Posted on 2014-01-30
2
266 Views
Last Modified: 2014-02-04
Hi,
 
In  the   _MasterLayout.cshtml  page I have the following along with other menu.

<div id="image">
 
<img class="logo" src="~/Content/images/Icons/logo.png" width="149" alt="img">

</div>

And I am using this layout page in  Home view

@{
        Layout = "~/Views/Shared/_MasterLayout.cshtml";
}

Now it is displaying the logo, which is fine.

Similarly I am using the same layout page for  Employees view

Here in this page I don’t want to show the logo , instead I want to say  “Employee Details”

So, could you please say me how to update layout page div tag from employees view.

and i am using mvc 4 razor
0
Comment
Question by:praveen1981
2 Comments
 
LVL 21

Accepted Solution

by:
Craig Wagner earned 500 total points
Comment Utility
You'll have to do it with JavaScript. If you're using jQuery you can do something like:

$("#image")

to get a handle to the div and then change the HTML inside the div. I think there's an html() method in jQuery that would let you replace the contents of the div with whatever you want.

Having said that, if you don't want the same thing to appear on every page in the system it probably shouldn't be on the layout page.
0
 

Author Closing Comment

by:praveen1981
Comment Utility
Many thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

6 Experts available now in Live!

Get 1:1 Help Now