All posts by aackose

A Sitecore & SharePoint Consultant with over 11 years of extensive technical experience in UI/UX Designing, Requirements Analysis, Designing, Developing, Testing, Deployment, Infrastructure Setup for web/enterprise-based applications using Microsoft Technologies (SharePoint, Sitecore & .NET) across all phases of SDLC

J

Javascript Trim, Left Trim & Right Trim Functions

Javascript string property does not have the normal trim functions like we have in any other language. And these trim functions appears play a crucial role in any code based on strings. There are two approaches i give here. One is directly creating a prototype method and other as a standalone function. You can choose ...

M

Maintain scroll position on postback for gridview or div

Problem Statement: There can be scenarios wherein your end users would appreciate to see the screen intact even after postback. In ASP .Net we use the MaintainScrollOnPostback property for the page to handle the page's scroll position. But this will not handle the case when you have gridviews wrapped in divs and having a scroll ...

H

Horizontal Scrollbar for ASP Listbox or HTML selectbox

Problem Statement: A normal listbox or ASP Listbox for that matter has an issue with the scroll. They have vertical scroll by default with them. However when it comes to horizontal scroll, they choke. Even if we specify a width for the listbox and give a lengthy option in the listbox content, you cant expect ...

C

Coma getting added in a textbox, placed inside an update panel, on prefill

Problem: A comma is getting appended to a textbox (textbox needs to be inside an update panel), each time a partial refresh happens in that page. Solution: The issue happened especially when i was populating the textbox, from the query string. Most importantly duplicate entries in the query string.  ex: www.xyz.com?id=123 & val=rrq & id =  & ...

C

Changing scroll bar color in Gecko Browsers

Although this is not recommended by W3C, out of popular interest, i feel like posting the solution to this problem. The problem, being the fact that IE went ahead and allowed people to customise its scrollbars, while the gecko browsers like Firefox, Opera does not allow user styles to custom browser styles.  For IE scrollbar settings, ...

E

Encrypting and Decrypting passwords in SQL server

We have come across scenarios wherein highly sensitive information like passwords being stored in our database. It is a highly likely chance that during SQL Injection or unprecedented attacks, these table values gets exposed. I will explain here a simple means of encrypting, followed by decrypting the same password for user authentication. But let me ...

J

Javascript pause method: To create delays in javascripts

Creating delays in javascript can be very essential under certain specific scenarios, though i would recommend you to avoid it in most cases. The right way to create a delay would be by using setTimeOut method in javascript, as below: setTimeout("alert('hello world')",1500); // shows alertbox after 1500 milliseconds The lazy way or to be precise ...

H

How to enable javascript in various browsers – help file

This is a help reference for those sites, which are javascript critical. You can use this in a page to which you redirect in your javascript disabled scenario. Microsoft Internet Explorer 1. On the Tools dropdown menu, click Internet Options, and then click the Security tab. 2. Click on the earth «Internet» icon, and then ...

B

Best PNG Fix for IE 6

PNG fix for IE6 has always been messier than expected. There has been lot of out of the box solutions available on the net. However, the best that worked for me was the "DD Belated PNG" fix. It is a simple PNG fix specific for IE 6. I would recommend you to load it with ...

S

Setting write permission to App_Data for a Godaddy hosted site

The "App_Data" is the folder where most of your site user data's fall into. Hence in case of blogs or other site's that permits user to upload images/videos/files, it would be essential to give write permissions to the "App_Data" folder. Scenario: You have a godaddy account. You would like to give write permission to "App_Data" ...