Home > Net >  How to add a login validation file management?
How to add a login validation file management?

Time:07-21

The  & lt; % & # 64; Page Language & # 61; & # 34; C # & # 34; AutoEventWireup & # 61; & # 34; True & # 34; CodeBehind & # 61; & # 34; File_manager. Aspx. Cs & # 34; Inherits the & # 61; & # 34; WebFile. Simple. _1 & # 34; % & gt; File management & lt;/title></head><body><The form of id & # 61; & # 34; Form1 & # 34; Runat & # 61; & # 34; Server & # 34;><Div>Your current location is & # xff1a; <Asp: Label ID & # 61; & # 34; Lbl_path & # 34; Runat & # 61; & # 34; Server & # 34;> </asp: Label><Br/& gt;Please enter the destination address & # xff1a; <Br/& gt;<Asp: TextBox ID & # 61; & # 34; Txt_path & # 34; Runat & # 61; & # 34; Server & # 34; Width & # 61; & # 34; 500 px & # 34;> </asp: TextBox><Asp: Button ID & # 61; & # 34; Btn_to & # 34; Runat & # 61; & # 34; Server & # 34; The OnClick & # 61; & # 34; Btn_to_Click & # 34; The Text & # 61; & # 34; Go to the & # 34;Width & # 61; & # 34; 84 px & # 34;/><Br/& gt;Go to the & # xff1a; <Br/& gt;<Asp: DropDownList ID & # 61; & # 34; Ddl_path & # 34; Runat & # 61; & # 34; Server & # 34; AppendDataBoundItems & # 61; & # 34; True & # 34;AutoPostBack & # 61; & # 34; True & # 34; OnSelectedIndexChanged & # 61; & # 34; Ddl_path_SelectedIndexChanged & # 34;Width & # 61; & # 34; 508 px & # 34;></asp: DropDownList><Br/& gt;<Asp: Button ID & # 61; & # 34; Btn_forward & # 34; Runat & # 61; & # 34; Server & # 34; The OnClick & # 61; & # 34; Btn_forward_Click & # 34;The Text & # 61; & # 34; On a layer of directory & # 34; Width & # 61; & # 34; 115 px & # 34;/><Br/& gt;<Br/& gt;<Asp: the GridView ID & # 61; & # 34; Gv_File & # 34; Runat & # 61; & # 34; Server & # 34; AutoGenerateColumns & # 61; & # 34; False & # 34;DataKeyNames & # 61; & # 34; F_ID F_name, F_exp & # 34; OnRowCommand & # 61; & # 34; Gv_File_RowCommand & # 34;OnRowDataBound & # 61; & # 34; Gv_File_RowDataBound & # 34; OnRowDeleting & # 61; & # 34; Gv_File_RowDeleting & # 34;OnSelectedIndexChanging & # 61; & # 34; Gv_File_SelectedIndexChanging & # 34; CellPadding & # 61; & # 34; 4 & # 34;ForeColor & # 61; & # 34; # 333333 & # 34; GridLines & # 61; & # 34; None & # 34; Height & # 61; & # 34; 224 px & # 34; Width & # 61; & # 34; 693 px & # 34;><RowStyle BackColor & # 61; & # 34; # F7F6F3 & # 34; ForeColor & # 61; & # 34; # 333333 & # 34; Height & # 61; & # 34; 35 px & # 34;/><Columns><Asp: BoundField DataField & # 61; & # 34; F_ID & # 34; The HeaderText & # 61; & # 34; ID & # 34;/><Asp: TemplateField the HeaderText & # 61; & # 34; Name & # 34;><ItemTemplate><Asp: the HyperLink ID & # 61; & # 34; Hlk_name & # 34; Runat & # 61; & # 34; Server & # 34; The Text & # 61; & # 39; <% # Eval (& # 34; F_name & # 34;) % & gt; & # 39;> </asp: HyperLink></ItemTemplate></asp: TemplateField><Asp: TemplateField the HeaderText & # 61; & # 34; Type & # 34;><ItemTemplate><Asp: Label ID & # 61; & # 34; Lb_exp & # 34; Runat & # 61; & # 34; Server & # 34; The Text & # 61; & # 39; <% # Eval (& # 34; F_exp & # 34;) % & gt; & # 39;> </asp: Label></ItemTemplate></asp: TemplateField><Asp: TemplateField the HeaderText & # 61; & # 34; Size & # 34;><ItemTemplate><Asp: the HyperLink ID & # 61; & # 34; Lb_size & # 34; Runat & # 61; & # 34; Server & # 34; The Text & # 61; & # 39; <% # Eval (& # 34; F_size & # 34;) % & gt; & # 39;> </asp: HyperLink></ItemTemplate></asp: TemplateField><Asp: TemplateField the HeaderText & # 61; & # 34; The recent modification date & # 34;><ItemTemplate><Asp: Label ID & # 61; & # 34; Lb_time & # 34; Runat & # 61; & # 34; Server & # 34; The Text & # 61; & # 39; <% # Eval (& # 34; F_time & # 34;) % & gt; & # 39;> </asp: Label></ItemTemplate></asp: TemplateField><Asp: CommandField DeleteText & # 61; & # 34; & lt; Div id & # 61; & quot; De& quot; The onclick & # 61; & quot; JavaScript: return confirm (& # 39; Sure to delete it & # xff1f; & # 39;) & quot; & gt; Delete & amp; lt;/div& gt; & # 34;ShowDeleteButton & # 61; & # 34; True & # 34;/><Asp: ButtonField CommandName & # 61; & # 34; DownLoad & # 34; The Text & # 61; & # 34; Download & # 34;/></Columns><FooterStyle BackColor & # 61; & # 34; # 5 d7b9d & # 34; The Font - Bold & # 61; & # 34; True & # 34; ForeColor & # 61; & # 34; White & # 34;/><PagerStyle BackColor & # 61; & # 34; # 284775 & # 34; ForeColor & # 61; & # 34; White & # 34; HorizontalAlign & # 61; & # 34; Center & # 34;/><SelectedRowStyle BackColor & # 61; & # 34; # E2DED6 & # 34; The Font - Bold & # 61; & # 34; True & # 34; ForeColor & # 61; & # 34; # 333333 & # 34;/><HeaderStyle BackColor & # 61; & # 34; # 5 d7b9d & # 34; The Font - Bold & # 61; & # 34; True & # 34; ForeColor & # 61; & # 34; White & # 34;Height & # 61; & # 34; 20 px & # 34;/><EditRowStyle BackColor & # 61; & # 34; # 999999 & # 34;/><AlternatingRowStyle BackColor & # 61; & # 34; White & # 34; ForeColor & # 61; & # 34; # 284775 & # 34;/></asp: GridView><Br/& gt;<Br/& gt;<Br/& gt;</div></form></body></html></code> </pre><p> file_manager. Aspx. Cs & # xff1a; </p><pre>The <code> using System;Using System. Collections. Generic;Using System. Linq;Using System. The Web;Using System. Web. UI.Using System. Web. UI. WebControls;The namespace WebFile. Simple{Public partial class _1: System. Web. UI. The Page{Protected void Page_Load (object sender, EventArgs e){String F_path;if (! Page. IsPostBack){If (Request. The QueryString [& # 34; F_path & # 34;] The & # 61; The & # 61; Null){F_path & # 61; Server. MapPath (& # 34; . & # 34;);Lbl_path. Text & # 61; F_path;Txt_path. Text & # 61; F_path;Gv_File. The DataSource & # 61; WebDirFile. HardDiskManage. GetFilesTB (F_path);Gv_File. DataBind ();}else{F_path & # 61; Server. UrlDecode (Request. The QueryString [& # 34; F_path & # 34;] );Lbl_path. Text & # 61; F_path;Txt_path. Text & # 61; F_path;Gv_File. The DataSource & # 61; nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull           </div>
          <div class="th_page th_page_color"></div>
          <div class="umCopyright">
            <p>Page link:<a href="/net/113036.html" target="_blank" style="color:#999">https//www.codepudding.com/net/113036.html</a></p>
          </div>
          <div class="detail-arr">
               <div class="detail-arr-left">Prev:<a href='/net/113035.html'>For help, the.net method into PHP</a></div>
               <div class="detail-arr-right">Next:<a href='/net/113037.html'>MVC project background images show not to come out, at 404 errors, but the third screenshots can be</a></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="container th_top">
    <div class="row">
      <div class="col-md-12">
        <div class="hot-tags neitags">
          <ul>
            <li><i class="iconfont icon-x-tags"></i> Tags:  </li>
              </ul>
        </div>
      </div>
    </div>
  </div>
 <div class="container th_top">
    <div class="row">
      <div class="col-md-12">
        <div class="xiangguan">
        	<ul class="msg msghead">
            	<li class="tbname">Related</li>
            </ul>
          <ul>             </ul>
        </div>
      </div>
    </div>
  </div>
<div class="container th_top">
  <div class="row">
    <div class="col-md-12">
      <div class="flinks">
        <ul>
          <li><i class="iconfont icon-x-tags"></i> Links:  </li>
          <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li>

            </ul>
      </div>
    </div>
  </div>
</div>
<div class="footer">
  <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>          <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html">
Privacy Policy</a></p>
  <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p>
</div>
<script type="text/javascript" src="/skin/code/tianhu.js"></script> 
</body></html>