To my understanding, once I define these ones in the .aspx then the
other place to define these functions would be in the code behind
page. For instance one of the functions of these is defined as below
in the code behind. Defining like this is what I think delcaring? Is
not the case? Or do I have put these ones in some other places
of .aspx and codebehind pages?

Protected Function LoadTitles() As DataTable

            Try
                Dim TitleDataset As ADODatasets302.TitleDataset
                Dim Title As New AODNETMiscellaneous.Business.Title

                TitleDataset = Title.TitleDataset
                Return TitleDataset.Title
            Catch ex As Exception
                Throw
            Finally
            End Try

        End Function

Thanks,

-L
On Jan 30, 1:06 am, Cerebrus <[email protected]> wrote:
> Where are the functions "LoadStates", "LoadSuffixes" etc. declared ?
>
> On Jan 30, 9:37 am, Learner <[email protected]> wrote:
>
>
>
> > HI,
>
> >   I have template column in my DataGrid
>
> > <asp:TemplateColumn HeaderText="Title" FooterText="Title">
> >                                                                             
> >     <HeaderStyle Font-Bold="True" HorizontalAlign="Center"></
> > HeaderStyle>
> >                                                                             
> >     <FooterStyle Font-Bold="True" />
> >                                                                             
> >     <ItemStyle Width="50px" CssClass="SFGridItem"
> > VerticalAlign="Bottom"></ItemStyle>
> >                                                                             
> >     <ItemTemplate>
> >                                                                             
> >             <asp:Label id="lblTitle" runat="server"
> > CssClass="SFGridItem" width="50px" Text= '<%# DataBinder.Eval
> > (Container.DataItem, "Title") %>' />
> >                                                                             
> >     </ItemTemplate>
> >                                                                             
> >     <EditItemTemplate>
> >                                                                             
> >             <asp:DropDownList id="drpTitle" runat="server"
> > CssClass="SFGridItem" Width="50px" DataSource="<%# LoadTitles() %>"
> > DataMember="Title" DataTextField="Title" DataValueField="TitleID">
> >                                                                             
> >             </asp:DropDownList>
> >                                                                             
> >     </EditItemTemplate>
> >                                                                         
> > </asp:TemplateColumn>
>
> > I have two other Template columns like this with DataSource=LoadStates
> > () and DataSource=LoadSuffixes(). I couldn't figure out what is wrong
> > with these columns but I get the below errors
>
> > Error   1       Name 'LoadTitles' is not declared.      test.aspx       1   
> >     1
> > Error   2       Name 'LoadSuffixes' is not declared.    test.aspx       1   
> >     1
> > Error   3       Name 'LoadStates' is not declared.      Test.aspx       1   
> >     1
>
> > All the remaining columns are just fine. These errors are not letting
> > me run the page.I also declared these three functions in the code
> > behind page so chance of not decalring them. But not sure if some
> > other error may be causing this 'not declared' error to display.
>
> > Thanks in advance.
>
> > -L- Hide quoted text -
>
> - Show quoted text -

Reply via email to