L
Luca
I've a DYNAMIC usercontrol with a button...if i click i have only a
submit of the page without passing into Button1_Click function Why???
The usercontrol it's created into a webForm (Default.aspx) that call
the following function...
Private Sub BindBloccoDettaglio()
dim sVar
Dim usercontrol As Control
usercontrol = LoadControl("Blocco_Dettaglio_Hotel.ascx")
Dim element As Dettaglio = CType(usercontrol,
Blocco_Dettaglio)
element.MyVar = sVar
element.DataBind()
Controls.Add(element)
Dim w As StringWriter = New StringWriter
Dim sOutput As HtmlTextWriter = New HtmlTextWriter(w)
element.RenderControl(sOutput)
Me.Response.Write(w.GetStringBuilder().ToString())
Response.Flush()
End Sub
submit of the page without passing into Button1_Click function Why???
The usercontrol it's created into a webForm (Default.aspx) that call
the following function...
Private Sub BindBloccoDettaglio()
dim sVar
Dim usercontrol As Control
usercontrol = LoadControl("Blocco_Dettaglio_Hotel.ascx")
Dim element As Dettaglio = CType(usercontrol,
Blocco_Dettaglio)
element.MyVar = sVar
element.DataBind()
Controls.Add(element)
Dim w As StringWriter = New StringWriter
Dim sOutput As HtmlTextWriter = New HtmlTextWriter(w)
element.RenderControl(sOutput)
Me.Response.Write(w.GetStringBuilder().ToString())
Response.Flush()
End Sub