| | |
Force Postback
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 3
Reputation:
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
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
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?
![]() |
Similar Threads
- Using Hidden Variables in ASP.NET (ASP.NET)
- Can't compare strings after PostBack (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
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn cac checkbox child class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownmenu dynamic edit embeddingactivexcontrol feedback findcontrol flash flv form forms gridview homeedition hosting iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects order problem ratings relationaldatabases rotatepage save search security serializesmo.table sessionvariables silverlight smartcard sql ssl suse textbox tracking treeview typeof unauthorized validatedate validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml






