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

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.