RSS 2.0 Atom 1.0 CDF  
JASoft.org - Una manera mejor de persistir el ViewState
El blog de José Manuel Alarcón Aguín. Programación .NET y mucho más...
 

Siguiendo a mi post anterior, vamos a ver una técnica alternativa para conseguir la persistencia del ViewState en sesión.

La anterior técnica, nativa de ASP.NET 2.0 adolecía de varios problemillas, los más importantes son:

1.- No eliminaba del todo el ViewState, sólo una parte del mismo. En formularios Web con muchos controles el tamaño del ViewState sigue siendo considerable, si bien se reduce bastante.

2.- Sólo funciona en ASP.NET 2.0, pero no en versiones anteriores.

Voy a explicar a continuación una técnica alternativa que elimina estos problemas y tiene algunas ventajas a mayores.

Para conseguir manejar a nuestro antojo el ViewState podemos sobrescribir dos métodos importantes de la página: SavePageStateToPersistenceMedium y LoadPageStateFromPersistenceMedium. Como se deduce de su propio nombre estos métodos se llaman automáticamente por la infraestructura de páginas ASP.NET a la hora de almacenar y de recuperar el ViewState de una página respectivamente.

Dado que en nuestro caso lo que vamos a hacer es persistir el ViewState a memoria y de manera individual para cada usuario emplearemos una variable de sesión. Podemos usar una única variable para todas las páginas de modo que se sobrescriba cuando cambiemos de página, o bien podemos usar una variable diferente para cada página y así mantener incluso su estado entre varias visitas (más sobre esto luego). En el ejemplo que he preparado he usado esta segunda opción, por lo que defino el prefijo que llevarán todas estas variables:

private const string PREF_CLAVE = "SP_VWST_";

Le he llamado así para recordar con estas iniciales la palabra "Session Persisted ViewState".

Bien, ahora sobreescribimos el método protegido SavePageStateToPersistenceMedium, y lo dejaremos definido de la siguiente manera:

protected override void SavePageStateToPersistenceMedium(object state)
{
  //base.SavePageStateToPersistenceMedium(state);
  //Se almacena en Sesión (la base lo hace en un campo oculto)
  Session[PREF_CLAVE + Request.RawUrl] = state;
}

Es decir, evitamos que se llame a la implementación por defecto de la base (la primera línea comentada) ya que si no se comportaría como siempre, y almacenamos el objeto de estado en una variable de sesión que se llamará con nuestro prefijo seguido por la URL de la página (para distinguirla del estado persistido de otras páginas). Así de sencillo.

Ahora sólo queda recuperar este estado cuando sea necesario. Para ello seguimos un procedimiento igual de simple, que consiste en sobrescribir el método LoadPageStateFromPersistenceMedium de la página, del siguiente modo:

protected override object LoadPageStateFromPersistenceMedium()
{
object state = Session[PREF_CLAVE + Request.RawUrl];
//Si no lo hay en memoria lo coge del campo oculto, aunque sólo debería darse en la primera llamada y aún así sería nulo...
return (state != null) ? state : base.LoadPageStateFromPersistenceMedium();
}

En este caso recuperamos el estado desde la variable de sesión anterior. Puede que esté vacío porque es la primeravez que pasamos por la página, en cuyo caso llamamos a la implementación por defecto de la clase base (Page) para que otorgue los valores iniciales correctos. También muy sencillo ¿verdad?

Conclusiones

Con esta técnica podremos persistir el estado de nuestras páginas en memoria desde cualquier versión de ASP.NET, lo cual brinda varias ventajas en ciertas circunstancias:

  1. No se debe trasegar la información de estado entre los diferetes postbacks, lo que ahorra mucho ancho de banda y aumenta la velocidad en formularios con muchos controles. Por ejemplo, esta técnica aplicada a un formulario de una de las últimas aplicaciones que hemos hecho en Krasis aumentó la velocidad del mismo de manera espectacular ya que contenía varias decenas de controles (era una entrada de datos muy compleja con muchos postbacks y efectos AJAX).
  2. Con esta técnica sí se elimina por completo el ViewState, al contrario que en el caso del objeto PageStatePersister de ASP.NET 2.0, que sí deja parte del mismo en el formulario.
  3. Al hacerlo de este modo podemos conservar el estado de una página aunque nos vayamos a otras y más adelante volvamos a la misma. Mientras la sesión esté activa podemos regresar a la página y los controles estarán exactamente como los dejamos porque el estado de los mismos están en la variable de sesión. Imagínate por ejemplo una página de búsqueda compleja, con muchas variables y valores compuestos que cuesta mucho configurar. Puedes hacerlo una vez y tenerlos así fijados siempre que regreses a la página (mientras no se borre la variable de sesión correspondiente).

He colocado aquí un archivo .cs con una clase que implementa esta técnica. Si quieres que una página tuya la soporte sólo tienes que heredar de esta clase en lugar de Page y ya está.

¡Espero que te resulte interesante! :-)

Saturday, November 18, 2006 9:02:56 PM (Hora estándar romance, UTC+01:00)  #    Comments [5]   ASP.NET | Programación  |  Trackback Tracked by:
"http://9ujsg-le-informazioni.cn/20158295/index.html" (http://9ujsg-le-informazi... [Pingback]
"http://9ujsf-le-informazioni.cn/88072644/produttori-porte-blindate-puglia.html"... [Pingback]
"http://9ujsl-le-informazioni.cn/20121543/index.html" (http://9ujsl-le-informazi... [Pingback]
"http://9ukfd-le-informazioni.cn/32846307/index.html" (http://9ukfd-le-informazi... [Pingback]
"http://9ukdw-le-informazioni.cn/12999737/index.html" (http://9ukdw-le-informazi... [Pingback]
"http://9ujxy-le-informazioni.cn/05273826/index.html" (http://9ujxy-le-informazi... [Pingback]
"http://9ukdo-le-informazioni.cn/79539655/locale-trans-milano.html" (http://9ukd... [Pingback]
"http://9ujzf-le-informazioni.cn/91716242/creative-7-1-inspire-t7900.html" (http... [Pingback]
"http://9ujyu-le-informazioni.cn/90262879/offro-lavoro-capodanno-sicilia.html" (... [Pingback]
"http://9ujvn-le-informazioni.cn/16381006/index.html" (http://9ujvn-le-informazi... [Pingback]
"http://9ukdr-le-informazioni.cn/73623887/index.html" (http://9ukdr-le-informazi... [Pingback]
"http://9ukgn-le-informazioni.cn/84320338/index.html" (http://9ukgn-le-informazi... [Pingback]
"http://9ujrt-le-informazioni.cn/44965821/prenotazioni-bed-and-breakfast-roma.ht... [Pingback]
"http://9ujvl-le-informazioni.cn/95718767/index.html" (http://9ujvl-le-informazi... [Pingback]
"http://9ujsc-le-informazioni.cn/04497022/pro-e-contro-della-globalizzazione.htm... [Pingback]
"http://9ukbh-le-informazioni.cn/49033064/index.html" (http://9ukbh-le-informazi... [Pingback]
"http://9ukaj-le-informazioni.cn/45108202/index.html" (http://9ukaj-le-informazi... [Pingback]
"http://9ujsy-le-informazioni.cn/44966657/quadri-astratti.html" (http://9ujsy-le... [Pingback]
"http://9ujri-le-informazioni.cn/26255880/index.html" (http://9ujri-le-informazi... [Pingback]
"http://9ukix-le-informazioni.cn/59635849/girl-bologna.html" (http://9ukix-le-in... [Pingback]
"http://9ukbx-le-informazioni.cn/82914207/banca-canton-ticino.html" (http://9ukb... [Pingback]
"http://9ujsc-le-informazioni.cn/04497022/index.html" (http://9ujsc-le-informazi... [Pingback]
"http://9ujtl-le-informazioni.cn/74560707/index.html" (http://9ujtl-le-informazi... [Pingback]
"http://9ukca-le-informazioni.cn/24612292/index.html" (http://9ukca-le-informazi... [Pingback]
"http://9ujvj-le-informazioni.cn/37819510/index.html" (http://9ujvj-le-informazi... [Pingback]
"http://9ujsb-le-informazioni.cn/91681810/index.html" (http://9ujsb-le-informazi... [Pingback]
"http://9ukbi-le-informazioni.cn/62271971/index.html" (http://9ukbi-le-informazi... [Pingback]
"http://9ujxo-le-informazioni.cn/78157132/a3-delf.html" (http://9ujxo-le-informa... [Pingback]
"http://9ukca-le-informazioni.cn/61427299/index.html" (http://9ukca-le-informazi... [Pingback]
"http://9ujps-le-informazioni.cn/62732620/piede-nudo-sesso-it.html" (http://9ujp... [Pingback]
"http://9ujoj-le-informazioni.cn/74917786/strapon-orgasm.html" (http://9ujoj-le-... [Pingback]
"http://9ukcr-le-informazioni.cn/64747072/index.html" (http://9ukcr-le-informazi... [Pingback]
"http://9ujoy-le-informazioni.cn/89341598/index.html" (http://9ujoy-le-informazi... [Pingback]
"http://9ujxf-free-movies.cn/74939443/states-with-the-lowest-car-insurance-rates... [Pingback]
"http://9ukfh-free-movies.cn/04313628/houses-for-sale-in-grove-city-pa.html" (ht... [Pingback]
"http://9ukoj-free-movies.cn/25210107/legal-research-job-london.html" (http://9u... [Pingback]
"http://9ukfp-free-movies.cn/64952818/index.html" (http://9ukfp-free-movies.cn/6... [Pingback]
"http://9ukkx-free-movies.cn/92807060/sbc-communication-aetna-health-insurance.h... [Pingback]
"http://9ukjy-free-movies.cn/49681380/index.html" (http://9ukjy-free-movies.cn/4... [Pingback]
"http://9ujxo-free-movies.cn/56941307/new-car-with-bad-loans.html" (http://9ujxo... [Pingback]
"http://9uknl-free-movies.cn/36969780/index.html" (http://9uknl-free-movies.cn/3... [Pingback]
"http://9ukbm-free-movies.cn/74893062/index.html" (http://9ukbm-free-movies.cn/7... [Pingback]
"http://9ukli-free-movies.cn/52481572/index.html" (http://9ukli-free-movies.cn/5... [Pingback]
"http://9ukhh-free-movies.cn/53858427/index.html" (http://9ukhh-free-movies.cn/5... [Pingback]
"http://9ukap-free-movies.cn/31408681/index.html" (http://9ukap-free-movies.cn/3... [Pingback]
"http://9ujxg-free-movies.cn/41917387/index.html" (http://9ujxg-free-movies.cn/4... [Pingback]
"http://9ujtq-free-movies.cn/67018305/forest-service-co-op-programs.html" (http:... [Pingback]
"http://9ukjo-free-movies.cn/94316726/index.html" (http://9ukjo-free-movies.cn/9... [Pingback]
"http://9ukoe-free-movies.cn/17496945/index.html" (http://9ukoe-free-movies.cn/1... [Pingback]
"http://9ukaw-free-movies.cn/78381802/index.html" (http://9ukaw-free-movies.cn/7... [Pingback]
"http://9uknp-free-movies.cn/43640379/index.html" (http://9uknp-free-movies.cn/4... [Pingback]
"http://9ujwr-free-movies.cn/21359169/freeware-audio-editing-software.html" (htt... [Pingback]
"http://9ukgj-free-movies.cn/64461119/water-temperature-at-nags-head-nc.html" (h... [Pingback]
"http://9ukns-free-movies.cn/80068438/index.html" (http://9ukns-free-movies.cn/8... [Pingback]
"http://9ujrl-free-movies.cn/78049475/index.html" (http://9ujrl-free-movies.cn/7... [Pingback]
"http://9ukkr-free-movies.cn/26929790/satilite-radio-review.html" (http://9ukkr-... [Pingback]
"http://9ujsc-free-movies.cn/35050111/index.html" (http://9ujsc-free-movies.cn/3... [Pingback]
"http://9ukfx-free-movies.cn/11190922/index.html" (http://9ukfx-free-movies.cn/1... [Pingback]
"http://9ujrl-free-movies.cn/34654787/index.html" (http://9ujrl-free-movies.cn/3... [Pingback]
"http://9ukav-free-movies.cn/06592198/index.html" (http://9ukav-free-movies.cn/0... [Pingback]
"http://9ujto-free-movies.cn/61866471/aix-5-3-service-pack-3.html" (http://9ujto... [Pingback]
"http://9ukli-free-movies.cn/39763138/my-dog-is-itching-and-losing-fur.html" (ht... [Pingback]
"http://9ujrt-free-movies.cn/62715933/index.html" (http://9ujrt-free-movies.cn/6... [Pingback]
"http://9ukne-free-movies.cn/37552739/index.html" (http://9ukne-free-movies.cn/3... [Pingback]
"http://9ukqq-free-movies.cn/86631972/index.html" (http://9ukqq-free-movies.cn/8... [Pingback]
"http://9ukpx-free-movies.cn/22823522/chesapeake-city-first-mortgage-loans.html"... [Pingback]
"http://9ucnl-free-porn.info/88927703/index.html" (http://9ucnl-free-porn.info/8... [Pingback]
"http://9uksm-free-movies.cn/17202958/index.html" (http://9uksm-free-movies.cn/1... [Pingback]
"http://9uktx-free-movies.cn/36592902/index.html" (http://9uktx-free-movies.cn/3... [Pingback]
"http://9ukpa-free-movies.cn/48789385/index.html" (http://9ukpa-free-movies.cn/4... [Pingback]
"http://9ukux-free-movies.cn/89733821/index.html" (http://9ukux-free-movies.cn/8... [Pingback]
"http://9uksn-free-movies.cn/55336899/index.html" (http://9uksn-free-movies.cn/5... [Pingback]
"http://9ukpr-free-movies.cn/81035808/index.html" (http://9ukpr-free-movies.cn/8... [Pingback]
"http://9uksu-free-movies.cn/91942575/desert-garden-s-mobile-home-park.html" (ht... [Pingback]
"http://9ukpw-free-movies.cn/79559630/index.html" (http://9ukpw-free-movies.cn/7... [Pingback]
"http://9uksa-free-movies.cn/94046552/friendsville-state-game.html" (http://9uks... [Pingback]
"http://9ukrh-free-movies.cn/56882994/index.html" (http://9ukrh-free-movies.cn/5... [Pingback]
"http://9ukuv-free-movies.cn/26322875/index.html" (http://9ukuv-free-movies.cn/2... [Pingback]
"http://9ukut-free-movies.cn/18603462/index.html" (http://9ukut-free-movies.cn/1... [Pingback]
"http://9ucni-free-porn.info/78540205/index.html" (http://9ucni-free-porn.info/7... [Pingback]
"http://9ukrp-free-movies.cn/40100716/youtube-fullmetal-alchemist-the-movie.html... [Pingback]
"http://9ukpi-free-movies.cn/69954363/software-to-program-flash-drives.html" (ht... [Pingback]
"http://9uksi-free-movies.cn/56725522/thunderbird-address-book-share.html" (http... [Pingback]
"http://9ukuc-free-movies.cn/33877913/index.html" (http://9ukuc-free-movies.cn/3... [Pingback]
"http://9ukrt-free-movies.cn/86957034/index.html" (http://9ukrt-free-movies.cn/8... [Pingback]
"http://9uktv-free-movies.cn/01240376/index.html" (http://9uktv-free-movies.cn/0... [Pingback]
"http://9ukuw-free-movies.cn/01440803/hdfc-bank-china.html" (http://9ukuw-free-m... [Pingback]
"http://9ukrf-free-movies.cn/75020096/new-wave-enviro-shower-filter.html" (http:... [Pingback]
"http://9ucna-free-porn.info/11083794/index.html" (http://9ucna-free-porn.info/1... [Pingback]
"http://9ucnc-free-porn.info/68770396/index.html" (http://9ucnc-free-porn.info/6... [Pingback]
"http://9uksc-free-movies.cn/09419034/index.html" (http://9uksc-free-movies.cn/0... [Pingback]
"http://9ukuw-free-movies.cn/99814884/fat-tire-distributers.html" (http://9ukuw-... [Pingback]
"http://9ukpb-free-movies.cn/22333457/index.html" (http://9ukpb-free-movies.cn/2... [Pingback]
"http://9ukpg-free-movies.cn/23224846/index.html" (http://9ukpg-free-movies.cn/2... [Pingback]
"http://9uktf-free-movies.cn/65763185/index.html" (http://9uktf-free-movies.cn/6... [Pingback]
"http://9ukwb-free-movies.cn/23958708/how-do-you-add-a-serial-port-to-a-computer... [Pingback]
"http://9ukxw-free-movies.cn/89275673/warren-concrete-products.html" (http://9uk... [Pingback]
"http://9ukwo-free-movies.cn/51607936/famous-hotel-north-of-montana.html" (http:... [Pingback]
"http://9ukwp-free-movies.cn/33855414/index.html" (http://9ukwp-free-movies.cn/3... [Pingback]
"http://9ukwy-free-movies.cn/32079424/index.html" (http://9ukwy-free-movies.cn/3... [Pingback]
"http://9ucol-le-informazioni.biz/69869126/foto-vecchia-zoccola-bagnata.html" (h... [Pingback]
"http://9ukxt-free-movies.cn/77851142/index.html" (http://9ukxt-free-movies.cn/7... [Pingback]
"http://9ukwb-free-movies.cn/29001637/index.html" (http://9ukwb-free-movies.cn/2... [Pingback]
"http://9ukxj-free-movies.cn/52890197/index.html" (http://9ukxj-free-movies.cn/5... [Pingback]
"http://9ukyx-free-movies.cn/60656899/credit-card-matching-for-taxis.html" (http... [Pingback]
"http://9ukyl-free-movies.cn/26731332/small-business-brisbane.html" (http://9uky... [Pingback]
"http://9ukwb-free-movies.cn/23385589/index.html" (http://9ukwb-free-movies.cn/2... [Pingback]
"http://9ulal-free-movies.cn/66939180/graduation-gift-or-gifts.html" (http://9ul... [Pingback]
"http://9ulat-free-movies.cn/11264194/index.html" (http://9ulat-free-movies.cn/1... [Pingback]
"http://9ukye-free-movies.cn/01275647/circut-city-ny.html" (http://9ukye-free-mo... [Pingback]
"http://9ucot-le-informazioni.biz/39446827/index.html" (http://9ucot-le-informaz... [Pingback]
"http://9ukxr-free-movies.cn/05824718/free-cingular-prepaid-phone-card-giveaway.... [Pingback]
"http://9ukwl-free-movies.cn/04141270/index.html" (http://9ukwl-free-movies.cn/0... [Pingback]
"http://9ucos-le-informazioni.biz/75720613/index.html" (http://9ucos-le-informaz... [Pingback]
"http://9ucog-le-informazioni.biz/78274540/index.html" (http://9ucog-le-informaz... [Pingback]
"http://9ulal-free-movies.cn/34236495/what-is-the-most-inexpensive-new-car.html"... [Pingback]
"http://9ukxx-free-movies.cn/74127674/index.html" (http://9ukxx-free-movies.cn/7... [Pingback]
"http://9ukxv-free-movies.cn/29187197/index.html" (http://9ukxv-free-movies.cn/2... [Pingback]
"http://9ucor-le-informazioni.biz/50354280/documentclass-article.html" (http://9... [Pingback]
"http://9ukwc-free-movies.cn/99372335/city-nw-of-nanagua.html" (http://9ukwc-fre... [Pingback]
"http://9ukwu-free-movies.cn/59834687/california-wine-and-cheese-monrovia.html" ... [Pingback]
"http://9ukwc-free-movies.cn/83805125/index.html" (http://9ukwc-free-movies.cn/8... [Pingback]
"http://9ucor-le-informazioni.biz/80489745/index.html" (http://9ucor-le-informaz... [Pingback]
"http://9ukxq-free-movies.cn/62697850/index.html" (http://9ukxq-free-movies.cn/6... [Pingback]
"http://9ukxg-free-movies.cn/25318015/index.html" (http://9ukxg-free-movies.cn/2... [Pingback]
"http://9ukwd-free-movies.cn/84302202/s-s-ace-hardware-new-albany-indiana.html" ... [Pingback]
"http://9ulap-free-movies.cn/23069559/index.html" (http://9ulap-free-movies.cn/2... [Pingback]
"http://9ulav-free-movies.cn/06974772/index.html" (http://9ulav-free-movies.cn/0... [Pingback]
"http://9ulaw-free-movies.cn/84490132/builder-books.html" (http://9ulaw-free-mov... [Pingback]
"http://9uleq-free-movies.cn/27609763/amerian-idol-phone-nbers.html" (http://9ul... [Pingback]
"http://9uldf-free-movies.cn/91750169/index.html" (http://9uldf-free-movies.cn/9... [Pingback]
"http://9uldj-free-movies.cn/60209026/how-do-i-get-out-of-a-car-lease.html" (htt... [Pingback]
"http://9uliv-free-movies.cn/71672756/index.html" (http://9uliv-free-movies.cn/7... [Pingback]
"http://9ulgw-free-movies.cn/12113779/tan-4-life.html" (http://9ulgw-free-movies... [Pingback]
"http://9ulbu-free-movies.cn/09373750/index.html" (http://9ulbu-free-movies.cn/0... [Pingback]
"http://9ulbm-free-movies.cn/58158589/money-compensation-egg-donors.html" (http:... [Pingback]
"http://9uldu-free-movies.cn/90572506/college-sports-memorabilia.html" (http://9... [Pingback]
"http://9ulca-free-movies.cn/91953961/hemet-school-calender-hemet-california.htm... [Pingback]
"http://9ulem-free-movies.cn/07351645/medical-coding-ta-t9.html" (http://9ulem-f... [Pingback]
"http://9ulba-free-movies.cn/30779828/martins-food-market.html" (http://9ulba-fr... [Pingback]
"http://9ulip-free-movies.cn/26185063/dan-abrams-msnbc-show.html" (http://9ulip-... [Pingback]
"http://9ulit-free-movies.cn/94499012/index.html" (http://9ulit-free-movies.cn/9... [Pingback]
"http://9uley-free-movies.cn/69354505/index.html" (http://9uley-free-movies.cn/6... [Pingback]
"http://9ulcg-free-movies.cn/86546757/theological-school-of-the-protestant-refor... [Pingback]
"http://9ulgb-free-movies.cn/34529861/index.html" (http://9ulgb-free-movies.cn/3... [Pingback]
"http://9ulbh-free-movies.cn/11336876/index.html" (http://9ulbh-free-movies.cn/1... [Pingback]
"http://9ulby-free-movies.cn/63143617/index.html" (http://9ulby-free-movies.cn/6... [Pingback]
"http://9ulew-free-movies.cn/86957094/charlie-horse-causes.html" (http://9ulew-f... [Pingback]
"http://9ulbb-free-movies.cn/54076766/bb-t-construction-loan-info.html" (http://... [Pingback]
"http://9ulbd-free-movies.cn/69482018/rental-tool-auger.html" (http://9ulbd-free... [Pingback]
"http://9uliw-free-movies.cn/53454437/free-hacker-v1-game.html" (http://9uliw-fr... [Pingback]
"http://9ulij-free-movies.cn/89848083/index.html" (http://9ulij-free-movies.cn/8... [Pingback]
"http://9ulga-free-movies.cn/31142898/index.html" (http://9ulga-free-movies.cn/3... [Pingback]
Thursday, March 08, 2007 2:45:52 PM (Hora estándar romance, UTC+01:00)
Estoy compleyamente seguro de que funciona (versión 2.0 ojo) :-)

Igual es otra cosa que se te escapa.

Saludos

JM.
Thursday, May 10, 2007 6:33:56 PM (Hora de verano romance, UTC+02:00)
Hola:

Cuando entras por primera vez en una página ASP.NET "sabe" que no es un postback y por lo tanto no recupera el ViewState porque supuestamente no hay nada que recuperar. Es el funcionamiento normal de una página.

si quisieras recuperar el viewState siempre tendrías que llamar el método privado de la clase base Page llamado LoadAllState() pero tendrías que hacerlo con reflexión y si es privado es por algo, así que yo no haría cosas raras.

Saludos

JM.
Wednesday, May 16, 2007 11:56:32 AM (Hora de verano romance, UTC+02:00)
Pues nada, me iré a freir espárragos y no volveré a publicar nada en el blog, no te fastidia ;-)

En fin Pilarín...

:-(

Saludos

JM.
Tuesday, December 11, 2007 2:57:40 PM (Hora estándar romance, UTC+01:00)
Hi!
How can i recover the values of a control of a page with this class?
Thursday, March 20, 2008 7:12:57 PM (Hora estándar romance, UTC+01:00)
Hola Jose soy nuevo en esto de asp net pero si tengo ciertos conceptos básicos de una página web, yo tengo el problema al levantar varias popup en la cual recojo información y la traiga para llenar ciertos campos del formulario, sucede que como ya tengo datos en algunos textbox que completan el formulario como lo manda a recargar todo se destruye e incluso el viewsate de la pagina pero con el ejemplo que posteaste creia que heredando de heredando de esta clase automaticamente me dejaria los valores de los tex del formulario intacto pero no es asì, se pierden y no se si me falta algo o estoy haciendo algo mal.

Te agredecerìa que me contestes.

Atte,

Félix
Félix
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, i, strike, strong, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview
Copyright © 2008 José Manuel Alarcón Aguín. All rights reserved.