Monday, January 16, 2012

Remove the Lock Icon over a Folder in Windows 7


The lock icon in Windows 7 indicates that the file or folder can only be accessed by you, and not any other user on your computer. If this is desired, then the lock icon is a good way to ensure that those settings are in place. If this isn’t your intention, then it’s an eyesore.
To remove the lock icon, we have to change the security settings on the folder to allow the Users group to, at the very least, read from the folder.

Tuesday, February 15, 2011

UNICODE ASP files are not supported Error solution

Error Type:
Active Server Pages, ASP 0239 (0x80004005)
UNICODE ASP files are not supported.
/cigna/default.asp, line 1

Solutions:

With your project open, click on File, Advanced Save Options. Select US-ASCII.
Then click to apply to ALL DOCUMENTS.
It will give you a warning that some characters may not play, but you can ignore that and click No.
From that point forward, all saves should be in ASCII and your pages will work fine.


Sunday, February 13, 2011

A semi colon character was expected - XML Error

XML Error: A semi colon character was expected. Error processing resource –

Error Description:

While viewing the xml file in a web browser, sometimes an error "A semi colon character was expected." Occurs.

Reason:

This occurs

1. When using external links on the XSLT sheet which contains the character “&”.

2. When there are html breaks in the content.

3. When there are quotes in the content.

Solution:

1. The work around is to simply replace every instance of & in the link with &

2. The work around is to simply replace every instance of html breaks with any symbol like semi colon ;

2. The work around is to simply replace every instance of single quote with "

Friday, February 11, 2011

Refresh or Reload parent window from child window

To refresh the parent window from pop up window use below.

window.opener.location.reload();

Friday, February 4, 2011

Accessing parent window form elements

Often we come across scenarios where we have to access the parent window form element. Below is the syntax for accessing the parent element.

Syntax:


top.opener.document.forms[0].elements["hdnStatus"].value = "true";

This solution is cross browser compatible and works in all major browsers.

Sunday, January 16, 2011

Javascript pop up window focus

How to focus the pop up window if the same window needs to be refreshed multiple times based on the action?
Give as below:
newwindow = window.open(url, "myWin", "width=600,height=400,toolbar=0,scrollbars=0");
newwindow.focus();

Thursday, December 23, 2010

Cookie transition between classic ASP and ASP.NET

Guys, here is what i have came across recently.

I have a classic asp application that has a login module. There is another sub folder that has dotnet pages (.aspx). Any user who logs in to the asp application should be automatically able to view the .net pages too. But the aspx page was not able to access the cookie created in asp page. After a reasearch for some time i found out the reason why it was hapening like that.

Here is the reason:
My cookie name in the application is "cki_user". Point to be observed is the underscore symbol in the name. In classic ASP, the cookie name will be url encoded and created. That means, the actual cookie name will be "cki%5Fuser". But in asp.net, there will no url encoding hence the name remains "cki_user" when requesting. Hence i was not able to access the value. Finally i had to access it using Request.Cookies["cki%5Fuser"] which worked well.