HighTechTalks DotNet Forums  

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

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss on click of a link button should first save the data and then open a new browser in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mathew George
 
Posts: n/a

Default on click of a link button should first save the data and then open a new browser - 07-01-2003 , 02:06 AM






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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.