MaintainScrollPositionOnPostback not working in Firefox and Chrome browsers Friday, December 20, 2013

You just need to put the script below in your page where you want to maintain scroll position or in your master page. And I have tested this script in 5 major browser and luckily it works in all.


Asp.net - The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>) Wednesday, October 9, 2013

Asp.net - The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)

I have this issue when I want to change button text in Page_init method.
This occured because I am using resource file to bind Button text.

Example:

<button class="simpleFormButton" id="btnSaveFinishButton" runat="server" type="button">
                   &lt;%=GetLocalResourceObject("SaveandFinish")%&gt;</button>

Replacing '<%=' to '<%#' solved my issue.
Hope this helps you as well.

Find nth Min/Max values in SQL Server Tuesday, August 27, 2013

Finding Nth minimum salary:

1.In SQL Server 2000/2005

SELECT salary FROM employees e1 WHERE (N = (SELECT COUNT(DISTINCT (e2.salary))
FROM employees e2 WHERE e2.salary <= e1.salary))

Finding Nth maximum salary:

1.In SQL Server 2000/2005

SELECT salary FROM employees e1 WHERE (N = (SELECT COUNT(DISTINCT (e2.salary))
FROM employees e2 WHERE e2.salary >= e1.salary))

Hope you find it useful.

Where is the list of pinned start menu and taskbar items stored in Windows 7 Wednesday, August 7, 2013

You can find pinned apps in:
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
and for the start menu apps go to:
%AppData%\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu

Programming in HTML5 with JavaScript and CSS3 Specialist Thursday, November 15, 2012

Today i took my second Certification and it is on Exam 70-480: Programming in HTML5 with JavaScript and CSS3.
I got certified with score 800/1000