How to Fail on Writing a Book
Writing a technical book is a perfect way to prove your knowledge, improve your skills, and gain more reputation and popularity in your expertise. After writing 3 technical books, I have decided to...
View ArticleHow to enable Internet Explorer 11 document modes?
Even though you have the latest version of Internet Explorer, you may need to render your web applications in different IE engines in order to test your applications’ compatibility in older browsers....
View ArticleHow to use Windows Continuum? (No display adapter or dock needed)
Share your Windows phone’s screen with your PC by following simple steps below. You don’t need any display adapter or dock to connect to your PC. However, you will need them if you want to use your...
View ArticleHow to fix “Declaration expected”, “Syntax error”, and “Statement cannot...
There might be several different reasons for the generic errors below to appear. Declaration expected Syntax error Statement cannot appear outside of a method In my case, Visual Studio IntelliSense...
View ArticleHow to add captcha to your website? (How to use Google reCAPTCHA?)
Automated applications (bots, robots) can perform brute force attacks to your contact forms or registration pages. These attacks may cause a leakage in confidential information as well as service...
View ArticleSolved: Google reCAPTCHA always returns “false” as a response to AJAX call
I have explained how to use Google reCAPTCHA in another post. Google returns “true” or “false” in “success” parameter as a response to your AJAX call. After your implementation, you might be constantly...
View ArticleHow to disable a DropDownList or ComboBox using JavaScript
It may be tricky depending on the situation. Here is what it works in my case: var objectListCountry = $find("<%= listCountry.ClientID %>"); objectListCountry.set_enabled(false);
View ArticleSolved: Error Creating Control – Failed to create designer Telerik.Web.UI
After playing with references in your project, you may end up seeing your beloved Telerik controls in this annoying error box: Error Creating Control – objectName Failed to create designer...
View ArticleHow to create and configure email addresses in your hosting account (GoDaddy)
Hosting accounts usually come with free email service. It could be tricky to use it you don’t follow a certain order of steps. Here is how you create and configure email accounts in your Godaddy...
View ArticleSolved: “An error occurred while signing: SignTool.exe not found”
This issue may come up when you try to publish your project in Visual Studio: An error occurred while signing: SignTool.exe not found Solution The main cause is that you are missing ClickOnce...
View ArticleHow to allow European characters in text fields by using regular expression?
You need input validation in your forms to keep your application secure. The best and easiest way to implement input validation is that using regular expressions (regex). Here is a simple regex to make...
View ArticleWhy is your website rendered in IE5 (Quirky) Mode?
If you see your Internet Explorer showing that it’s using IE5 (Quirky) mode for a particular website, you might be wondering why? F12 Developer Mode in IE As of the date this post has been written,...
View ArticleHow to Create a Report of Browser Versions from IIS Logs?
You may wonder what type of browsers your visitors have. The best way to collect this information is using an analytics service such as Google Analytics. What if you don’t use any analytics service but...
View ArticleSolved: “Validation of viewstate MAC failed”
You may come across this error message when you get around in pages of your ASP.NET website: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that...
View ArticleSolved: ASP.NET application generates a new session ID after every postbacks
You need to keep the same session ID for the same visitor in the same connection. If session ID changes in between page redirection, It will probably break your code especially if you are using session...
View ArticleSolved: Alexa says “Sorry, I’m having trouble understanding you right now....
Amazon’s voice-controlled personal assistant, Alexa, isn’t perfect just like us, human beings. She hadn’t been able to understand me for a few days. All she’d been saying was (in a red light): “Sorry,...
View ArticleSQL query for retrieving the last record of a group
Imagine that you have a table with multiple rows for the same entity. How to pick up the latest record for each entity? By using the query below, you can retrieve only the latest record based on a...
View ArticleHow to use static values (parameters) from web.config file
If you have static values that you use across your .NET application, one place to store these values is the web.config file. Let’s say you use your application’s name in several pages in your...
View ArticleHow to simulate keyboard key press in JavaScript using jQuery?
You may need your user to press a certain key as part of your application flow. Use the line below if you want to automatize this action. In this example, “77” is the character code for the letter “m”....
View ArticleHow to set focus into Telerik RadListBox control?
If user clicks a RadListBox control, control won’t be automatically in focus even though you can make selections in the control (I know, it’s unexpected). It may get tricky to set focus into control....
View Article