|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
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 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. -- Show quoteHide quoteTeemu 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 > > 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 > > > > > > 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) -- Show quoteHide quoteTeemu Keiski ASP.NET MVP, AspInsider Finland, EU "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 >> > >> > >> >> > >
) expected erro when trying to create a popup
click on TreeNode Which event? Capturing event from other custom control within another custom control Disable ButtonColumn button control through code Problem programmatically creating tabstrip webcontrol dynamic control event not firing DataList inside a datalist. Free TreeView Controls ? Textbox interpreting html tags (like the label) |
|||||||||||||||||||||||