DataBinding (Refreshing) a DataGrid within a Popup Window

  • Thread starter Frankie Myers via .NET 247
  • Start date
F

Frankie Myers via .NET 247

Hello,

I'm trying to set up a modal (preferably) popup window to do asimple web service query. The popup window contains somecriteria fields, a "search" button, and a datagrid that displaysall the results of the query. I want the user to enter theircriteria, click "search", and be able to select a row in thedatagrid (by using a link column). Their selection is thenpicked up in the parent form and it is populated with therelevant data. The trouble is that when I click the "search"button, the event handler calls the datagrid's DataBind()method, which refreshes the page in a new window. How can Irefresh the page in the current popup?
 
E

Eliyahu Goldin

Frankie,

If you open a new popup window, use following code:

<body>
<script language="javascript">window.name="modal";</script>
<form id="myForm" method ="post" runat="server" target="modal">

Eliyahu

Hello,

I'm trying to set up a modal (preferably) popup window to do a simple web
service query. The popup window contains some criteria fields, a "search"
button, and a datagrid that displays all the results of the query. I want
the user to enter their criteria, click "search", and be able to select a
row in the datagrid (by using a link column). Their selection is then
picked up in the parent form and it is populated with the relevant data.
The trouble is that when I click the "search" button, the event handler
calls the datagrid's DataBind() method, which refreshes the page in a new
window. How can I refresh the page in the current popup?
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top