954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Force Postback

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

iloveorangesoda
Newbie Poster
3 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

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?

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You