Operation file system (3) Display directory content

xiaoxiao2021-03-06  101

String str = textbox2.text;

// DataGrid1.datasource = Directory.GetFiles (STR);

DataGrid1.datasource = Directory.getFiles (STR, "*. ASPX"); // Get list of files in the directory .ASPX suffix

DataGrid1.databind ();

转载请注明原文地址:https://www.9cbs.com/read-103112.html

New Post(0)