<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectDept.aspx.cs" Inherits="helpdesk.helpdesk.SelectDept" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../JavaScript/jquery-1.9.1.min.js"></script>
    <style>
        a{ text-decoration:underline; display:inline-block; margin-right:10px; color:#4516f0; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin:20px; font-size:13px;">

        <asp:Repeater runat="server" ID="rpt_dept">

            <ItemTemplate>
                <a class="dept" href="###" ><%#Eval("dept")%></a>
            </ItemTemplate>
        </asp:Repeater>
    
    </div>


        <script>
            $(".dept").click(
                function ()
                {
                    var _cnt = $(this).html().trim();
                    parent.document.getElementById("txt_dept").value = _cnt;
                    parent.layer.closeAll();



                }
                );

        </script>

    </form>
</body>
</html>
