Help: Two relatively basic questions for those in-the-know

Last post 04-23-2007 1:51 PM by TippingMonkey. 3 replies.

Sort Posts:

  • Help: Two relatively basic questions for those in-the-know

    04-23-2007, 12:51 PM

    Hi there, this is my forst post so I hope this is the right place to post these questions. It's surprising that even after repeated searches on the web I could not find a quick answer. I'd be very grateful to anyone who can help me out there.   Smile

    1. I am using ASP.NET 2.0 and I have to say Master Pages are awesome. The convenience and centralized management of common page elements just blows away the minor restrictions and inconveniences it poses. However, I noticed a padding or margin on the top of the page that I don't seem to be able to get rid of. I suspect this is a subtle CSS or formatting issue that is not related to ASP.NET or MasterPages per se, but I cant' find a way to put the content at the absolute top of the display area (just like the "Microsoft Communities" bar at the top of this forum page, no padding). I suspect this has to do with the de rigueur "form" element at the top of the page, but I am not sure. Can someone please tell me how I can get rid of the padding in the top? I wanted to give my site a facelift and this is really driving me nuts.
    2. I wanted to find out more about what I can do with the web.config file and what are the pre-defined properties and categories. I searched on the web for a long time and only find very specific and well-known items (such has hot to enable debugging and change error reporting behavior). Is there a comprehensive list of these settings somewhere? Also, can I define my own settings there and access them from my Master Page? One thing I can think of is to use a different DB connection string based on local/remote machines (I am using MySQL in the backend so I cannot use many of the built-in MSSQL data source controls).

    Many thanks in advance!
    - K.

    Tipping Monkey - Collective Intelligence for the Stock Market
    http://www.tippingmonkey.com
  • Re: Help: Two relatively basic questions for those in-the-know

    04-23-2007, 1:17 PM
    Answer
    • Loading...
    • TATWORTH
    • Joined on 02-04-2003, 8:34 AM
    • England
    • Posts 6,565

    Re question 2:

    The full format of the web.config can be found in machine.cofig which you should find on your machine at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG

    Any value not explicitly set in an individual web.config will be read from machine.config.

    For more details see http://msdn2.microsoft.com/en-us/library/1fk1t1t0(vs.71).aspx

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Help: Two relatively basic questions for those in-the-know

    04-23-2007, 1:19 PM
    • Loading...
    • TATWORTH
    • Joined on 02-04-2003, 8:34 AM
    • England
    • Posts 6,565
    p.s. You may wish to repost question 1 with a more specific title - you will probably get a better reponse that way.
    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Help: Two relatively basic questions for those in-the-know

    04-23-2007, 1:51 PM

    Thanks TATWORTH, much appreciated!

    - K.

    Tipping Monkey - Collective Intelligence for the Stock Market
    http://www.tippingmonkey.com
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter