Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

PerfectPhase PerfectPhase "This is not war, this is pest control!" - Dalek to Cyberman
  • Disable enhanced security in Outlook 2003

    When Outlook 2003 is running in stand alone mode (i.e. no exchange server) using POP3, how do you disable the security that stops you launching links to external web sites in emails.

    Thanks

    Stephen.

  • London beats Paris to 2012 Games

    Congestion charge

    http://www.cclondon.com/
    http://www.cclondon.com/imagingandcameras.shtml

    Stephen.

  • Software patent bill thrown out

    There's always a next time, but a bit of breathing space for the moment.

    Stephen

  • Software patent bill thrown out

    Finally some sense from the EU!

    The European Parliament voted 648 to 14 to reject the Computer Implemented Inventions Directive.

    http://news.bbc.co.uk/1/hi/technology/4655955.stm


    Stephen

  • London beats Paris to 2012 Games


    http://news.bbc.co.uk/sport1/hi/front_page/4655555.stm

    Stephen

  • ASP.NET v2 Gridview and CSS

    Well thats no good Wink

    Thanks,

    Stephen

  • ASP.NET-2.0 Master-Pages

    spoofnozzle wrote:

    MasterPage1 has 2 placeholders::

    PlaceHolderA <--> ContentPage1
    PlaceHolderB <--> MasterPage2

    Masterpage2 has 5 placeholders::

    PlaceHolderC <--> ContentPage2
    PlaceHolderD <--> ContentPage3
    PlaceHolderE <--> ContentPage4
    PlaceHolderF <--> ContentPage5
    PlaceHolderG <--> ContentPage6


    As rv said, the includes only work up the page, think of it as a branching tree with the root master at the top fanning out through nested masters to content pages.  Your Content place holders must be filled by nodes as you work up the tree, you can call back down a different branch.

    Want you want to do is put the included content (pages 1,2,3,5,6) in UserControls (ascx) and inclde them in the most derived page where the content is common instead of ContentPlaceHolders. Then when you call ContentPage4 it should all work.  So you would end up with something like

    MasterPage1 ::

    UserControl1
    PlaceHolderB <--> MasterPage2

    Masterpage2 ::

    UserControl2
    UserControl3
    PlaceHolderE <--> ContentPage4
    UserControl5
    UserControl6

    Ofcourse you can add more masterpages if you want for example to define the layout first then add controls in the next layer down.

    Stephen.

  • ASP.NET-2.0 Master-Pages

    you have a master page that has named contentent place holders, these pages have the .master extension.  you per page content then goes into normal aspx pages that have Content tags that match all the ContentPlaceHolder tags in the .master via ContentPlaceHolderID atrributes.

    For Nested masters, you just have contentPlaceHolder tags inside content tags in .master pages.

    It works that your base aspx page inclues the masters, so you must fullfill all your content place holders from the aspx page. you can't have the idea where you can implement each of the content place holders in differnt files.

    for example if your root master defines a basic layout with ContentPlaceHolder1, ContentPlaceHolder2, then your nested master might add a banner into ContentPlaceHolder1 and in its implentation of ContentPlaceHolder2 (i.e. a content tag) it would contain another ContentPlaceHolder holder tag, ContentPlaceHolder3.  The final part is to add a content tag into your aspx page that the client calls that implements ContentPlaceHolder3.

    Only the root .master shold have the standard HTML boilerplate and form tag, the remaining .masters and .aspx should only containg content in content tags.

    Sorry if thats a bit of a mess, it's late and I need to sleep!

    Stephen

  • ASP.NET v2 Gridview and CSS

    I was just playing with the pager in the new Gridview and was trying to add a style to it.  The pager is rendered something like this

    <tr class="MyPagerRowStyle">   //Gridview pager row
       <td>
          <table>
             <tr>
                <td><span>1</span></td>     //current page
                <td><a href='...'>1</a></td>
                <td><a href='...'>1</a></td>
                <td><a href='...'>1</a></td>
             </tr>
          </table>
       </td>
    </tr>


    I have added a boarder to each of the innermost td's (.MyPagerRowStyle td table tr td) and set the background colour, but I want to set the background colour of the current page to something different.  Is there a way in CSS to have a class apply to a td only if it contains a span tag?

    Failing that is there a way to make the span tag fully fit the td so I can set the spans background colour.

    Any advice gratfully recieved, I'm not very good with CSS yet!

    Stephen

  • Sql questions

    I have two questions on what the best way to do things in SQL (MS-SQL 2000 or 2005)

    1)  Select a random record from a query.
    2)  Paging, how to select a subset of a query.

    Sounds simple things, but not really come up with a good answer for either, if anyone has any ideas I'd like to know!

    Stephen.