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 a .net application which includes search screen which has a panel with
I have a search screen in a Visual Basic .Net App that has text
the div on website below that have search at the bottom and it always
Suppose I have a search screen that is intended for looking up items. There
I have an asp.net search screen which displays the results in a new browser
In my website's advanced search screen there are about 15 fields that need an
I have a .aspx search screen that displays the results of the search in
I have a search.aspx page that has this: <asp:DropDownList id=ddlPopulation runat=server DataTextField=population DataValueField=pid> </asp:DropDownList>
I have a search screen in my WPF application. The screen is implemented as
I have a lookup screen with 25 fields. When the user clicks the search

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.