This is a migrated thread and some comments may be shown as answers.

Form on Post Returns Null Values

1 Answer 79 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Aamir
Top achievements
Rank 1
Aamir asked on 20 Jul 2010, 10:15 PM
Hello,
I am a newbie in Telerik products. I am using the trial version. Following is my problem stated:

I am using a RadTabStrip, RadMultipage, LINQ and RadInputboxes like RadTextBox, RadNumericTextBox

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">

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 26 Jul 2010, 08:50 AM
Hi Aamir,

The Telerik controls as well as the asp button should be placed inside <form> tag. If this doesn't help, please open a support ticket and send us a simple runnable page there.

Best regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
Aamir
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or