Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculation + 2 new windows

Status
Not open for further replies.

petermeachem

Programmer
Aug 26, 2000
2,270
GB
What I am trying to do is to run some database updates and print out a letter and an invoice when a button is clicked.
I'm fine with the database update, but I can't figure out how to either display the letter and invoice in new browser windows (got to be in new windows) or just create the documents and print them.
I am pretty sure this is going to be another in my series of really simple questions, but I am completely stuck. I have spent the entire morning fiddling about with bits of javascript and RegisterStartupScript with knowing what I am doing or why.
 
If you want to open a new window.. you will have to use javascript. Look up window.open()
 
I have used
Sub Page_Load()
btnSave.Attributes.Add("onClick", "showawindow();")
End Sub

which displays ok. I need to do the database changes before showing the two new windows. I can't see how to do that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top