مقاله : upload کردن فایل

Iauksh

Iauksh
سلام
این چطوره

<%@ Page Language="vb" %>
<script runat="server">

sub page_load(s as object,e as EventArgs)
If Not (MyInputFile.PostedFile Is Nothing) Then
MyInputFile.PostedFile.SaveAs("c:\filetxt.txt")
Response.write("Your File was saved on the server...")
End If
end sub

</script>
<html>
<head>
<title>Uploading File...</title>
</head>
<body>
Upload.aspx:
<form id="Form1" method="post" enctype="multipart/form-data">
<input id="MyInputFile" type="file" name="MyInputFile" runat="server" />
<input id="Submit1" type="submit" value="Submit" name="Submit1" />
</form>
</body>
</html>

امید وارم مفید باشه