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.
Tuesday, February 15, 2011
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();
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.
Syntax:
top.opener.document.forms[
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();
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.
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.
Friday, December 3, 2010
9 Tips to write an Article
1. Whenever you want to write an article, dont start right away thinking on what to write. Scribble down on a paper whenever a topic comes into your mind. You can chose from this list when you are ready to start writing an article.
2. Most of the time, try to write an article in bullets or points...something like "10 ways to keep yourself fit".
3. Begin the article with an introduction on the topic or problem. If possible add your experiences.
4. Do not think too much on grammar while writing. Keep the grammar check job at the end.
5. Try to keep the article short.
6. Write the article in an informal way as if you are talking to your friend. That will make the reader feel easier to read.
7. Do a proofread after you are finished. Check for grammatical mistakes or any spelling mistakes.
8. Dont look at the article for one day. After a day, do a proofread again and check if you have put in everything that you wanted to.. in the article.
9. Now publish your article! DONE!!
2. Most of the time, try to write an article in bullets or points...something like "10 ways to keep yourself fit".
3. Begin the article with an introduction on the topic or problem. If possible add your experiences.
4. Do not think too much on grammar while writing. Keep the grammar check job at the end.
5. Try to keep the article short.
6. Write the article in an informal way as if you are talking to your friend. That will make the reader feel easier to read.
7. Do a proofread after you are finished. Check for grammatical mistakes or any spelling mistakes.
8. Dont look at the article for one day. After a day, do a proofread again and check if you have put in everything that you wanted to.. in the article.
9. Now publish your article! DONE!!
Subscribe to:
Posts (Atom)