To centralize a html table we will need to set left and right margin css properties of table to auto and apply the css class on html table.
To manage cellpadding=0 and cellspacing=0 using css we will need to set two css properties. In table css class we will set border-collapse: collapse and in th/ td class we will need to set margin and spacing of td to zero.
Event sequence became complex when master and content page have user and server controls in them. I just tried to check this sequence and my findings are as below:
Master Page User Control Page_Init
Master Direct Control init event
Content Direct Control init event
Content Page User Control Direct Control init event
Content Page User Control Page_Init
Master Page User Control Page_Load
Master Direct Control load event
Content Direct Control load event
Content Page User Control Page_Load
Content Page User Control Direct Control load event
Master Page User Control Page_PreRender
Master Page Direct Control Pre Render event
Content Page Direct Control Pre Render event
Content Page User Control Page_PreRender
Content Page User Control Page Direct Control Pre Render event
For more details please check this and this.
It is my first and ‘test’ post. I was writing in different papers and magazines some years back and after this long break I am back now with my blog. I will be posting and sharing stuff on different topics here from time to time, hope you will find my posts useful. I will highly appreciate your comments on my posts, for contacting me please see my contact details in about me page.