开发者

convert PHP code to C# [closed]

开发者 https://www.devze.com 2023-03-18 09:07 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I have this code,need convert to C#.net..

<form method="POST" enctype="multipart/form-data" method="">
开发者_JAVA百科<input type="file" name="file">
<input type="submit">

<?
if(!empty($_FILES["file"]))
echo file_get_contents($_FILES["file"]["tmp_name"]);
?>

thanks!


It's like ↓

Request.Files["file"].SaveAs(System.IO.GetTempFileName() + "\\" + "filename");
0

精彩评论

暂无评论...
验证码 换一张
取 消