TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
judy lim
NA
2
2.9k
Adding Guid
Oct 16 2011 11:32 PM
I need to add GUID for each photos that users had uploaded. I had created a virtual directory in IIS to store the images that users had uploaded.
The coding is
string strImage = "";
if (!File.Exists) (Server.MapPath("D:/Virtual Directory")));
if(FileUpload1.HasFile)
{
strImage = FileUpload1.FileName.ToString();
FileUpload1.SaveAs (Server.MapPath("D:/Virtual Directory/" + FileUpload1.FileName.ToString()));
}
//produces a "blank GUID"
System.Guid blankGuid = new System.Guid();
//produces a new, unique GUID
System.Guid desiredGuid = System.Guid.NewGuid();
Can someone tell me how to link them together?
Reply
Answers (
1
)
Basic question about data storage, array/dict/list/etc
Trace Switcher