Hi Guys,

Sorry for my delay in replying... anyway thanks for your advices.

I have achieved what I wanted by creating a separate page which loads
the DetailsView of each selected row on my gridview.

In the main page, I have used the JavaScript function:

   string myScript = "window.open('ListDetails.aspx?id="+id+"');";
           Page.ClientScript.RegisterStartupScript(this.GetType(),
"HelloListDetails", myScript, true);

In the separate page, inside the Page_Load, I wrote:

    // to get the value sent by script written on the main page
    string id_tmp = this.Context.Request.QueryString["id"];

After these steps, I was able to use the value on my DetailsView
functions.

M



On Nov 25, 7:05 am, vinay kumar <[email protected]> wrote:
> use AJAX modal popup it is very helpful get the seleceted index in row
> command of grid view
> and show it in modal popup
>
>
>
> On Wed, Nov 25, 2009 at 11:52 AM, Cerebrus <[email protected]> wrote:
> > The simplest way would be to create a separate page that accepts
> > parameters indicating the selected record in the Main page and then
> > launch the popup which loads the secondary page displaying the
> > DetailsView.
>
> > On Nov 24, 5:44 pm, Maxwell <[email protected]> wrote:
> > > Hi People,
>
> > > I am a freshman in C#.Net framework therefore I am looking how to
> > > display details view in a pop-up window.
>
> > > I have a web report that shows many rows of data in a GridView and
> > > when you select a specific row it´s displaying the DetailsView on the
> > > same web page.
>
> > > Instead of displaying in the same page, I would like to use directly
> > > these displayed details and show them in a pop up window.
>
> > > Can someone help me with this or point me to an article on the
> > > topic?
>
> > > Thanks in advance!
> > > M- Hide quoted text -
>
> - Show quoted text -

Reply via email to