Use System.IO namespace
VB.NET
Dim filePath As String = Path.GetTempPath()
Dim fileName As String = Path.GetTempFileName()
Response.Write((filePath + '
'))
Response.Write(fileName)
C#
string filePath =Path.GetTempPath ();
string fileName = Path.GetTempFileName();
Response.Write (filePath + '
' );
Response.Write (fileName );
Share with