Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2006, 09:24 PM
Authorized User
 
Join Date: Mar 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem: Page Style lost

Hi,
I created a web form and included the following line in the head:
    <LINK href="Styles.css" type="text/css" rel="stylesheet">

With this line, i am able to get the page style.

However, the moment i add in the following code into page load function, all the style is lost.
        Response.Write(Session("ShowTable"))

The session has only html strings to show some figures in table form.

Thanks.

regards,

annsary
 
Old April 19th, 2006, 08:42 PM
Authorized User
 
Join Date: Apr 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

"all the style is lost", I can't understand. The "Response.Write(Session("ShowTable"))" style lost or all the style on this page lost.
I think it is the former case.
If you see the source, you will under stand the reason.

Code:
fdsfdsfdsfs
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
    <HEAD>
        &nbsp;<LINK href="Styles.css" type="text/css" rel="stylesheet">
    </HEAD>
    <body MS_POSITIONING="GridLayout"&nbsp;&nbsp;>
        <form name="Form1" method="post" action="Mask.aspx" id="Form1">
            fdsfjdslfdsjf
        </form>
    </body>
</HTML>
The Response.Write(Session("ShowTable")) can't use the css.

Maybe you can use following method.

Code:
 Response.Write("" + Session("ShowTable") + "")
:)¡¶
 Â¡Â¶Â¡Â¶ No pains, no gains.
¡¶¡¶¡¶





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 8 style.aspx page stoverje BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 4 December 28th, 2010 04:22 AM
Setting the style sheet of the Master Page dotnetDeveloper BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 August 4th, 2008 09:56 AM
Tell me following problem of lost focus [email protected] VB.NET 2002/2003 Basics 1 November 13th, 2006 12:42 PM
ANYONE: Page Break in Excel / Font Style shagaset Classic ASP Basics 4 December 20th, 2004 01:09 PM
Page Breaks and Font Style in Excel shagaset Classic ASP Professional 2 December 14th, 2004 10:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.