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]
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]
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]
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]
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]