473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

accessing documents properties in code

Is it possible to access the page's document properties in code? I am specifically looking for an easy way to insure that the margins of the body are always a fixed size. I can do this by registering a script block that contains an inline style definition, but this seems like a complete hack. There are also tons of great document properties that I would like to be able to set from C# code in the page_load event. If I use the properties panel from the designer, most of these get rendered into the <body> tag. It would be great if I could control this rather than relying on programmers to set these properties manually in each page

Thanks in advance
Mat

Nov 18 '05 #1
1 763
How about using an external CSS Style Sheet?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"mslyh" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Is it possible to access the page's document properties in code? I am specifically looking for an easy way to insure that the margins of the body
are always a fixed size. I can do this by registering a script block that
contains an inline style definition, but this seems like a complete hack.
There are also tons of great document properties that I would like to be
able to set from C# code in the page_load event. If I use the properties
panel from the designer, most of these get rendered into the <body> tag. It
would be great if I could control this rather than relying on programmers to
set these properties manually in each page.
Thanks in advance,
Matt

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
I have a number of MS databases (MDBs). I have written a program that will loop through each database and get information from it. I was able to get the information I needed of all queries within...
2
by: Brandon | last post by:
Running IIS 6, Classic ASP Browser: IE and/or Mozilla I have an application that allows users to store documents on my server. When they need to access/download the documents, my application...
14
by: Aaron Gray | last post by:
Hi, I want to access the properties of an IFrame but seem unable to get access to the IFrames document body. <html> <body> <iframe src="test.html" id="IFrame"></iframe> </body>
3
by: simon.duvall | last post by:
Hey all, Was referencing various COMs, and tried using the Windows Genuine Advantage 1.0 Type Library. There's a cool method called GetMachineDetails() that I wanted to try, but for some...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.