How to use JQuery with Master Pages?

EDIT As @Adam points out in the comments, there is a native jQuery mechanism that basically does the same thing as the hack in my original answer. Using jQuery you can do $(‘[id$=myButton]’).click(function(){ alert(‘button clicked’); }); My hack was originally developed as a Prototype work around for ASP.NET and I adapted it for the original … Read more

Formatting DataBinder.Eval data

There is an optional overload for DataBinder.Eval to supply formatting: <%# DataBinder.Eval(Container.DataItem, “expression”[, “format”]) %> The format parameter is a String value, using the value placeholder replacement syntax (called composite formatting) like this: <asp:Label id=”lblNewsDate” runat=”server” Text=”<%# DataBinder.Eval(Container.DataItem, “publishedDate”, “{0:dddd d MMMM}”) %>”</label>

Is Request.Headers[“Header-Name”] in ASP.NET case-sensitive?

no they are case-insensitive as per RFC2616 4.2 Message Headers HTTP header fields, which include general-header (section 4.5), request-header (section 5.3), response-header (section 6.2), and entity-header (section 7.1) fields, follow the same generic format as that given in Section 3.1 of RFC 822 [9]. Each header field consists of a name followed by a colon … Read more

tech