Posted
on Jan 6, 2012
(permalink)
Hi I am facing binding textbox with a default value in EditItemtemplate.
I am pre-populating the text box with my value. it works fine. but when i update, it does not update in the database. I believe its because i am not binding the text box. Can you help me ?
Here is the source,
<EditItemTemplate>
<telerik:RadTextBox runat="server" ID="tbCreatedbyUsr" Width="40px" Text='<%# Context.User.Identity.Name%>' >
</telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
here are the update paraments,
<UpdateParameters>
<asp:Parameter Name="UnixUserName" Type="String" />
<asp:Parameter Name="Status" Type="Int16 " />
<asp:Parameter Name="CreatedByUserName" Type="String" />
<asp:Parameter Name="BUID" Type="Int32" />
</UpdateParameters>