Wednesday, 18 September 2013

How to put data from various .cshtm files into of _Layout.cshtml?

How to put data from various .cshtm files into of _Layout.cshtml?

My _Layout.cshtml file has three "div" situated in one "div"(div
id="content"). The full code is:
<body id="bckgrimg">
<div id="content">
<div id="leftcolumn">
<ul >
<li><a href="home/contactus">Contact us</a></li>
<li><a href="home/aboutus">About us</a></li>
</ul>
</div>
<div id="centercolumn">
We'll put something useful here later
</div>
<div id="rightcolumn">
<div id="gallery">
<a href="../Slide1.JPG"><img src="..."/></a>
<a href="../horse_B.jpg"><img src="..."/></a>
<a href="../shore_B.jpg"><img src="..."/></a>
</div>
</div>
</div>
I have tried to put data by writing "some text" in xxx.cshtml but I just
add new element on a web page as I have yet created in _Layout.cshtml. I
just would like to put exactly data from various .cshtml files into of
_Layout.cshtml.
Is it possible to put data from xxx.cshtml file into (Where it is wtiiten
"We'll put something useful here later") of_Layout.cshtml?

No comments:

Post a Comment