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

RadDatePicker OnSelectedDateChanged event error

1 Answer 145 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 26 Sep 2011, 07:50 AM
(fixed) See next post


I have a RadDatePicker on my page that is declared like this...

<telerik:RadDatePicker OnSelectedDateChanged="radDateStart_OnSelectedDateChanged" AutoPostBack="true"  Skin="CKCRadSkin" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" ID="radDateStart" runat="server" />

The OnSelectedDateChanged event is in the code behind (of course). It looks like this.

        private void radDateStart_OnSelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
        {
 
            }

However, when I try to run this page I get this very confusing error.


Compiler Error Message: CS1061: 'ASP.location_addeditactivity_aspx' does not contain a definition for 'radDateStart_OnSelectedDateChanged' and no extension method 'radDateStart_OnSelectedDateChanged' accepting a first argument of type 'ASP.location_addeditactivity_aspx' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 104:                                <tr>
Line 105:                                    <td  style="padding: 0 0 0 0;">
Line 106:                                        <telerik:RadDatePicker OnSelectedDateChanged="radDateStart_OnSelectedDateChanged" AutoPostBack="true"  Skin="CKCRadSkin" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" ID="radDateStart" runat="server" />
Line 107:


What gives? Any idea what it going on here?

Cheers

Brad




1 Answer, 1 is accepted

Sort by
0
Brad
Top achievements
Rank 1
answered on 26 Sep 2011, 08:00 AM
This was a PICNIC.. Problem in Chair Not In Computer

I changed this

        private void radDateStart_OnSelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
        {
}

to this..

protected void radDateStart_OnSelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
{

Sorted.

Sorry to bother you all .

Brad
Tags
General Discussions
Asked by
Brad
Top achievements
Rank 1
Answers by
Brad
Top achievements
Rank 1
Share this question
or