CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/28/2006 1:20:39 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
Anthony1102
Asp.Net User
MasterPage head rendering...4/28/2006 1:20:39 PM

0/0

I'm testing out MasterPages and I have a minor quirk that is not a huge problem, but it bothers me.  Is there anyway to control the output of the head of the document?  The reason I ask is when using MasterPages, it just makes one continuous line of meta tags, link tags, etc.  I want to control the output so I can put a CRLF after each tag to make it more readable.

Here is what the output is:

<html>
<head><title>
	Untitled Page
</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link href="/css/global.css" rel="stylesheet" type="text/css" /></head>

 
I want it to look more like this:

<html>
<head>
<title>Untitled Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/css/global.css" rel="stylesheet" type="text/css" />
</head>

Any ideas?? 

jminond
Asp.Net User
Re: MasterPage head rendering...4/28/2006 1:47:00 PM

0/0

you can trap the page or master render and prerender....

page offere page.Head so you can probably grab the contents, format it and pump it in however you want.

 


Jonathan Minond
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Essential ASP.Net 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2006

Web:
Master Pages In ASP.NET 2.0 Jul 18, 2005 ... The master page must define , meaning the master page will ... MasterPages are a great addition to the ASP.NET 2.0 feature set, ...
ASP.NET 2.0: MasterPage HtmlHead Renders Messy HTML This bug in MasterPage's HtmlHead control rendering is rather annoying to say the least. If head element is specified as runat="server" at design time it ...
MasterPage head rendering... - ASP.NET Forums MasterPage head rendering... Last post 04-28-2006 9:47 AM by jminond. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
MarkItUp - Adding app-relative items to the Head section of a ... Adding app-relative items to the Head section of a MasterPage ... create a ScriptControl server control that contained the logic for rendering a script tag , ...
Ugly MasterPage markup fix? - ASP.NET Forums Here's a quick code sample of how a MasterPage is rendered: .... WriteBeginTag(" head"); 41 head.Attributes.Render(writer); 42 writer. ...
Meet SharePoint's Front-end! with Diantha van Marion - masterpage Mar 4, 2008 ... This way, any RTF-editor will render any styling attached to the body ... 1. add the following code in the masterpage just above the head ...
CodeProject: MasterPages reinvented - a Component Based Template ... I have tried both onInit and inLoad rendering times. ... Register< /title> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> ...<br /><a href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=103902" title="Feedback: MasterPages + CSS = sometimes confused Design View (VS ..." target="_" ><b>Feedback: MasterPages + CSS = sometimes confused Design View (VS ...</b></a> Using a MasterPage and certain CSS to control the page-template layout, ... that this workaround could potentially introduce other rendering issues. ...<br /><a href="http://www.heathersolomon.com/blog/archive/2007/01/26/6153.aspx" title="Heather's Base Master Page File for SharePoint 2007" target="_" ><b>Heather's Base Master Page File for SharePoint 2007</b></a> Without them all, pages in the SharePoint site will not render. .... I suspect I use the CSS overview daily and this masterpage resides on my desktop. ...<br /><a href="http://www.telerik.com/community/forums/thread/b311D-bebttt.aspx" title="RADMenu MasterPages & CSS - telerik Forum" target="_" ><b>RADMenu MasterPages & CSS - telerik Forum</b></a> Menu.Telerik.css" rel="stylesheet" type="text/css" />. </head> ... This is why I made the comment about the rendering starting from the ...<br /></div></td> <td valign="bottom"> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 7 ; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> </td></tr></table> <br /> <table width="100%"> <tr> <td style="width: 50%"> </td> <td> </td> </tr> </table> <br /> <div style="text-align:center"> <br /> <br /> <b>Search This Site: </b> <input type="hidden" name="cx" value="001993386287184627138:djlrq6ok3yq" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="text" name="q2" id="q2" size="25" onkeypress="if(event.keyCode == 13){SearchSite('q2');return false;}" value="" /> <input type="button" name="sa" value="Search" class="Button" onclick="SearchSite('q2');" /> </div> <br /> <script type="text/javascript"> function doSubscribe(S, E){ DoSubscribe(590521, S,E); } function doFavorite(S, E){ DoFavorite(590521, S,E); } </script> </td> <td id="rightPanel" valign="top" style="width: 100px; text-align: right;"> <div style="text-align: left; font-weight: bold; margin-left: 15px"><br /> <img src="http://www.codeverge.net/images/icons/envelope2.gif" /> <a rel="nofollow" onclick="OpenInviteWin();">Invite</a><br /> <img src="http://www.codeverge.net/images/icons/folders.gif" /> <a href="../History/history_items.aspx" id="ctl00_CPH_RightMenu_A2" rel="nofollow">History</a> <br /> <img src="http://www.codeverge.net/images/icons/books.gif" /> <a href="../resources/computers" id="ctl00_CPH_RightMenu_A1">Resources</a><br /> <img src="http://www.codeverge.net/images/icons/statements.gif" /> <a href="../sitemap/SiteMap.aspx" id="ctl00_CPH_RightMenu_A5" rel="nofollow">SiteMap</a> </div> <br /> <br /> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 3; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> <br /><br /> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 3; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> <br /><br /> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 3; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> <br /><br /> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 3; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> <div style="width: 100px; overflow: hidden; text-align: left; padding: 5px; font-family: Arial;"> <br /> <a href="http://www.codeverge.net/ng.asp-net-forum.security/database-transfer-kills-all-membership" title="database transfer kills all membership" ><b>database transfer kills all membership</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/httphandlers-and-httpmodules" title="httphandlers and httpmodules" ><b>httphandlers and httpmodules</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.visual_studio_2005/error-visual-studio-path-is-not-a-valid-path" title="error: <visual studio path> is not a valid path" ><b>error: <visual studio path> is not a valid path</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/file-locking" title="file locking" ><b>file locking</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.visual_studio_2005/lost-some-search-filter-functionallity-on-vs2003-combined-help-collection-with-the-vs2005-installation" title="lost some search filter functionallity on vs2003 combined help collection with the vs2005 installation" ><b>lost some search filter functionallity on vs2003 combined help collection with the vs2005 installation</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/query-double-value-from-access-using-oledb-connection" title="query double value from access using oledb connection" ><b>query double value from access using oledb connection</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/making-my-site-live" title="making my site live?" ><b>making my site live?</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/determine-controls-in-the-webform" title="determine controls in the webform?" ><b>determine controls in the webform?</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.migrating_from_asp-net_1-x_to_asp-net_2-0/shadowed-text-in-asp.net-2.0" title="shadowed text in asp.net 2.0" ><b>shadowed text in asp.net 2.0</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.windows-hosting_open_forum/myproblem-loadcontrol-invokemember" title="myproblem = loadcontrol + invokemember" ><b>myproblem = loadcontrol + invokemember</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.microsoft_downloads-css_friendly_control_adapters/using-the-css-adapters-to-make-a-dropdown-menu-that-overlaps-select-tags" title="using the css adapters to make a dropdown menu that overlaps select tags" ><b>using the css adapters to make a dropdown menu that overlaps select tags</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/difference-between-the-and-the-operators" title="difference between the && and the & operators" ><b>difference between the && and the & operators</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.security/permissions-required-to-access-system.diagnostics-name-space" title="permissions required to access system.diagnostics name space" ><b>permissions required to access system.diagnostics name space</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.internet_explorer_web_controls/how-to-refresh-tree-view-programmatically-using-c" title="how to refresh tree view programmatically using c#?" ><b>how to refresh tree view programmatically using c#?</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/placeholder-problem-with-viewstate" title="placeholder problem with viewstate" ><b>placeholder problem with viewstate</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.visual_studio_2005/html-input-name-rendered-differently-than-in-vs-2003" title="html input name rendered differently than in vs 2003" ><b>html input name rendered differently than in vs 2003</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/convert-vb.net-code-to-c-2-dim-array" title="convert vb.net code to c# (2 dim array)" ><b>convert vb.net code to c# (2 dim array)</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/table-adapters" title="table adapters" ><b>table adapters</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.dotnetnuke-getting_started/installing-dnn-4.0-documentation" title="installing dnn 4.0 documentation" ><b>installing dnn 4.0 documentation</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.security/display-current-username-on-aspx-page" title="display current username on .aspx page" ><b>display current username on .aspx page</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.visual_web_developer_2005_express/can-i-make-web-design-in-other-software-and-rendered-into-vwd-2005" title="can i make web design in other software and rendered into vwd 2005??" ><b>can i make web design in other software and rendered into vwd 2005??</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/need-help-reading-exchange-with-asp.net-mapi" title="need help reading exchange with asp.net & mapi" ><b>need help reading exchange with asp.net & mapi</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.migrating_from_asp_to_asp-net/moving-to-asp.net" title="moving to asp.net." ><b>moving to asp.net.</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/error-handling-while-inserting" title="error handling while inserting" ><b>error handling while inserting</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/simple-sql-dropdownlist-makes-me-crazy" title="simple sql- dropdownlist makes me crazy..." ><b>simple sql- dropdownlist makes me crazy...</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.getting_started/can-vs2003-called-a-dts-package-like-vs2005-call-ssis" title="can vs2003 called a dts package like vs2005 call ssis?" ><b>can vs2003 called a dts package like vs2005 call ssis?</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.security/how-to-detect-whether-the-browser-is-closed-abruptly-without-logging-out" title="how to detect whether the browser is closed abruptly without logging out!!!" ><b>how to detect whether the browser is closed abruptly without logging out!!!</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.dotnetnuke/to-core-team-re-skin-container-preview-issues" title="to: core team re: skin / container preview issues" ><b>to: core team re: skin / container preview issues</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.vs_2005_web_application_projects/problems-referencing-public-classes-from-certain-aspx.vb-files-in-web-application-project" title="problems referencing public classes from certain aspx.vb files in web application project" ><b>problems referencing public classes from certain aspx.vb files in web application project</b></a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.portal_starter_kit/container-functionality-in-portal" title="container functionality in portal" ><b>container functionality in portal</b></a><br/><br/> </div> </td> </tr> <tr> <td id="leftBottom" valign="top" style="width: 100px">   </td> <td id="ctl00_centerBottom" valign="top" align="center"> <span id="ctl00_PageFooter1_lbl"></span> <br /> All Times Are GMT </td> <td id="rightBottom" valign="top" style="width: 100px"> </td> </tr> </table> <script type="text/javascript"> //<![CDATA[ var _Rating_MemberRating = -1; var _Rating_tbl = document.getElementById('ctl00_CPH_centerFront_ctl28'); function Rating_RollRates(){ if(_Rating_tbl.rows.length < 10){ for ( i =10 ; i >0; i--){ setTimeout( function(){ var row = _Rating_tbl.insertRow(_Rating_tbl.rows.length); var cell = row.insertCell(0); cell.onclick = function(){Rating_RateIt(this.innerHTML);}; cell.innerHTML = 12 - _Rating_tbl.rows.length; cell.className = 'Rating_AvgRating'; if(cell.innerHTML == _Rating_MemberRating){ cell.title='My Rating'; cell.style.color='orange'; } }, (10-i) * 25); } setTimeout(function(){Rating_Close()},10000) } else{ Rating_Close() } } function Rating_Close(){ if(_Rating_tbl.rows.length > 1) for ( i =0 ; i < 10; i++) setTimeout(function(){ _Rating_tbl.deleteRow(_Rating_tbl.rows.length -1 )} , i * 25) } function Rating_RateIt(rating){ ItemPageWs.RateItem(590521, rating, function(A){ document.getElementById('ctl00_CPH_centerFront_ctl29').innerHTML ='('+ parseFloat(A[0]).toFixed(2) +', '+ A[1] +')'; _Rating_MemberRating = rating; Rating_RollRates(); AlertMsg('Your Rating Was Updated'); Afirm( document.getElementById('ctl00_CPH_centerFront_ctl29')); }); } RestrictHeights('tcContent');Sys.Application.initialize(); //]]> </script> </form> </body> </html> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_001993386287184627138%3Adjlrq6ok3yq&lang=en"></script> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-3447589-1"); pageTracker._trackPageview(); </script>