[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 423
  • Last Modified:

Javascript open.window in ASP.Net with querystring value

I'm trying to open a form as a popup from an ASP.Net page. When the button is clicked I run this code.
function OpenInfo()
window.open("info.aspx", "Employee", "width=650,height=600");
return false;
I want to open to a specific record, so I'm trying to use a querystring. info.aspx?id=empid, but I do not know how to get it to grab the empid from the form it is on. It's a hidden field right now. What is the best way to do this? When the form opens its available for edit, so once changes are made I'll need that id again to update the table.
1 Solution
Daniel Van Der WerkenIndependent ConsultantCommented:
Could you use
document.getElementById( 'id_of_empid_element' );  ?


Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now