Monday 24 October 2016

Select or Browse folder in asp.net

Select or Browse folder in asp.net



Description:

in this example we explain that how select folder in asp.net using C# or how to browse folder in asp.net.example to demonstrate how to browse folder in file upload control in asp.net.or select folder in input type=”file” in asp.net using C#.

there are many question are raised in our mind because by default file upload control allow user to select compulsory the file in file upload you cannot select folder or directory in file upload so below is the single line code to demonstrate how to select or browse folder in file upload control in asp.net. file dialog example in asp.net same like as in window form dialog.

<asp:FileUpload ID="FileUpload1"   runat="server" webkitdirectory />


webkitdirectory“ is the property that allow user to select or browse folder directly in file upload control in asp.net.

0 comments:

Post a Comment