Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   on click of a link button should first save the data and then open a new browser (http://www.velocityreviews.com/forums/t19484-on-click-of-a-link-button-should-first-save-the-data-and-then-open-a-new-browser.html)

Mathew George 07-01-2003 06:05 AM

on click of a link button should first save the data and then open a new browser
 
Hi,

A page consists of a link button. Clicking this link button should first
save data in the database.
If the data is saved correctly then it should open a new window.

I have coded for the link button as

Private Sub Button1_Click
(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
' perform database save here
Response.Write("<script>window.open();</script>")
End Sub


Can anyone suggest which is the best method in terms of reliability and
performance.

Regards,
Mathew



soni 07-02-2003 12:48 PM

Re: on click of a link button should first save the data and then open a new browser
 
Hi mathew..
well it looks fine.. as long as u r not doing any major DB work in the
button _onclick event. ( this should be done in ur middle tier)
the rest looks fine unless someone differs ..




All times are GMT. The time now is 01:54 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.