JavaScript ShowModalDialog + Aspx page_load event not fires

I was using following code to show  Popup window

//opens a pop up window
function PopupWindow(url) {
mywindow =window.open( url, “Popupwindow”,
“location=1,status=0,scrollbars=1,width=800,
height=600,resizable=1,toolbar=0″ )

Above code was showing Popwindow then Requirement changed and we needed a Modal popup Window.  Then I found followin code which provides required functionality.

//opens a pop up window
function PopupWindow(url) {
var ie=document.all;
if (ie)
window.showModalDialog(url,”Window”,”status:no; help:no;
dialogWidth:1200px; dialogHeight:768px”);
else
{
var mywindow =window.open( url, “Popupwindow”,
“location=1,status=no,scrollbars=1,width=1200px,
height=768px,resizable=1,toolbar=0″ )
mywindow.focus();
}


I was using above code to show Audit and History of data for a specified field. This was not working 100% as When we open page in ModalWindow using ShowModalDialog it Caches all data. So the Page_Load Event of my .aspx page was not firing after 1st click for that specific field . As Page_Load event was not firing, I was unable to get the latest changes made by the user.  To See the latest changes made by user we were closing the browser and doing the whole process again i.e. open browser , login , search that record and see the history which was a pain.

To stop the page caching I am now using the page directiv

<%@ OutputCache Location=”None” %>

Above directive is not allowing page to cache anything so my problem is solved.

I can show the latest changes made by the user now. :)

I Wan to share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • kick.ie
  • Live
  • MyShare
  • IndianPad
  • Reddit
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • DotNetKicks
  • DZone
  • TwitThis

Skype + three = Savings



A part of my family lives in Asia while I am living in United Kingdom. I am a customer of Three (3) mobile phone services provider. Recently I updated my contract with three and I got Nokia 6120.

Nokia 6120 Mix & Match 1100

My wife’s family also lives in Asia. My parents and my wife’s family we all talk on phone at least 2 hour daily during weak days and 8-10 hours on week ends .To save phone bill we Sometimes used other services like MSN Messenger, Skype Messenger and Yahoo Messenger. My mother was not happy these services though my siblings were happy using these service.

When I upgraded my contract I got Brand new Nokia 6120 it was equipped with skype, msn messenger and other services. We tried Skype my brother used his laptop computer to call me on my Skype ID and I received that call on my mobile and we spoke for 01:01:12 i.e one hour, one minue and 12 seconds. Quality of voice was so great that mother says she will use Skpe onwards to speak with us. Saving :) there is no phone bill as I am receiving calls on Skype for free and my family was already paying for their Internet broad band services and they are using Skype for free. Great!!!!!!!!! isn’t it and i am not bound to sit in front of computer I can receive Skpe calls on the go using 3 phone. Do not wait act as soon as you can and Start saving today.
3 Skype phone Mix & Match 100

I can not call from my phone to other Skype to do that I’ve to buy services from three and they are v cheap you can buy 4000 Skype to Skype minutes less than £5. You can visit following link to find out more.

http://www.three.co.uk/personal/products_services_/planet_three

/communicate_/calling_/skype.omp


I Wan to share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • kick.ie
  • Live
  • MyShare
  • IndianPad
  • Reddit
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • DotNetKicks
  • DZone
  • TwitThis
|