我有一个小问题,我这里有一个 RadTextBox,它应该在数据库中接收浮点值,日期类型也是浮点数,所以现在如果我想绑定 RadTextBox,总是会出现这个奇怪的错误
错误 4 无法将类型“double”隐式转换为“Telerik.Web.UI.RadTextBox”
我需要解析还是其他?
我的代码
private void bindData()
{
this.cbActive.Checked = this.paramBR.GetActive();
this.rtbCode.Text = this.paramBR.Code;
this.rtbDescription.Text = this.paramBR.Description;
this.rtbHourlyRate = this.paramBR.HourlyRate;
}
BillingRate br = ctx.BillingRate.Where(yx => yx.BillingRateId == this.paramBR.BillingRateId).FirstOrDefault();
if (br == null)
{
br = new BillingRate();
newEntity = true;
}
br.Code = this.rtbCode.Text;
br.Description = this.rtbDescription.Text;
br.SetActive(this.cbActive.Checked);
br.HourlyRate = this.rtbHourlyRate.Text;
br.CreatedDate = DateTime.Now;
br.CreatedBy = this.User.UserId;