aspx page and java script RRS feed

  • Question

  • Hi,

    My asp.net application is based on master page. One of the child page has html label (myLabel), dropdownlist (ddlFS) and checkbox (chkBill). When child page loads, I need to check the status of checkbox and change the value of label. How do i do that. Since it is child page, I do not have body tag. I can't do this on server side becasue it is html label.

    HTML in aspx

     <asp:CheckBox ID="chkBill" runat="server" Checked="true" Text="Bill" CssClass="fixedinput" TextAlign="Left" onclick="ToggleValidator(this);" />

    <p class="clear">
                <label id="myLabel" for="<%=ddlFS.ClientID %>" class="fixeddata">Fee Schedule <img alt="Required!" src="../../Image/asterisk.gif" 
                    style="height:15px; width:15px;" />:</label>
                <asp:DropDownList ID="ddlFS" runat="server" CssClass="float-left" AppendDataBoundItems="true" DataTextField="IasScheduleName" DataValueField="IasScheduleID" >
                    <asp:ListItem Value="-1">-- None Selected --</asp:ListItem>

    I have controls like this. In the back end chkBill is set to checked or unchecked based on value get from database. 

    How can I set html label value to something else than gets displayed when page loads.

    THank You,

    Friday, May 29, 2020 5:27 PM

All replies

  • Hello,

    This forum is strictly C#, use the following site for your question https://forums.asp.net/

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Friday, May 29, 2020 6:11 PM