Hi all,
Ok working on as ASP.NET solution. What i want to do is to be able to provide a list of descriptions and the counts of those descriptions. Currently I have one page where the user can select a table that containes certain descriptions and then assign codes to those descriptions. If the user wants to see what area the descriptions come from and the counts associated they will select the descriptions and click a button. This button will popup a new window which will be populated with that information.
Here is the code I am using for this:
From the FirstPage.aspx:
Private Sub cmdCounts_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCounts.Click
Session("DataMap") = Me
Dim script As String = "@SCRIPT>window.open" & _
"('DescrCounts.aspx','','status=no,toolbar=no," & _
"menubar=no,titlebar=no,location=no,resizable=yes," & _
"scrollbars=yes,width=700,height=585,left=40,top=50')@/SCRIPT>"
Page.RegisterClientScriptBlock("OpenChild", script.Replace("@", "<"))
End Sub
This works fine, but the popup falls behind the main browser window. I want it to stay on top of the main browser. Is there an easy way to give this popup window focus until I close it?
Thanks
Paul
by: jitgangulyPosted on 2005-05-26 at 08:23:24ID: 14086846
On the child window i.e. DescrCounts.aspx, in HTML add this to Body section
<body onBlur="self.focus();">