Setting the default Button for a TextBox in ASP.NET

1) ref: EmailTextBox.Attributes.Add(“onKeyPress”, “javascript:if (event.keyCode == 13) __doPostBack(‘” + LoginButton.UniqueID + “‘,”)”); 2)


function clickButton(e, buttonid){

June 11th, 2010 | Tags: | Category: ASP.NET | Comments are closed

JQuery IntelliSense in Visual Studio 2008

JQuery IntelliSense in Visual Studio 2008

VS 2008 Web Development Hot-Fix Roll-Up Available

Javascript HTML Beautifiers

BinaryFormatter for Net Compact Framework

Here is a forum thread Here is a free implementation Following ref proved that CF does not have OOB binaryFormatter “Differences Between the .NET Compact Framework and the .NET Framework”

=> Have i said “sql ce rocks”? Sql2005CE

=> Sql Server 2008 CE info and download: […]

User Agent strings

Browser Detection using ASP.NET

Events in ASP.NET Master and Content Pages’nin yaşadığı DDoS problemi üzerine…’nin yaşadığı DDoS problemi üzerine… ‘Anti-Isil group’ claim responsibility for BBC shut down New World Hacking says it carried out the distributed denial of service attack on Thursday morning

Web attack knocks BBC websites offline

‘Anti-IS group’ claims BBC website attack

About DDoS Attacks


Usage share of web browsers

2010 IE8 IE7 IE6 Firefox Chrome Safari Opera January 14.3% 11.7% 10.2% 46.3% 10.8% 3.7% 2.2% 2009 IE8 IE7 IE6 Firefox Chrome Safari Opera December 13.5% 12.8% 10.9% 46.4% 9.8% 3.6% 2.3% November 13.3% 13.3% 11.1% 47.0% 8.5% 3.8% 2.3%


When using RegisterClientScript do not use this.GetType() …

Quoted from:

Page.ClientScript.RegisterClientScriptBlock(this.GetType(), “Script”, scriptText); This is not good. Why not? Well, this.GetType() is a way of getting the runtime type of an object. That’s not necessarily the same type as the one in which this bit of code is being declared. So what? Does that actually make any difference? Well, yes, if anyone […]

Using a Validator to Validate a Check Box

Quoted from: I. If you are using static, page written, ebcontrols..::.. 1) add a check box to the page named “chkTandCs” 2) <script language=”javascript” type=”text/javascript”> function ValidateTandCs(source, args) { args.IsValid = document.getElementById(‘<%= chkTandCs.ClientID %>’).checked; } <script> 3) <asp:customvalidator id=”valTandCs” clientvalidationfunction=”ValidateTandCs” runat=”server” errormessage=”Please accept Terms and Conditions before submitting.”><asp:CustomValidator> II. If you are using Dynamic […]

When generating webcontrols on the fly, keep in mind…


I have been working on a code snippet that was rendering ASP.NET server side webcontrols such as TextBox, DropDownList, Validators, … etc . The problem was there was a bug that prevented regularExpression validators not to be rendered even they have been added to the page at runtime. I was added two kinds of […]