R
Raymond Lewallen
Nikhil,
I think what you are wanting to do is not use the javascript initially. You
will want to have your Button control set to runat=server, and when you
click it this buttons will fire a postback. You can then gather your
information from your form either putting the code in your sub that handles
MyButton.onClick or by having that same sub call a different sub that
gathers and saves the data. Then when you are done with your data, at the
end of your MyButton.onClick sub, use
RegisterStartupScript("callitwhatever","<script>window.close</script>") and
this will close your window.
Raymond Lewallen
I think what you are wanting to do is not use the javascript initially. You
will want to have your Button control set to runat=server, and when you
click it this buttons will fire a postback. You can then gather your
information from your form either putting the code in your sub that handles
MyButton.onClick or by having that same sub call a different sub that
gathers and saves the data. Then when you are done with your data, at the
end of your MyButton.onClick sub, use
RegisterStartupScript("callitwhatever","<script>window.close</script>") and
this will close your window.
Raymond Lewallen