Selecting item from popup

  • Thread starter Thread starter Amy Snyder
  • Start date Start date
A

Amy Snyder

I have webform1.aspx with an asp:textbox control and a link. The
textbox is for entering company tickers. The link is to open up a
smaller window where a user can do a quick query to search for a company
ticker. The results are displayed in a datagrid. I set one of the
columns in the datagrid to a hyperlink column. Pretty straight forward.

What I would like to do is have the selected row's ticker transferred to
the ticker text box on webform1.aspx. How can I do that?
 
http://aspnet.4guysfromrolla.com/articles/090402-1.2.aspx

This example involves a javascript to allow confirmation of a delete button,
but you should easily be able to adapt it for a hyperlink column. In the
Javascript, get the text (which you should be able to set at compilation),
send/set it back in the parent, and close the window.

HTH,
--Michael
 

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