Details view in a pop-up window

13 views
Skip to first unread message

Maxwell

unread,
Nov 24, 2009, 7:44:32 AM11/24/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
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

Cerebrus

unread,
Nov 25, 2009, 1:22:57 AM11/25/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
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.

vinay kumar

unread,
Nov 25, 2009, 2:05:41 AM11/25/09
to dotnetde...@googlegroups.com
use AJAX modal popup it is very helpful get the seleceted index in row command of grid view 
and show it in modal popup

Maxwell

unread,
Dec 9, 2009, 6:35:07 AM12/9/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
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
> > > M- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages