... of this new alternative postback URL feature that .NET 2.0 offers.
I thought I'd use it to post some hidden variables to PayPal, being glad that .NET finally has some flexibility that makes me feel less ashamed when PHP developers say its easy to do!
But it doesn't work! The variables don't post. These are client side variables, so:
<input type="hidden" id="cmd" value="_xclick" />
<input type="hidden" id="return" value="returnurl.aspx" />
Don't appear at the other side. I verified this by doing a dumb page that just had the following code in:
foreach (string key in Request.Form.AllKeys)
{
p.Controls.Add(new LiteralControl(key+"="+Request.Form[key]+"<br />"));
}
And got nothing apart from ASP.NET form variables.
So, I ask ... what is the point?
Consider also that I am still getting "name" attributes in supposed XHTML pages, even though the site is built in VS.NET 2005 with XHTML 1.0 Strict, and set so in Web.config:
<xhtmlConformance mode="Strict"/>
So, me and .NET 2.0 ain't getting along too well at the moment....
I haven't posted for a while and happened on an article I will post shortly, but in introducing it, I stumbled on an annoying issue in sites I continue to see. So, I will post this, and then link back to it in due course. It is also relevant as I have been asked by a site designer I am helping about link policy, so here is my response.
Whether links should appear in new windows is a controversial issue in ethical site design. Should a link appear in a separate window? Ideally, no. Popups and new windows are intrusive and disruptive to content flow. If the user wants to open a new window, there are established procedures in place to do this. For example, holding down SHIFT, modifying the default browser settings, or right-clicking the link to open it in another window or tab.
Maybe we could reserve new windows and pop-ups for external links? Some commercial sites I could mention have a bizarre notion that to open a link in a new window will keep the user at the original commercial site. That would be a fine view if commercial sites were paid for by the minute, but in reality, it just disappears into the background and consumes more resources.
In reality, it isn't that simple. While a list of links, or a link following a page of text could logically be opened in the same window, content is such that opening a link in the same window would disrupt the content flow even more. Therefore, techniques are identifying links as external are enough to not only inform the user that the link is for a different site but also make their own choice of whether to open in a new window.
We could also highlight the external nature of the link by a bit of text attached to the image using the TITLE attribute, or maybe some text placed alongside. Also, another attractive technique is to attach some CSS to format the link so it has a small icon to the right.
eg.eg.
<a href=http://www.programx.co.uk title="Program.X Site (external link)" class="externalLink">A Link</a>
Then attaching some CSS:
a.externalLink { padding: 0px 16px 0px 0px; background: url(externalLink.gif) no-repeat right; }
Consider this page:
http://www.holistichealthcare.org.uk/Links.aspx
This provides an attractive list of links, well designed and effective in identifying link destinations.