Some useful functions for php newbies and rusty heads like me
Solution to not being able to use copyright symbol in an Umbraco Macro
Was writing some XSLT for an Umbraco site recently, needed a copyright block in the footer so thought i’d just use the standard © syntax to add the copyright symbol, ©. When I tried to save the file, I got…
Stopping client side validation and postbacks
A couple of ways to stop client side validation firing, especially when using non asp.net controls: Set the onclick event of the image/button etc to be onclick=”return false;” then instead of using the onclick event to fire a method, use…
Redirect your user to their starting point when validation errors occur
Ever had a long webpage with validation that fails on postback but returns the user to the top of the page instead of where you want them? Annoying isnt it. Well in .Net Framework 2.0 (yes it’s been there a…
Detecting the Safari Browser to load scripts
I needed to detect if Safari was being used as there were some issues with styling on a website I was working upon, only on Mac Safari though!!!
Umbraco Redirects
Started to do a lot more Umbraco work recently so inevitably I will be looking for loads ot shortcuts, tips etc along the way – feel free to let me know of any I can include here. The most recent…
Using and grouping RadioButton Controls in a Repeater
By default, you cannot group radiobutton controls within a repeater as the repeater mangles the names. I had this exact problem when changing from checkboxes to radio buttons – after searching Google for 10 mins, I found a post at…
Getting the control that posted back to asp.net application
Need to know which specific control posted back to your page? (Original article at http://geekswithblogs.net/mahesh/archive/2006/06/27/83264.aspx) /// <summary> /// Tells us which control posted back /// </summary> /// <returns></returns> public Control getPostBackControlName() { Control control = null; //first we will check…
Preparing an asp.net master page for print only view – stripping out css etc
Searching google turned up nothing on this so did some digging in MSDN and worked out a method of disabling all the style sheets, javascript etc to produce a text only page: 1/ Add a content block to your master…
ARGHH WordPress is playing up on me :(
Not a happy bunny this morning. I uploaded a long post this week regarding using the Windows Mixer control API and the formatting is so screwy it’s not true. Even the title does not appear on the summary page, rewritten…