To djanosik :
(takthle je to ok
Dim ctrlText As Control = LoadControl("Text.ascx")
Dim ctrlDocuments As Control = LoadControl("Documents.ascx")
Content.Controls.Add(ctrlText)
Content.Controls.Add(ctrlDocuments)
)
(takthle se ten prvni zobtazi jen jednou
Dim ctrlText As Control = LoadControl("Text.ascx")
Dim ctrlDocuments As Control = LoadControl("Documents.ascx")
Content.Controls.Add(ctrlText)
Content.Controls.Add(ctrlText)
Content.Controls.Add(ctrlDocuments)
)
(a takthle je to ok, jenom nevim, jak to deklarovat programove
Dim ctrlText As Control = LoadControl("Text.ascx")
Dim ctrlText2 As Control = LoadControl("Text.ascx")
Dim ctrlDocuments As Control = LoadControl("Documents.ascx")
Content.Controls.Add(ctrlText)
Content.Controls.Add(ctrlText2)
Content.Controls.Add(ctrlDocuments)
)
Dik za radu
Příspěvky odeslané z IP adresy 95.103.193.–
CC
CC
Ahoj,
mam dotaz, mam website, v nem stranku, ve strance div a do divu vkladam programove customcontroly.
Neni problem vlozit jakykoli pocet controlu, pokud jsou rozdilne a kazdy zvlast deklarovany, ale pokud vkladam vicekrat stejny, zobrazi se jen jednou, pokud je jednou deklarovany, pokud ho zakazde deklaruju s ruznym ID, jde to.
Otazka ale je, jak tyto controly i dynamicky deklarovat?
Diky moc.