File operations in C# (.net)
Here we are performing some basic file operations which widely needed in applications. ASPX : <div> <asp:Button ID="Button1" runat="server" Text="CLick" onclick="Button1_Click" /> <asp:FileUpload ID="FileUpload1" runat="server" /><br /><br /> </div> C# : using System.IO; using System.Text; protected void Button1_Click(object sender, EventArgs e) { string path = @"E:\MVC Application Demos\ABC.txt"; // File Path taken string name = FileUpload1.FileName.ToString(); // Here we get File Name only string pa...
Comments
Post a Comment