Hi i am create a file txt that show error and give link so file can be open.
it woks on firefox but doesnt work on ie
here the screen shoot
firefox

Ie

If (Not System.IO.Directory.Exists("~\Errortext")) Then
System.IO.Directory.CreateDirectory("~\ErrorText")
End If
Dim lodt As New DataTable
da.Fill(lodt)
If lodt.Rows.Count > 0 Then
Dim filex As StreamWriter = File.CreateText("~\ErrorText\Error" & Session("UID") & ".txt")
Dim i As Integer
For i = 0 To lodt.Rows.Count - 1
filex.WriteLine(Left(lodt.Rows(i).Item("colErr"), Len(lodt.Rows(i).Item("colErr")) - 1))
Next
filex.Close()
lblMessage.Text = "Click on <a href=""../~/ErrorText/Error" & Session("UID") & ".txt"">THIS ONE</a> to proceed"
Else
lblMessage.Text = "berhasil"
End If
Thanks To nunespascal for the answer
but It’s Still need a permission on iis and folder
for more detail look here