<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

Looping Through Server Controls

by Tim 7. October 2011 09:14
Looping through a particular set of server controls is quite straight forward, especially if you use group naming conventions. For example, I have three file upload controls on my page that I want to loop through. I assign the ID names as follows: pictureFileUpload1 pictureFileUpload2 pictureFileU... [More]

Tags: ,

ASP.NET | C#

Using Themed CSS Files Requires A Header Control On The Page.

by Tim 23. February 2011 19:30
I'm building an ASP.NET 3.5 site that has the Theme set in the web.config file: <pages theme="Sepia"> Recently, I've been working on a page that produces a syndication feed. For this particular ASPX page I don't want any HTML as the page will be rendered by the browser as ATOM/... [More]

Passing Data Between User Controls

by Tim 15. February 2011 16:31
The key to understanding how to pass data between User Controls lies in the Page Life cycle. Here is a snippet of the Page Life Cycle that we can reference for the following task: Page: Load Control: DataBind Control: Load Page: EnsureChildControls Page: LoadComplete Page: EnsureChildControl... [More]

Tags: ,

ASP.NET | C#

An Easy Way to Disable a Textbox Postback

by Tim 31. October 2010 14:37
The day eventually dawned when I needed to use a form within a (ASP.NET) form. The contained form didn't need to be run at the server so I didn't envisage a problem. The form was just a simple textbox and submit button. When the form was submitted it would send the contents of the textbox to a site ... [More]

When is the Master Page Really the Master?

by Tim 24. September 2010 10:28
After a content page's PreInit event has fired, the master page finds the Content control that matches a ContentPlaceHolder and moves it into it's own ContentPlaceHolder - this happens before the content page's Init event. When this process takes place, the master page is truly the master, but by th... [More]