User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jul 2005
Posts: 3
Reputation: iloveorangesoda is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
iloveorangesoda iloveorangesoda is offline Offline
Newbie Poster

Force Postback

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Force Postback

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 9:18 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC