Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have this following aspx page
ASP.NET
<asp:Content ID="TickerDetails" ContentPlaceHolderID="NestedTickerDetails" runat="server">
    <uc6:NewsTicker ID="NewsTicker"  runat="server" />
</asp:Content>
<asp:Content ID="cPageContent" ContentPlaceHolderID="NestedPageContent" Runat="Server">
    <uc1:DashboardControl ID="DashboardControl"  runat="server" />
</asp:Content>
<asp:Content ID="cLatestDocuments" ContentPlaceHolderID="NestedLatestDocuments" runat="server">
    <uc2:RecentRepositoryDocumentsControl ID="RecentRepositoryDocumentsControl"  runat="server" />
</asp:Content>
<asp:Content ID="cLatestPages" ContentPlaceHolderID="NestedLatestPages" runat="server">
    <uc3:RecentRepositoryPagesControl ID="RecentRepositoryPagesControl"  runat="server" />
</asp:Content>
<asp:Content ID="cFavPages" ContentPlaceHolderID="NestedFavouritePages" runat="server">
    <uc4:FavouritePagesControl ID="FavouritePagesControl"  runat="server" />
</asp:Content>

<asp:Content ID="cLiveResponses" ContentPlaceHolderID="NestedLiveResponses" runat="server">
    <uc5:LiveResponses id="LiveResponsesControl"  runat="server" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="NestedHtmlBodyBottom" Runat="Server"></asp:Content>


I have written all the queries to add the data to the database as
C#
internal bool Save(documents.Bll.Repository RepositoryObject, int DocumentRepositoryID, int ApplicationID, string RepositoryName, string Title, string BodyText,string NewsTicker, string Identifier)
        {
            return base.Save(RepositoryObject, "Save", "usp_DocumentRepositorySave",
                new SqlParameter("@DocumentRepositoryID", DocumentRepositoryID),
                new SqlParameter("@ApplicationID", ApplicationID),
                new SqlParameter("@RepositoryName", RepositoryName),
                new SqlParameter("@Title", Title),
                new SqlParameter("@BodyText", BodyText),
                new SqlParameter("@NewsTickerItems",NewsTicker),
                new SqlParameter("@Identifier", Identifier)
                );
        }


In the above query as I add data in the form the data are been added to the database using the following function

HTML
public bool Save(int DocumentRepositoryID, int ApplicationID, string RepositoryName, string Title, string BodyText,string NewsTicker, string Identifier)
       {
           return _dataManager.Save(this, DocumentRepositoryID, ApplicationID, RepositoryName, Title, BodyText, NewsTicker,Identifier);
       }


All details are displaying as I click the save button but except the NewsTicker because I have created a common aspx and aspx.cs file for two pages. The value entered for the NewsTicker is been added but is not displaying. Another point is that the properties for the fields are not been declared, hence I can not call using the property Can anyone help me in fixing this isssue
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900