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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postback problem

Status
Not open for further replies.

cglinn

Programmer
Sep 3, 2003
44
US
My problem is as follows:

I have two buttons on a particular page. On the click of "Button A", it calls a function in another namespace (ExcelWriter()), returns to the Button A Click function and does more stuff, which at the end calls "Button B" Click function. The problem is that the page is not posting back after it goes through the "Button B" click sub.

So, it looks something like this:

Private Sub ButtonA_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonA.Click
Does some stuff....
Call ExcelWriter()
ButtonB_Click(sender, e)
End Sub

Private Sub ButtonB_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonB.Click
Does some stuff....
End Sub

Namespace SoftArtisans.Samples
Public Class ExcelWriterSamples
Shared Sub ExcelWriter()
Does some stuff...
End Sub
End Class
End Namespace

Any Ideas?

Thanks in Advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top