上传图片中的错误 [英] uploading error in images
本文介绍了上传图片中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我想使用代码进行图像上传时
string ext = path.getextension(fileupload1.filename)
<这个getextension()中的
没有进入屏幕
我还使用了system.IO命名空间
when i want to used a code for image uplaoding as
string ext=path.getextension(fileupload1.filename)
in this getextension() is not comming in screen
and i also used system.IO namespace
推荐答案
输入如下代码。请注意,C#区分大小写
enter code like below. Please note that C# is case sensitive
string ext = System.IO.Path.GetExtension(fileupload1.filename);
请检查您的代码中的任何语法错误可能是因为在visual studio中无法使用的智能
Please check for any syntax error in your code may be because of that intelli-sense not working in visual studio
这篇关于上传图片中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文