Link to home
Start Free TrialLog in
Avatar of lynnton
lynnton

asked on

Error object is not a member of 'ASP.shiftent_aspx'.

Hi,

How can we resolve this error, there's a table and 7 drop down list box in each column.

we need to each ddl to have change events(Sub ddlday1_SelectedIndexChanged(sender As Object, e As EventArgs)).



Thanks


Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'ddlday2_SelectedIndexChanged' is not a member of 'ASP.shiftent_aspx'.
Source Error:
Line 393:                    </td>
Line 394:                    <td>
Line 395:                        <asp:DropDownList id="ddlday3" runat="server" OnSelectedIndexChanged="ddlday2_SelectedIndexChanged" Width="80px" Font-Names="Verdana" Font-Size="XX-Small"></asp:DropDownList>
Line 396:                    </td>
Line 397:                    <td>
Source File: c:\inetpub\wwwroot\shiftent.aspx    Line: 395


                <tr>
                    <td>
                        <font face="Verdana" size="2">Start</font></td>
                    <td>
                        <div align="left">
                            <asp:DropDownList id="ddlday1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlday1_SelectedIndexChanged" Width="80px" Font-Names="Verdana" Font-Size="XX-Small"></asp:DropDownList>
                        </div>
                    </td>
                    <td>
                        <asp:DropDownList id="ddlday2" runat="server" OnSelectedIndexChanged="ddlday1_SelectedIndexChanged" Width="80px" Font-Names="Verdana" Font-Size="XX-Small"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:DropDownList id="ddlday3" runat="server" OnSelectedIndexChanged="ddlday2_SelectedIndexChanged" Width="80px" Font-Names="Verdana" Font-Size="XX-Small"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:DropDownList id="ddlday4" runat="server" OnSelectedIndexChanged="ddlday3_SelectedIndexChanged" Width="80px" Font-Names="Verdana" Font-Size="XX-Small"></asp:DropDownList>
                    </td>
                    <td colspan="2">
                        <asp:DropDownList id="ddlday5" runat="server" OnSelectedIndexChanged="ddlday4_SelectedIndexChanged" Width="80px" Font-Names="Verdana" Font-Size="XX-Small"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:DropDownList id="ddlday6" runat="server" OnSelectedIndexChanged="ddlday5_SelectedIndexChanged" Width="80px" Font-Names="Verdana" Font-Size="XX-Small"></asp:DropDownList>
                    </td>
                    <td colspan="2">
                        <asp:DropDownList id="ddlday7" runat="server" OnSelectedIndexChanged="ddlday6_SelectedIndexChanged" Width="80px" Font-Names="Verdana" Font-Size="XX-Small"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
Avatar of b1xml2
b1xml2
Flag of Australia image

That method ddlday2_SelectedIndexChanged has to be marked as public

Public Sub ddlday2_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
'...

End Sub
ASKER CERTIFIED SOLUTION
Avatar of b1xml2
b1xml2
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lynnton
lynnton

ASKER

b1xml2,

Thanks so much for the information.

Quick question:
How can we format the result to 00:00:00; it's currently showing 9:00:00 AM.

        txtend1.text=timevalue(dateadd("h",9,ddlday1.selecteditem.text))