SelectUserFormData.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:2k
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectUserFormData.aspx.cs" Inherits="SelectForm_SelectUserFormData" %>
- <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head id="Head1" runat="server">
- <link href="../css/main.css" type="text/css" rel="stylesheet">
- </head>
- <script>
- function RtValue(rtstr)
- {
- window.returnValue=rtstr;
- window.close()
- }
-
- </script>
- <script language =javascript type="text/javascript">
- function OnTreeNodeChecked()
- {
- var Obj=event.srcElement;
- if(Obj.tagName == "A" || Obj.tagName== "a")
- {
- alert(Obj.id);//访问被点击结点的值,同样可以通过Obj.innerText设置它的值
- window.returnValue=Obj.id;
- window.close()
- return;
- }
- }
- </script>
- <body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
- <form runat="server" id="fm1">
- <table border="0" cellpadding="0" cellspacing="0" style="width: 234px; height: 221px;" >
- <tr>
- <td style="width: 100%" valign="top">
- <DIV style="OVERFLOW: auto; width:232px; HEIGHT: 316px; " id="z" align=center>
- <asp:GridView ID="GridView1" CssClass="usertableborder" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" Width="87%">
- <Columns>
- <asp:BoundField DataField="UserId" HeaderText="用户名" DataFormatString="<a style=quot;cursor:pointer quot; onclick="RtValue('{0}')">{0}</a>" HtmlEncode="False">
- <HeaderStyle Width="200px" />
- <ItemStyle HorizontalAlign="Center" />
- </asp:BoundField>
-
- </Columns>
- <RowStyle CssClass="usertablerow2" />
- <AlternatingRowStyle CssClass="usertablerow1" />
- </asp:GridView>
- </DIV>
- <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="20" OnPageChanging="AspNetPager1_PageChanging" NumericButtonCount="5">
- </webdiyer:AspNetPager>
- </td>
- </tr>
- </table>
- <br>
- </form>
-
- </body>
- </html>