This topic is locked

Add new record in popup

6/14/2006 7:43:43 AM
ASPRunnerPro General questions
M
mr_coder author

Hi is it possible to modiffy the asp code so that when a user needs to add a new record, it opens up a new browser widndow with the form in it. And when a record is added, closes that window ?

Sergey Kornilov admin 6/14/2006

On the list page you can modify Add new link to be opened in a new window.

<a href="..." target=_blank>


Also you need to add some code AfterAdd Event to close window after record is added.

Probably something like this will work:

Response.Write "<script>window.close();</script>"
M
mr_coder author 6/16/2006

Thanks for your reply ! I have used a javascript to open a new window as this way i can control the look of the new popup.

F
funklet 9/17/2006

Dear Mr Coder,
Please could you post your code as I am trying to do the same thing with Javascript.
Many Thanks,
Funklet