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: 8/29/2007 9:28:12 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 19 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
20 Items, 1 Pages 1 |< << Go >> >|
Icemania
Asp.Net User
Pages losing style8/29/2007 9:28:12 AM

0/0

I'm quite new to .NET, but things are coming along.  I've started a project that uses master pages and they seem to be working fine.

However I've got a couple of pages that have either a gridview or formview, whenever I click an option to either update or any other option the update works fine and goes to and from the database, but the page loses its style and I have to refresh the page to bring it all back and I've no idea why and its doing my head in

Help!

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 9:49:58 AM

0/0

Are the styles generated clientside, i mean through javascript or whatever.?


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 10:18:59 AM

0/0

No just straight forward html, the generic.css file does import other style sheets, but this is nothing new:

 <link href="/_sitefiles/_css/generic.css" type="text/css" rel="stylesheet" media="screen" />

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 10:32:01 AM

0/0

could I see the page code of that file please


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 10:51:05 AM

0/0

sure thing:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Admin.master.cs" Inherits="_Default" EnableViewState="false" %>
<!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" lang="en-gb">
<
head>
<title>Site title</title>
<link href="/_sitefiles/_css/generic.css" type="text/css" rel="stylesheet" media="screen" />
</
head>

<body>
<form id="form1" runat="server">
<div id="container">
<div id="conHeader">
<div id="title"><h1>Heading</h1></div>
<div id="version">Version: <asp:Label ID="lblVersion" runat="server" /></div>
<div id="nav">
<asp:Repeater ID="rptMainMenu" runat="server" DataSourceID="smMainNav">
<HeaderTemplate><ol></HeaderTemplate>
<ItemTemplate><li><a href="<%#((SiteMapNode)Container.DataItem).Url%>"><%# ((SiteMapNode)Container.DataItem).Title%></a></li></ItemTemplate>
<FooterTemplate></ol></FooterTemplate>
</asp:Repeater>
<asp:SiteMapDataSource ID="smMainNav" runat="server" ShowStartingNode="false" />
</div>
</div>

<asp:contentplaceholder id="cphContent" runat="server">
</asp:contentplaceholder>

<asp:Label ID="lblErrorMessages" runat="server" EnableViewState="False"></asp:Label></div>

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

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 11:01:51 AM

0/0

Could I see the code behind as well please


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 11:11:05 AM

0/0

No problem, not much code in it:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.MasterPage
{

protected void Page_Load(object sender, EventArgs e)
{

lblVersion.Text = ConfigurationManager.AppSettings["Version"];

}

}

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 12:10:34 PM

0/0

Which browser you are testing the code in?

 


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 12:14:23 PM

0/0

Just runs some checks and it only does it in IE7

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 12:19:31 PM

0/0

Well it appears pretty bizzare, but I remember having faced that issue in IE6 when using ol and li like you are using...and an external stylesheet...

The solution i did was put embedded styles in that page, and leave the rest.

I thought it was a bug because it happened on every retrial and especially in asp.net environment. So although i do not know the cause, but if you put embedded style like i did, it should work.


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 12:27:56 PM

0/0

Trouble is I would have embed the whole style sheet, as it seems to be the whole page layout that goes wrong. not just one or two elements on the page

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 12:32:52 PM

0/0

Could you do a view source of resulting page and see whats happening? I can look for specific elements if you put the stylesheet and page source as well. That will give us a clue as to whats going on. I mean obviously repeater is one thing. You could use CSS friendly repeater.


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 1:04:09 PM

0/0

Already compared the source pages there is no difference and I've got about 6 style sheets.  The repeater is not really an issue at the minute thats just part of the navigation, I'm sure its because I'm using 1 stylesheet to import others.

Icemania
Asp.Net User
Re: Pages losing style8/29/2007 1:19:57 PM

0/0

Thats seemed to be the case in the master page alter the links from

<link href="/_sitefiles/_css/generic.css" type="text/css" rel="stylesheet" media="screen" />

To

<link href="/_sitefiles/_css/generic.css" type="text/css" rel="stylesheet" media="screen" />
<link href="/_sitefiles/_css/fonts.css" type="text/css" rel="stylesheet" media="screen" />
<link href="/_sitefiles/_css/nav.css" type="text/css" rel="stylesheet" media="screen" />
<link href="/_sitefiles/_css/elements.css" type="text/css" rel="stylesheet" media="screen" />
<link href="/_sitefiles/_css/classes.css" type="text/css" rel="stylesheet" media="screen" />
<link href="/_sitefiles/_css/tables.css" type="text/css" rel="stylesheet" media="screen" />

This seem to sort it, which is weird that you cannot use import stylesheets properly in .NET

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 1:29:21 PM

0/0

there is a property

this.stylesheettheme is a string that return the stylesheet set for the page. You can set it as well.

As to using one stylehseet with int another, I think goes against the w3c standards, however I may be wrong.


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 1:44:50 PM

0/0

Thanks I'll take a look at that this.stylesheettheme.  As for the w3c standards imports are allowed

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 1:58:33 PM

0/0

U mean a stylesheet with in a stylesheet is allowed?


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 2:11:18 PM

0/0

Yes thats what I meant:

@import url("fonts.css");
@import url("nav.css");

and so on...

naturehermit
Asp.Net User
Re: Pages losing style8/29/2007 2:49:42 PM

0/0

I havent found anything that says not however if you look here

http://www.w3.org/TR/html4/present/styles.html the author has particularly used seperate link statements to link external stylesheet.

http://www.w3.org/TR/REC-CSS1 

CSS style sheets are often embedded in HTML documents, and to be able to hide style sheets from older UAs, it is convenient put the style sheets inside HTML comments. The HTML comment tokens "<!--" and "-->" may occur before, after, and in between the statements. They may have whitespace around them.

At-rules start with an at-keyword, which is an identifier with an '@' at the start (for example: '@import', '@page'). An identifier consists of letters, digits, dashes and escaped characters (defined below).

An at-rule consists of everything up to and including the next semicolon (;) or the next block (defined shortly), whichever comes first. A CSS1 UA that encounters an at-rule that starts with an at-keyword other than '@import' ignores the whole of the at-rule and continue parsing after it. It also ignores any at-rule that starts with '@import' if it doesn't occur at the top of the style sheet, i.e., if it occurs after any rules (even ignored rules). Here is an example.

Assume a CSS1 parser encounters this style sheet:

@import "subs.css";
H1 { color: blue }
@import "list.css";

The second '@import' is illegal according to CSS1. The CSS1 parser skips the whole at-rule, effectively reducing the style sheet to:

@import "subs.css";
H1 {color: blue}
May be this a long time misunderstanding that i may have developed, that you cant link one stylesheet with another compliant with W3C

Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Icemania
Asp.Net User
Re: Pages losing style8/29/2007 2:59:16 PM

0/0

Yeah I can see why the second one it illegal, I've used import within my stylesheets for years and they have always pasted the W3C CSS validation, well hopefully this has helped you Smile, but it still hasn't sort out my issue, I would rather not have to place all the stylesheets into my master page.

I just typical that its only IE7 that has the issue and not 6 or Firefox

20 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Interplay: The Process of Interpersonal Communication Authors: Ronald B. Adler, Lawrence B. Rosenfeld, Russell F. Proctor, Pages: 443, Published: 2004
Web Style Guide Basic Design Principles for Creating Web Sites Authors: unknown, Pages: 0, Published: -1
Web Style Guide Basic Design Principles for Creating Web Sites Authors: unknown, Pages: 0, Published: -1
Dreamweaver CS3 Bible: Master Every Aspect of Dreamweaver - Work with CSS, Text, Images, And Links - Incorporate Flash Movies and Other Media Authors: Joseph W. Lowery, Pages: 1112, Published: 2007
FrontPage 2002 for Windows: Visual QuickStart Guide Authors: Nolan Hester, Pages: 456, Published: 2001
Using Microsoft Office Outlook 2003 Authors: Patricia Cardoza, Patricia DiGiacomo, Pages: 1040, Published: 2003
FrontPage 2003: The Missing Manual Authors: Jessica Mantaro, Pages: 411, Published: 2005
HTML 4 For Dummies Authors: Ed Tittel, Mary C. Burmeister, Pages: 432, Published: 2005

Web:
Pages losing style - ASP.NET Forums Pages losing style. Last post 08-29-2007 10:59 AM by Icemania. 19 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Losing Style Sheet Old 01-15-2004, 03:13 PM. Default Losing Style Sheet. My app draws a bunch of tables on the page and has a form for the user to ...
Amazon.com: Mack Daddy: Mastering Fatherhood without Losing Your ... Mack Daddy: Mastering Fatherhood without Losing Your Style, Your Cool, or Your Mind. 58% buy the item featured on this page: ...
Losing, Hillary style - Kenneth P. Vogel - Politico.com Feb 13, 2008 ... Or Keywords. Politico.com Logo - Click to return to home page ... Navigate: Home | Politics '08 | Losing, Hillary style ...
Lose style when print multiple pages in javascript (window.print ... Lose style when print multiple pages in javascript (window.print() ). Last post 11-02-2005 11:31 AM by huyiuk. 0 replies. Sort Posts: ...
SF - When Did You Lose Your Virginity? - Page 3 - Style Forum Discuss manners, etiquette and behavior in social situations and everyday relationships - and food, drink, tobacco etc.
Losing CSS Style for no reason Re: Losing CSS Style for no reason October 05, 2008 04:09PM, Admin ... But only working on the home page. Other pages go back to the default logo. I forgot: ...
Before I Lose My Style by Mike Kaspar | LibraryThing Before I Lose My Style by Mike Kaspar · Main page · Details · Covers · Member reviews (0); Recommendations · Descriptions (0); Conversations (1) ...
GameSpot Forums - Off-Topic Discussion - You laugh you lose pic ... Forums - Off-Topic Discussion - You laugh you lose pic/vid style! The Off-Topic board is a place for ... Next Page. Previous Page. Page 1 ...
PAGE DESIGN: Page dimensions If the page layout is too wide readers will lose several words from each line of text down the right ... Buy Web Style Guide, 2nd edition at Amazon.com ...

Videos:
How to Bind A Book: Bookstore Quality With At Home Materials Traditional Style How to Bind A Book: Bookstore Quality With At Home Materials Traditional Style With String! How Exciting! Now you can make the book you always wante...
Too Much to Lose - Carl Belew STEREO - Pause audio, OPEN (more info) then click--- http://ca.youtube.com/watch?v=BU4WlpP8MlU&fmt=18 ------------------------------ Cark Belew and...
Croman/Dan & Pals: (excerpts):Turn The Page; Born To Run; I'm On Fire parody J.Cash Style(solo excerpts from '00)/When I'm 64 & It's Too Late (trio,'03)/"Stairway.." flamenco style intro (solo,'03) DANNY C solo, and D.C.and Friends. Samples of the popular street performing side of his overall entertainment venues. This is in the early, neater ye...
Wildstar XV1600 (Roadstar) Ride with 2'' Stainless Apes This is my Wildstar xv1600 just back from V-Twin Services Ltd in Farnham. http://www.v-twinservices.co.uk I love the style of this bike. I wanted...
Lage Raho Munna Bhai [ hindi film ] In this sequel to the highly successful and much appreciated Munnabhai MBBS , the affable goon Murli Prasad Sharma aka Munna (Sanjay Dutt) and his tr...
Monster Trucks - Canberra, ACT Australia 2008 Monsters Tour of Destruction. Canberra Greyhound Club 27th September 2008 Roll call: Outback Thunda, Batman, Scooby Doo, PS3 Motorstorm, The Boss, U...
Increase gas mileage -How? Do you want to know what the oil companies and the top 5 Automobile manufactures don't want you to know about Hydrogen, and the power of its gases? ...
LDS Church History: Martin Harris Book of Mormon Witness 1/2 http://www.youtube.com/watch?v=z3Zsvml57PE is a video describing how to learn more about the Mormon Church. Martin Harris was born on May 18, 1783 i...
Masters degree..distance learning and online schools deliver degrees online The connectivity is one of the main differences if we compare a mobile device with the PC (the usual medium for delivering e-learning). Nowadays mobi...
LDS Church History: Martin Harris Book of Mormon Witness 2/2 http://www.youtube.com/watch?v=z3Zsvml57PE is a video describing how to learn more about the Mormon Church. Martin Harris was born on May 18, 1783 i...




Search This Site:










module definitions page

aspnetsqlprovider

is there additional skin objects?

3d array in vb.net?

testing aspx.cs pages

command line lame.exe wav to mp3

stored procedures with output parameters

logout event is not working properly

access to ...\hash.web is denied.

file access error

access denied to 'c:\dotnetnuke\'. failed to start monitoring file changes.

nested master pages

image not visible after upload with file manager

move to 4.0.2?

subscription fees

possible to add another field to membership?

two websites using the same .net application

plaese helkp me

the dot net show

using findcontrol, focus correctly for loginviews

is webpart design view is browser dependent

uploading or installing to run on godaddy

implement security on business or data access layer?

applications moving to providerbased?

decrypt passowrd?

passing values to a pop-up window and de-activating parent window...

what is the best uml tools that integrate well vs.net

phishing and the returnurl

section admin in the ui - not in admin section

2.1.2 help! multiple errors

 
All Times Are GMT