C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

HOW CAN I FIT ASPX PAGE IN THE CONTENT PLACE HOLDER OF MASTER PAGE....URGENT


Posted Date: 19 Aug 2008      Posted By: TARAK NATH ROY      Member Level: Silver     Points: 1   Responses: 1



HOW CAN I FIT Contact.aspx PAGE IN THE CONTENT PLACE HOLDER OF MASTER PAGE(mymaster.master)....URGENT

I have very large file (doc.htm )and want to show this html file in Contact.aspx page.
And I have added the mymaster.master page with this Contact.aspx page.

My requirement is After clicking menu/submenu I want to display the doc.htm
in the content place holder of master page


plz can any one send me the code





Responses

Author: Vidhya    19 Aug 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 6

hi,

refer the following code:

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>MasterPage</title>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="font-size: 10pt; color: white; font-family: Tahoma" bgcolor="#7e90a7" alink="#ffffff" link="#ffffff" text="#ffffff" vlink="#66ccff">
<form id="form1" runat="server">
<div>
<table>
<tr>
<td colspan="2" style="height: 236px">
<asp:Image ID="Image1" runat="server" ImageAlign="Top" ImageUrl="~/Images/topF.jpg"
Width="980px" Height="227px" /></td>
</tr>
<tr>
<td style=" height: 283px" valign="top">
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" BackColor="White" Height="35px" Width="464px" ForeColor="#7E90A7" Orientation="Horizontal" DynamicVerticalOffset="5">
<DynamicHoverStyle BackColor="White" />
<DynamicMenuStyle BackColor="#7E90A7" />
<DynamicSelectedStyle BackColor="White" ForeColor="White" />
<DynamicMenuItemStyle BackColor="White" ForeColor="#7E80A7" />
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
<br />
<asp:ContentPlaceHolder ID="Main" runat="server">
</asp:ContentPlaceHolder>
<br />
</td>
<td style="height: 283px" valign="top">
<strong><span style="color: #ffffff">Phone:
<br />
xxx-xxx-xxxx<br />
<br />
FAX:<br />
xxx-xxx-xxxx<br />
<br />
Address:<br />
withheld
<br />
<br />
E-Mail:<br />
withheld<br />
<br />
© Company Name. </span><a href="privpol.aspx"><span style="color: #ffffff">
Privacy Policy</span></a></strong></td>
</tr>
<tr>
<td style=" height: 18px;">
</td>
<td style="width: 145px; height: 18px;">
</td>
</tr>
</table>

</div>
</form>
</body>
</html>



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Insert Image to TextBox?
Previous : Google Web API
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use