ReLoading a Window

Y

yop

All

I have a main window (ViewAreas). Have an Add button
which when clicked opens a child window where the user
can enter a new area, it is added to the database. My
problem is that I want when the child window is closed
that the Viewareas window is reloaded to show an updated
list on areas including the new area I am after adding.

'Save the AreaRecord
Dim blSuccess As Boolean = Area.AddArea(UCase
(txtAreaName.Text), Session("UserID"))

If blSuccess = True Then
Response.Write("<script language='javascript'> {
window.open.locaction = 'ViewAreas.aspx'}</script>")

Response.Write("<script language='javascript'> {
window.close() }</script>")
End If

I thought that the open.location code would work but no
avail
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top