ok
rexplaning the issue & process
grid , all hiddencontrols are in update panel
1) grid click javascript function gethvalue () initated
with the below line
document.getElementById('<%=gethvalue.ClientID %>').click();
on serverside using sql i get a conditional value say T which is stored in F_Type hidden variable
based on this value i set texbox1.text display block along with a OK button control
texbox1.text is displayed on screen & the user enters any value& clicks OK
the below function is caled on OK client click
i hope i am clear if so i can continue
function Copyvalues2hiddenfields(F_Type)
{
// i get the value of F_type as T
if (F_Type == '') //first time
{
return;
}
//but F_FieldName' 'F_Value are blank
var F_FieldName = document.getElementById('F_FieldName');
var F_Value = document.getElementById('F_Value');
var F_TypeObj = document.getElementById('F_Type');
F_TypeObj.nodeValue = F_Type;
F_FieldName.nodeValue = document.getElementById('H_GRIDCELL').value;
if (F_Type == "T") { //get values from textbox control
var txtBoxVal = document.getElementById("texbox1").nodeValue;
alert(txtBoxVal);
F_Value.nodeValue = txtBoxVal;
}
return;
}