Blog Stats
  • Posts - 2
  • Articles - 1
  • Comments - 33
  • Trackbacks - 0

 

April 2008 Entries

PostBack in ASP.Net showModalDialog

In my previous project i was using window.showModalDialog to open a modal window (ASPX Page) from parent ASPX page using JavaScript. But whenever the postback occurs in the modal window during <save > button click, it would spawn off a new window. When searching turned up my Colleagues with same problem who managed to work with window.open.Finally i found a solution which is very simple by just including below tag line in the <head> html of the modal window. <base target=_self>...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Formatting Numbers in Javascript

Formatting numbers for currency display and more. Formatting numbers so they conform to a specific format can be deceivingly tricky. For example, one of the most common tasks is to format a number for currency display- an integer followed by two decimals. There are more subtitles in such a task than many might think. In this tutorial, I'll discuss formatting numbers in JavaScript, such as number rounding, formatting a number for currency display, and more. Number rounding in JavaScript Lets first...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

 

Copyright © Rajesh Thomas