If you want to create a directory in ASP.net then simply write directory to the disk, before that you need to import System.IO namespace, this contains the CreateDirectory() method that we will be used to create your directory and if you are using Server Intellect then insert the following code in btnSubmit_Click() event.
Code:
Protected Sub btnSubmit_Click(ByVal sender1 As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Try
Directory.CreateDirectory(MapPath(".") & "\" & txt_Dir.Text)
Catch ex1 As Exception
lblStatus.Text = ex1.Message
End Try
End Sub
Bookmarks