Link to home
Start Free TrialLog in
Avatar of godcomputer
godcomputer

asked on

click on a button, load a new window, get a string value back from that window to your orignal asp .net page

i want to click a button, then load a new window ( pop up ) and return what the user typed in.

on this window im going to load a page that is another aspx page and it will store session variables but i also want it to return a string directly to the orginal page.
Avatar of YZlat
YZlat
Flag of United States of America image

use javascript window.open
ASKER CERTIFIED SOLUTION
Avatar of nauman_ahmed
nauman_ahmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
button1.Attributes.Add("onclick", "javascript:window.open('page2.aspx');")