Home All Groups Group Topic Archive Search About
Author
19 Jan 2006 1:40 AM
Andrew Chalk
If I update the background color of an asp.net control (e.g. a TableCell)
from client-side javascript, how do I read that change from asp.net
server-side code (e.gf. in C#)?

Many thanks.

Author
19 Jan 2006 1:50 AM
Steven Nagy
Make javascript also assign the new colour value to a hidden input.
Then, you can get the hidden input's value from Request.Querystring or
Request.Form (whichever you are using).

This is just one way. Might not be so useful if you want to edit many
cells on one screen.
Author
19 Jan 2006 4:28 AM
Andrew Chalk
Thanks to you and Nicholas. I'll give that a try.

- Andrew

Show quoteHide quote
"Steven Nagy" <learndot***@hotmail.com> wrote in message
news:1137635459.128671.174870@g43g2000cwa.googlegroups.com...
> Make javascript also assign the new colour value to a hidden input.
> Then, you can get the hidden input's value from Request.Querystring or
> Request.Form (whichever you are using).
>
> This is just one way. Might not be so useful if you want to edit many
> cells on one screen.
>
Author
19 Jan 2006 2:02 AM
Nicholas Paldino [.NET/C# MVP]
Andrew,

    You are going to have to have the javascript set something in a hidden
input field in the form that your ASP.NET page can read on the server side.

    Hope this helps.

--
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard.caspershouse.com


Show quoteHide quote
"Andrew Chalk" <ach***@magnacartasoftware.com> wrote in message
news:ur%23YilJHGHA.3752@TK2MSFTNGP11.phx.gbl...
> If I update the background color of an asp.net control (e.g. a TableCell)
> from client-side javascript, how do I read that change from asp.net
> server-side code (e.gf. in C#)?
>
> Many thanks.
>