Passing Values By javascript

  • Thread starter Thread starter Alper OZGUR
  • Start date Start date
A

Alper OZGUR

I have two webforms with the names frm1 and frm2. When user hits a button at
the frm1, frm2 opens in a new window. After clicking one row in frm2, this
form is closing.. But i can't pass the values to the frm1 without
postingback frm1. Is ther anyway to pass the values from one WebForm to
another without postingback especially in Javascript?
 
Yes we can use hidden field for that.

sample code
window.opener.document.getElementById("hdAddedSpots").value += ',' +
songId;

window.opener is frm1 that has a hidden field in the name of
"hdAddedSpots".

thanks,
PB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top