Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3632596
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:32:42+00:00 2026-05-19T00:32:42+00:00

I have a search screen on my website which has various parameters. It is

  • 0

I have a search screen on my website which has various parameters. It is possible that many records could be returned, yet the user will only want to see the details of one record. In the case where many records are returned I want to display a modal popwindow with a data grid which will display some of the core fields and then from there the user can select the record they want to see in more detail and it will then close the modal-window and take them back to the main page where additional details are displayed.

I want to know how to pass the data (which will be in a list collection) from my aspx page to the popup window and populate the grid with the information.

I have tried server side but the controls on the popup (i.e. the datagrid) are not initialized. I have been looking but can’t find anything on the web which shows how to do this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:32:42+00:00Added an answer on May 19, 2026 at 12:32 am

    Ok, this is what you can do:

    Add the grid, I usually do it inside a panel

    <asp:Panel ID="pnStudios" runat="server">
    <asp:GridView ID="gvStudios" runat="server" OnSelectedIndexChanged="gvStudios_SelectedIndexChanged">
    </asp:GridView>
    </asp:Panel> 
    

    Link the mpe to the panel

    <asp:ModalPopupExtender ID="mpeStudios" runat="server" BehaviorID="mpeStudios"  Enabled="True" TargetControlID="txtStudio" PopupControlID="pnStudios">
    </asp:ModalPopupExtender>
    

    In your case you can leave the TargetControlID empty.

    When you want to show it use this

    gvStudios.DataSource = studios;
    gvStudios.DataBind();
    mpeStudios.Show();
    

    Where studios is a list collection.

    In the OnSelectedIndexChanged of the grid you can get the selected value and get the details so you can show them in your main page, the mpe will close automatically when a postback is done.

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to make an iPhone app for a company which has a web
We have two websites that share some business processes and UI elements. Lets focus
I want to implement something like this using JSF.(part of search screen) More and
I was unable to find the google's search widget on the home screen neither
I have an app very similar to address book of iphone. The entire search
I'm a bit confused about multitasking. I have a timer app which I am
I have an Activity with an EditText , a button and a ListView .
I am using SL 4, WCF RIA Services against Entity Framework 4.0. I have
Im using jQuery/PHP/MySql to load twitter search results on the page but limited to
I am new to iphone game development, i have recently install cocoas2d. But the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.