Zuker On Foundations

The realm of .NET (WPF, WCF and all around)

Browse by Tags

All Tags » Web (RSS)
Making Ajax calls to server using PageMethods and Session_End
We were working on a project where there was used the ajax pattern of PageMethods in order to call to the server. We experienced a weird behavior where calling the operation marked as WebMethod (required to be called as part of the PageMethods) caused weird occurrences in the Session_End global event handler. After dwelling into it, we found that the issue was solved once we enabled the session state in the WebMethod attribute. I thought it might be worth sharing.

Posted Thursday, January 15, 2009 3:25 PM by Amir Zuker | 2 comment(s)

תגים:,

UpdatePanels, RadioButtons, UpdateProgresses and AutoPostBacks
(or, why my RadioButton which has AutoPostBack=”true” actually doesn’t display my UpdateProgress or even perform a PostBack at all?!) My fellow colleague Yitzhak Steinmetz has been playing around with Ajax capabilities and controls. He came across some interesting scenarios, I was allowed to post his details here in my blog, so here it is: While writing a webpage, I ran into an interesting (gently phrased) quirk with ASP.NET AJAX. To simplify the problem, imagine the following scenario: I have 2...

Posted Thursday, January 15, 2009 3:25 PM by Amir Zuker | 5 comment(s)

תגים:,

PNG Transparency for IE6
Internet Explorer 6 has problems displaying a PNG image with alpha transparency. Follow the instructions detailed in this post to solve the issue. Note that you should apply width & height for every image you apply the style to. (At least from my experience)

Posted Thursday, January 15, 2009 3:25 PM by Amir Zuker | with no comments

תגים:,

Text Trimming Using CSS
There is a non-so-familiar way to apply trimming to text in HTML using simple CSS. In order to apply a certain width on an element and together ensure that its innerText will be bound to that and will be trimmed accordingly, we can do the following: < span class ="LongTextContainer"> Very long text here.. Bla Bla Bla </ span > .LongTextContainer { width : 300px ; position : fixed ; overflow : hidden ; text-overflow : ellipsis ; white-space : nowrap ; } The text-overflow determines...

Posted Thursday, January 15, 2009 3:25 PM by Amir Zuker | with no comments

תגים:,