Home All Groups Group Topic Archive Search About
Author
6 Apr 2005 1:22 PM
Mike
Hi,
I'm developing a Composite Control that have a <div>, inside a Table, that
can be moved by the user with the limits of the table. What I want, is that
when postback raised the <div> maintain the position seted by the user.
Somebody know how can i do that?
Thanks

Author
6 Apr 2005 1:28 PM
Teemu Keiski
Hi,

you need to store that position values (coordinates whatsoever) into
something, like hidden input fields, which you read on postback and set back
to the DIV. How you read the values from the DIV depends how you have
allowed user to change the position.

--
Teemu Keiski
ASP.NET MVP, Finland

Show quoteHide quote
"Mike" <no@spam.com> wrote in message
news:OvxltuqOFHA.3076@tk2msftngp13.phx.gbl...
> Hi,
> I'm developing a Composite Control that have a <div>, inside a Table, that
> can be moved by the user with the limits of the table. What I want, is
> that
> when postback raised the <div> maintain the position seted by the user.
> Somebody know how can i do that?
> Thanks
>
>
Author
6 Apr 2005 2:09 PM
Mike
Thanks, i did it. But how can i do to get the value of the input hidden
before build de control?

Thanks


Show quoteHide quote
"Teemu Keiski" <jot***@aspalliance.com> wrote in message
news:Os$i6xqOFHA.3076@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> you need to store that position values (coordinates whatsoever) into
> something, like hidden input fields, which you read on postback and set
back
> to the DIV. How you read the values from the DIV depends how you have
> allowed user to change the position.
>
> --
> Teemu Keiski
> ASP.NET MVP, Finland
>
> "Mike" <no@spam.com> wrote in message
> news:OvxltuqOFHA.3076@tk2msftngp13.phx.gbl...
> > Hi,
> > I'm developing a Composite Control that have a <div>, inside a Table,
that
> > can be moved by the user with the limits of the table. What I want, is
> > that
> > when postback raised the <div> maintain the position seted by the user.
> > Somebody know how can i do that?
> > Thanks
> >
> >
>
>
Author
7 Apr 2005 6:52 PM
Teemu Keiski
With Request.Form("<name of the hidden filed here>") is one way or like

Dim postedValue As String=Hidden1.Value
'Use the value here...
'...

where Hidden1 is ID of your hidden field control (assumes that it is
declared also with runat="server", otherwise you need to take it from
Request.Form collection)

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU


Show quoteHide quote
"Mike" <no@spam.com> wrote in message
news:etyGkIrOFHA.2252@TK2MSFTNGP15.phx.gbl...
> Thanks, i did it. But how can i do to get the value of the input hidden
> before build de control?
>
> Thanks
>
>
> "Teemu Keiski" <jot***@aspalliance.com> wrote in message
> news:Os$i6xqOFHA.3076@TK2MSFTNGP14.phx.gbl...
>> Hi,
>>
>> you need to store that position values (coordinates whatsoever) into
>> something, like hidden input fields, which you read on postback and set
> back
>> to the DIV. How you read the values from the DIV depends how you have
>> allowed user to change the position.
>>
>> --
>> Teemu Keiski
>> ASP.NET MVP, Finland
>>
>> "Mike" <no@spam.com> wrote in message
>> news:OvxltuqOFHA.3076@tk2msftngp13.phx.gbl...
>> > Hi,
>> > I'm developing a Composite Control that have a <div>, inside a Table,
> that
>> > can be moved by the user with the limits of the table. What I want, is
>> > that
>> > when postback raised the <div> maintain the position seted by the user.
>> > Somebody know how can i do that?
>> > Thanks
>> >
>> >
>>
>>
>
>