I
also have to add that I am adding the UpdatePanel Programmatically as well. Just
to let you know, what I have now, actually does call the Updatepanel control’s
Update()
method but the problem is the update or refreshing of the portion of the page
itself does not seem to occur even after this.
Dim
coCollection As Control
For
Each coCollection In
Me.Page.Controls
If
coCollection.ID = "form1" Then 'Form on the
Default.aspx page
Dim a As Control =
coCollection.FindControl("SmartArea")
'Div Control on the Default.aspx page
If Not a Is
Nothing Then
' Find the UpdatePanel contained within
Dim CUpdate As
UpdatePanel = CType(a.FindControl("UpdatePanel1"), UpdatePanel)
If Not CUpdate Is Nothing Then
'Find the button inside of it
CUpdate.Update()
'Dim b As Button =
CType(CUpdate.FindControl("BtnUpdate"), Button)
'If Not b Is Nothing Then
'
'programmatically click the Button to fire the event
' CType(b,
IPostBackEventHandler).RaisePostBackEvent(Nothing)
'End If
End If
End If
End
If
Next
End If