Force Postback

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2005
Posts: 3
Reputation: iloveorangesoda is an unknown quantity at this point 
Solved Threads: 0
iloveorangesoda iloveorangesoda is offline Offline
Newbie Poster

Force Postback

 
0
  #1
Jan 10th, 2006
Hi

I have added some controls dynamically and raised an addhandler click event see below

AddHandler _Expand.Click, AddressOf Me.btnClick

Private Sub btnClick(ByVal sender As Object, ByVal e As System.EventArgs)
Dim tmpBtn As Button = CType(sender, Button)
Response.Write(tmpBtn.ID)
End Sub

I want to raise a postback inside the Private Sub btnClick...... and not sure how to do this?



Any ideas
Thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Force Postback

 
0
  #2
Jan 10th, 2006
I can't understand the question. If you're inside a server-side event method, the user must have posted the form. You are inside of a "Postback". Also, a postback occurs when the client submits the form back to the ASP.NET application. Even if you could "raise a postback" while running a server-side method, what would that mean?

Either one or both of us is thoroughly confused .

Could you restate in English (no code) what it is you're attempting?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC