Home All Groups Group Topic Archive Search About

custom control client values gone with postback

Author
25 Nov 2005 3:48 PM
Pipo
Hi,

I'm trying to make my own web custom control.
I've made a control with 2 textboxes and 1 dropdownlist.
But when I enter values in them and get a postback the values are gone.
How can I hold the values typed in by the client??
(for processing on the server but also to display them back)

tia

Author
25 Nov 2005 3:57 PM
Edwin Knoppert
could this be an enableviewstate=false issue?


Show quoteHide quote
"Pipo" <P***@home.com> schreef in bericht
news:Oee8red8FHA.2176@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> I'm trying to make my own web custom control.
> I've made a control with 2 textboxes and 1 dropdownlist.
> But when I enter values in them and get a postback the values are gone.
> How can I hold the values typed in by the client??
> (for processing on the server but also to display them back)
>
> tia
>
Are all your drivers up to date? click for free checkup

Author
25 Nov 2005 5:17 PM
Pipo
Nope...all the controls have viewstate enabled!!!

Show quoteHide quote
"Edwin Knoppert" <n***@hellobasic.com> schreef in bericht
news:438734a9$0$2339$ba620dc5@text.nova.planet.nl...
> could this be an enableviewstate=false issue?
>
>
> "Pipo" <P***@home.com> schreef in bericht
> news:Oee8red8FHA.2176@TK2MSFTNGP14.phx.gbl...
>> Hi,
>>
>> I'm trying to make my own web custom control.
>> I've made a control with 2 textboxes and 1 dropdownlist.
>> But when I enter values in them and get a postback the values are gone.
>> How can I hold the values typed in by the client??
>> (for processing on the server but also to display them back)
>>
>> tia
>>
>
>
Author
25 Nov 2005 5:43 PM
Edwin Knoppert
I have a similar problem with a dropdownlist.
it is populated in the page_load, the selected item get's lost.
So i obtain the value from the request.form stuff.
(I want it this way)


Show quoteHide quote
"Pipo" <P***@home.com> schreef in bericht
news:ODgDbQe8FHA.3660@TK2MSFTNGP09.phx.gbl...
> Nope...all the controls have viewstate enabled!!!
>
> "Edwin Knoppert" <n***@hellobasic.com> schreef in bericht
> news:438734a9$0$2339$ba620dc5@text.nova.planet.nl...
>> could this be an enableviewstate=false issue?
>>
>>
>> "Pipo" <P***@home.com> schreef in bericht
>> news:Oee8red8FHA.2176@TK2MSFTNGP14.phx.gbl...
>>> Hi,
>>>
>>> I'm trying to make my own web custom control.
>>> I've made a control with 2 textboxes and 1 dropdownlist.
>>> But when I enter values in them and get a postback the values are gone.
>>> How can I hold the values typed in by the client??
>>> (for processing on the server but also to display them back)
>>>
>>> tia
>>>
>>
>>
>
>

Bookmark and Share