CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/26/2008 11:16:05 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 40 Favorited: 0 Favorite
9 Items, 1 Pages 1 |< << Go >> >|
geetasks
Asp.Net User
How To display asp page as content page in .net3/26/2008 11:16:05 AM

0/0

HelloSmile

  Can anyone tell me how to call an asp page in .net project as content page(of Master Page). Please Help!!!!.

 

kaushalparik27
Asp.Net User
Re: How To display asp page as content page in .net3/26/2008 12:36:27 PM

0/0

 when you add any web page to your application there is a check box at bottom saying "select masterpage" ... if you check that; you can select the master page for that page... or you can select master page in page directive as...

<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage3.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Default" Title="Test Site" %>

then page will be rendered as the content of the master page  

more on masterpage >  ASP.NET Master Pages Overview

hope it helps./. 


Thanx,
[KaushaL] | Profile | Blog
Dont forget to click ?Mark as Answer? on the post that helped you.
This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers.



"I would love to change the world, but they won?t give me the source code"
geetasks
Asp.Net User
Re: How To display asp page as content page in .net3/27/2008 4:24:05 AM

0/0

Thanks for Reply but it doesn't help me. I know how to call an ASP.Net page as content page. But my problem is I want to call ASP page( not ASP.net ) ie page created in ASP as content page. My Project is in .net, but I want to call a report which is developed in ASP inside my Master Page(Created in ASP.net). Any Help!!!!!!!!!!!!!!!!!!!!!!!!!!

geetasks
Asp.Net User
Re: How To display asp page as content page in .net3/27/2008 4:45:49 AM

0/0

Any Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

akm_anand
Asp.Net User
Re: How To display asp page as content page in .net3/27/2008 5:10:39 AM

0/0

There is no direct method for adding master page to asp page because both have diff. mechanism 

add new item ie. aspx page in your application,during this uncheck place code in seprate file,and check select masterpage.

now your new aspx page is something like this

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<div>

</div>

</form>

</body>

</html>

now add page property AspCompat="true" in page directive like this

<%@ Page Language="C#" AspCompat="true" MasterPageFile="~/MasterPage.master" %>

now copy paste your asp code in this aspx file.

I think this will solve your prob.

Happy programming

 

 

 


Anand Kumar Mishra
Consultant Enterprize Solutions
geetasks
Asp.Net User
Re: How To display asp page as content page in .net3/27/2008 5:52:28 AM

0/0

I am sorry!!! But it hadn't solve my problem. Can you suggest any other alternative. As told by you I had created aspx page like

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AspCompat ="true" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

</asp:Content>

and before </asp:Content> tag, I had pasted my asp page code but it shows lots of error.

geetasks
Asp.Net User
Re: How To display asp page as content page in .net3/27/2008 7:50:37 AM

0/0

Can anyone sort out this problem

akm_anand
Asp.Net User
Re: How To display asp page as content page in .net3/27/2008 1:24:51 PM

0/0

Pls copy all asp code in conten tags within <%  your asp code %> these tags

If problem is there the let be give your code or error list as a blog. 


Anand Kumar Mishra
Consultant Enterprize Solutions
Amanda Wang - M
Asp.Net User
Re: How To display asp page as content page in .net3/28/2008 3:31:17 AM

0/0

Hi,

geetasks:
But my problem is I want to call ASP page( not ASP.net ) ie page created in ASP as content page. My Project is in .net, but I want to call a report which is developed in ASP inside my Master Page(Created in ASP.net). Any Help!!!!!!!!!!!!!!!!!!!!!!!!!!

Maybe, you cannot do that directly, because the master page is true page but it is drives from the usercontrol, when the application excutes, the master page just like a usercontrol that is on the content page.

The more about how the master page works, you can refer this greate article: http://www.odetocode.com/Articles/450.aspx

But I would suugest that you can create a blank content page that refers the master page, then you can place a frame in the content page, and set the iframe's src is the asp page's url.

Hope it helps.

 


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro C# with .NET 3.0: exploring the .NET universe using curly brackets Authors: Andrew Troelsen, Pages: 1186, Published: 2007
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro VB 2005 and the .Net 2.0 Platform Authors: Andrew Troelsen, Pages: 1034, Published: 2006
Pro C# 2005 and the .NET 2.0 Platform: Public Beta Edition Authors: Andrew W. Troelsen, Pages: 982, Published: 2005
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
ASP.NET Developer's JumpStart Authors: Paul D. Sheriff, Ken Getz, Pages: 648, Published: 2002
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006

Web:
Display data in content page. - ASP.NET Forums I have search text filed in Master Page with Button. on button click it bring data from some where. i want to display that data on content page. ...
How To display asp page as content page in .net - ASP.NET Forums How To display asp page as content page in .net. Last post 03-27-2008 11:31 PM by Amanda Wang - MSFT. 8 replies. Sort Posts: ...
ASP.NET 2.0 Master Pages The content pages contains the content you want to display. When users request the content page, ASP.NET merges the pages to produce output that combines ...
Free ASP script: Learn how to display RSS/XML feed using free ASP ... ASP script for ASP/ASP.NET This page provides quick guide for displaying of ... on HTML page to generate HTML content from RSS feed and then display on your ...
ASP.NET Resources - Crafting Lightweight Page Templates with CSS Unfortunately, building page templates in ASP.NET has never been easy. ... We simply use the CSS display property to hide it and adjust content to stretch ...
CodeProject: Load and Display Page Contents Asynchronously with ... They could only display initial content, and users were unable to interact ..... Build Google IG like Ajax Start Page in 7 days using ASP.NET Ajax and . ...
Chris Johnson : UPDATED: Building a simple ASP.Net page based ... Title="Data Display Page" %>. Content does not display when using ASP.Net 2.0 master page and a ... I am at my wits end. Although this seems simple and the online examples seem simple, I cannot get the master page to work right.
ASP.NET.4GuysFromRolla.com: Passing Information Between Content ... Jan 31, 2007 ... The net result is that entering text into the TextBox on the content page and clicking the Button results in the Master Page's display ...
Display Contents of Excel SpreadSheet in ASP.NET Page More information: This demo shows you how to display the contents of an Excel spreadsheet in an ASP.NET page by using the data grid control. ...

Videos:
Re: Re: Sen. Ted Kennedy supports Net Neutrality Legal Record of Events with shifting investigative prejudice; Organizational effects on human reasoning by compression model for bond matrices of neu...
how to lose wight when you are over 600 lbs Obaid Karki An Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru. Unaffili...
Frequent binge eating is the most common eating disorder Obaid Karki An Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru. Unaffili...
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...
How Aicha redeemed Muhammad Message today. watch this Obaid Karki An Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru. Unaffili...
Youtube Code of Conduct " UpDownMostly " Obaid Karki An Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru. Unaffili...
Shia, Iran, Ali Sina, Robert Spencer & Murtaza Obaid Karki An Outcast Kabbalist Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Talkshow Guru. Unaf...
Youtube Code of Conduct " for Muslims and others of course " Obaid Karki An Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru. Unaffili...
Who is Jesus anyway ? Christian Prince הנוצרالاسراء والمعراج Obaid Karki An Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru. Unaffi...




Search This Site:










align text in menu server control

javascript - masterpage - help

sitemap customization help

menu, menu, menus

httpruntime.appdomainappvirtualpath

is it possible have shadow on menu control?

how can i show a picture in a pop-up ?

how to change dynamicpopoutimageurl on hover of an asp.net menu

svg and masterpage incompatibility

treeview and selected style

tree view control

sort treeview nodes

page has very large height but is empty

menu control on master page displays behind content on child page

how to pick and choose which menu will show in treeview?

how to add a swf animation on to asp.net page??

treeview nodes.remove problem

dynamically adding views to multiview

sitemap file popualated from sql server database

custom sitemapprovider and update of the menu associated

menu server control

horizontal menu using sitemap and menu controls

master page and content holder how to?

bind treeview to ms access database (vb)

using static menu to create a tab menu strip

setting selecteditem in menu?

accessing master page class from app_code

master page menu navigation

changing theme structure

adding and deleting node of treeview

  Privacy | Contact Us
All Times Are GMT