S
Server Control
Hi,
I have a datagrid(within a user control) that has label controls. I
have added hidden fields in the datagrid alongwitht the label control.
I do some client side editing with javascript and somehow want to reset
the label value through javascript? I could grab the id of the row that
had the label in it (now converted to a span at client side) by
accessing the corresponding hidden field with it.
var hdnLabel = rowHandle.getElementsByTagName("input");
for(var i = 0 ; i < hdnLabel.length ; i++)
{
if(hdnLabel.type == "hidden")
{
hdnLabel.value = "Some Value";
}
}
After setting this value, postback happens. Now how do i somehow
associate the value of this particular hidden variable with the label
that I want to reset at client side. At server side, i am unable to
find a wayto identify my hidden variable(since there is one per row
with clientIDs) say through Request.Form[????]. And if i grab that
value somehow where do i specify this value to my label??
I am facing a smilar problem with my dropdown in datagrid. I add List
items to it through javascript...and now when post back happens, i want
to show the items that were added as well??
Request for an urgent reply!!!!
Thanks in advance
I have a datagrid(within a user control) that has label controls. I
have added hidden fields in the datagrid alongwitht the label control.
I do some client side editing with javascript and somehow want to reset
the label value through javascript? I could grab the id of the row that
had the label in it (now converted to a span at client side) by
accessing the corresponding hidden field with it.
var hdnLabel = rowHandle.getElementsByTagName("input");
for(var i = 0 ; i < hdnLabel.length ; i++)
{
if(hdnLabel.type == "hidden")
{
hdnLabel.value = "Some Value";
}
}
After setting this value, postback happens. Now how do i somehow
associate the value of this particular hidden variable with the label
that I want to reset at client side. At server side, i am unable to
find a wayto identify my hidden variable(since there is one per row
with clientIDs) say through Request.Form[????]. And if i grab that
value somehow where do i specify this value to my label??
I am facing a smilar problem with my dropdown in datagrid. I add List
items to it through javascript...and now when post back happens, i want
to show the items that were added as well??
Request for an urgent reply!!!!
Thanks in advance