aspx page and java script

  • Thread starter Thread starter Spunny
  • Start date Start date
S

Spunny

Guest
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>
</asp:DropDownList>
</p>

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,

Continue reading...
 
Back
Top