Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Button and when I click it a Pop up window opens with some parameters that i pass in it.It takes two click to open it for the 1st time and ever time i open it it will open the window with cached data and then i have to refresh the data.I need to stop the double click and the cached issue.Thanks !

Edited: B Birajdar

spelling correction - cashed -> cached
Javascript:

C#
function openemppostingjospopupforrenew(viewfolderid, jobtitle) {
    window.open('renewpopup.aspx?folderid=' + viewfolderid + '&jobtitle= ' + jobtitle, 'List', 'scrollbars=yes,resizable=no,left=140,top=100,width=750,height=150');
}



Buttoncode:
C#
btnrenew.Attributes.Add("onclick", "openemppostingjospopupforrenew(' " + Convert.ToInt32(folderid) + " ',' " + lnbtnfolname.Text + " ')");
Posted
Updated 29-Mar-12 2:21am
v4
Comments
Herman<T>.Instance 29-Mar-12 6:10am    
what have you tried?
Anurag Gandhi 29-Mar-12 6:15am    
Please provide your code so that we can understand what went wrong and why double click is needed. For caching issue, every time when u open popup, try adding different query string.
Ramu15 29-Mar-12 6:20am    
Javasript:
function openrenamepopup(jobid, foldername, foldertype) { window.open('emprename.aspx?jobids=' + jobid + '&foldername=' + foldername+'&foldertype='+foldertype, 'List', 'scrollbars=no,resizable=no,left=140,top=100,width=550,height=150'); }

Buttoncode:

btnrenew.Attributes.Add("onclick", "openemppostingjospopupforrenew(' " + Convert.ToInt32(folderid) + " ',' " + lnbtnfolname.Text + " ')");
Ramu15 29-Mar-12 6:23am    
function openemppostingjospopupforrenew(viewfolderid, jobtitle) {
window.open('renewpopup.aspx?folderid=' + viewfolderid + '&jobtitle= ' + jobtitle, 'List', 'scrollbars=yes,resizable=no,left=140,top=100,width=750,height=150');
}

btnrenew.Attributes.Add("onclick", "openemppostingjospopupforrenew(' " + Convert.ToInt32(folderid) + " ',' " + lnbtnfolname.Text + " ')");

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900