Custom control problem

  • Thread starter Thread starter Roberto Ferreira
  • Start date Start date
R

Roberto Ferreira

Excuse me, but my english not is good, but I will try to do it good. Well,
this is my case, I have created a custom control in C# for ASP.net, however,
i have a problems in the properties of that control. The properties of
control lose in the request of page, then, i can't obtain the properties and
use it, somebody can help me? Thanks. Regards

PS: Si alguien escribe en español muchisimo mejor.. Saludos!!

Ing. Roberto Ferreira
Maracay-Venzuela
 
Roberto, almacena el valor de las propiedades que tu deseas en el viewstate
de la página. Así el valor de estos permanece entre postbacks hacia el
servidor. Un ejemplo

public string TuPropiedad {
get { return ((string) ViewState["TuPropiedad"]); }
set { ViewState["TuPropiedad"] = value; }
}

Saludos,
 
Muchas gracias Angel, el código me sirvio de mucho... Saludos!

Roberto Ferreira
Maracay-Venezuela
 
Back
Top