<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DepartMentType.ascx.cs"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Controls.FieldControl.DepartMent" %>
<div class="DivWordBreak">
    <asp:DropDownList ID="RadlDepartMentList"  runat="server" />
    <div style="display:none">
        <asp:TextBox ID="TxtDepartID" runat="server"></asp:TextBox>
    </div>
</div>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#<%=TxtDepartID.ClientID %>").val("0");
            $("#<%=RadlDepartMentList.ClientID %>").change(function () {
                var selectval
                selectval = $("#<%=RadlDepartMentList.ClientID %>").find('option:selected').val();
                $("#<%=TxtDepartID.ClientID %> ").val(selectval);
            });
        });

    </script>

