Hi,
I am unable to get the value of infragistics WebtextEditor on server side.
Aspx:
<td style="width:35%">
<ig:WebTextEditor ID="igtxtDeptId" runat="server" Width="200px" Enabled = "true">
</ig:WebTextEditor></td>
ASPX.CS
Department input = new Department();
input.DeptId = igtxtDeptId.Text.ToString().Trim(); // It returns null
But the value is there on the screen when seen in UI.
Also i have tried,
input.DeptId = Request.Form[igtxtDeptId.ClientID].ToString().Trim();
input.DeptId = Request[igtxtDeptId.ClientID].ToString().Trim();
NOTHING WORKED.
Kindly help me out.
Thanks,
Parthiban Sekar
Hi Parthiban,
How are you filling the value of WebTextEditors on client. If you are typing into the editors then yes the values will be available on the server. If you are using javascript like
document.getElementById('xxx').value = val;
Then this value will not be available on server. Instead of that use
$find('xxx').set_text(val).
This will make your value available on the server side as well.
Hope this helps.
Regards,Venkatesh