问题描述
我正在尝试将Telerik组件集成到我的ASP.NET应用程序中.
我使用了telerik的ASP.NET AJAX组件.我遇到以下问题:
每当我发布表单时,组件结果都为null,而当我使用标准ASP.NET组件时,则得到期望的结果:
这是我的代码:
当我单击第三个选项卡中的asp:Button时,应发布表单,但我得到的值如下:
RadNumericTextBox13.Value = null
RadTextBox3.Text ="
RadTextBox4.Text ="
这是我的代码:
****************************************************** ******************************************************
I am trying to integrate telerik components in my ASP.NET application.
I have used ASP.NET AJAX components from telerik. I have encountered the following issue:
Whenever i post the form the components result as null whereas when i use standard ASP.NET components i get the desired results:
Here is my code:
When i click an asp:Button in the third tab the form should be posted but i get the values as following:
RadNumericTextBox13.Value = null
RadTextBox3.Text=""
RadTextBox4.Text=""
Here is my code:
***************************************************************************************************
protected void Button1_Click(object sender, EventArgs e)
{
PayRollDataContext pr2 = new PayRollDataContext();
Bounce bp = new Bounce();
bp.Payroll_ID = current;
bp.Amount = Convert.ToDecimal(RadNumericTextBox13.Value);
bp.Description = RadTextBox3.Text;
bp.Time = RadTextBox4.Text;
pr2.Bounces.InsertOnSubmit(bp);
pr2.SubmitChanges();
RadGrid1.Rebind();
this.Page.DataBind();
}
********************************************************************************************************
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" CssClass="tabStrip"
SelectedIndex="0" Skin="Black" MultiPageID="RadMultiPage1"
ontabclick="RadTabStrip1_TabClick1">
<tabs>
<telerik:RadTab Text="General" Selected="True">
</telerik:RadTab>
<telerik:RadTab Text="Decuts">
</telerik:RadTab>
<telerik:RadTab Text="Bounce">
</telerik:RadTab>
<telerik:RadTab Text="Loans">
</telerik:RadTab>
</tabs>
</telerik:RadTabStrip>
//***************************************************************
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Add"/>
//*************************************************************
<form runat="server" id="mainForm" method="post">
请帮助
Please Help
推荐答案
这篇关于Telerik ASP.NET问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!