•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 401,727 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,116 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 8842 | Replies: 1
![]() |
•
•
Join Date: Jul 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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 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?
Either one or both of us is thoroughly confused
.Could you restate in English (no code) what it is you're attempting?
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Can't compare strings after PostBack (ASP.NET)
- Using Hidden Variables in ASP.NET (ASP.NET)
- fitting g force graphic card wont work(athlon m/b) (Monitors, Displays and Video Cards)
- force single precision? (C)
- Is there any way that VB can force Windows not to modify a file (Visual Basic 4 / 5 / 6)
Other Threads in the ASP.NET Forum
- Previous Thread: Formatting Childgrid inside Master Grid
- Next Thread: Login used to work



Linear Mode