|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Updating component attributesIf 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. 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. 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. > 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. -- Show quoteHide quote- Nicholas Paldino [.NET/C# MVP] - mvp@spam.guard.caspershouse.com "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. >
"Protect" or Disable Editing of A Webcontrol
ViewState properties and mapped properties don't work well togethe How do I create a custom webcontrol that can have xml inside it's tag? cache and detailsview, all data controls problem Custom TreeNode for asp.net 2.0 treeview control Menu Control - Templates What is the code for file upload? Multiple onclick Events 2.0 DatagridView and Buttons Calendar control to display image on Mondays |
|||||||||||||||||||||||