SelectUserFormData.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:2k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectUserFormData.aspx.cs" Inherits="SelectForm_SelectUserFormData" %>
  2. <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <html>
  5. <head id="Head1" runat="server">
  6.     <link href="../css/main.css" type="text/css" rel="stylesheet">
  7. </head>
  8. <script>
  9. function RtValue(rtstr)
  10. {
  11. window.returnValue=rtstr;
  12. window.close()
  13. }
  14.  
  15. </script>
  16. <script language =javascript type="text/javascript">  
  17.    function OnTreeNodeChecked()   
  18.      {        
  19.               var Obj=event.srcElement; 
  20.               if(Obj.tagName == "A" || Obj.tagName== "a")    
  21.                    {          
  22.                       alert(Obj.id);//访问被点击结点的值,同样可以通过Obj.innerText设置它的值   
  23.                       window.returnValue=Obj.id; 
  24.                       window.close()
  25.                       return;
  26.                     }   
  27.       }  
  28.                                </script>
  29. <body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
  30. <form runat="server" id="fm1">
  31.     <table border="0" cellpadding="0" cellspacing="0" style="width: 234px; height: 221px;" >
  32.         <tr>
  33.              <td style="width: 100%" valign="top">  
  34.                    <DIV style="OVERFLOW: auto; width:232px;  HEIGHT: 316px;  " id="z"    align=center>
  35.                 <asp:GridView ID="GridView1" CssClass="usertableborder" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" Width="87%">
  36.                      <Columns>
  37.                          <asp:BoundField DataField="UserId" HeaderText="用户名" DataFormatString="&lt;a style=quot;cursor:pointer quot;  onclick=&quot;RtValue('{0}')&quot;&gt;{0}&lt;/a&gt;" HtmlEncode="False">
  38.                              <HeaderStyle Width="200px" />
  39.                              <ItemStyle HorizontalAlign="Center" />
  40.                          </asp:BoundField>
  41.                   
  42.                      </Columns>
  43.                 <RowStyle CssClass="usertablerow2" />
  44.                 <AlternatingRowStyle CssClass="usertablerow1" />
  45.                  </asp:GridView>
  46. </DIV>
  47.                   &nbsp;<webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="20" OnPageChanging="AspNetPager1_PageChanging" NumericButtonCount="5">
  48.                 </webdiyer:AspNetPager>  
  49.                </td>
  50.         </tr>
  51.     </table>
  52.     <br>
  53.     </form>
  54.     
  55. </body>
  56. </html>