I am using Visual studio 2008 and trying to upload files. Though the file uploaded can be seen through windows explorer, it is not shown in solution explorer.

i am using the following c# code:

String fnm = FileUpload1.FileName;
String cp = Server.MapPath("~/Uploads/");
            
FileUpload1.SaveAs(cp + fnm);

Recommended Answers

All 8 Replies

Though the file uploaded can be seen through windows explorer, it is not shown in solution explorer.

Do you mean the file can be seen in the corresponding local path of the solution? If so, try refreshing the solution explorer and see if it appears.

Regards,

No, it doesn't appear in the solution explorer, even if I refresh.

Try clicking "Show ALL Files" icon in Solution Explorer.

How can I insert the file (image/word) in sql server which is get from File upload ctrl ? Can any one give me example ?

Yes dear friend, now I can see it in the solution explorer. Many thanks.

The "Show All File" icon solved my problem.

@Vijayviswanath

You are likely to get solutions if you create a new thread with a appropriate thread title for your problem, as your problem is little different from this one.

For future reference, you can use an ASP.NET control like FileUltimate for this purpose.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.