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
Bhavesh Vankar
763
1.1k
87.2k
How to save image control's image
Oct 29 2020 4:37 AM
how to save image control's image into dynamical directory. code is as below.
using asp.net c# web application.
string
MainDir = @
"~/StudentImage/"
;
String SubDir = DateTime.Now.ToString(
"dd-MM-yyyy"
);
if
(!Directory.Exists(Server.MapPath(MainDir)))
{
Directory.CreateDirectory(Server.MapPath(MainDir));
}
if
(!Directory.Exists(Server.MapPath(MainDir + SubDir)))
{
Directory.CreateDirectory(Server.MapPath(MainDir + SubDir));
}
vImage.ImageUrl = Server.MapPath(MainDir + SubDir);
string
imgname = Path.GetFileName(vImage.ImageUrl);
vImage.ImageUrl=(Server.MapPath(MainDir + imgname));
i have tried but still not working...
Reply
Answers (
8
)
How to do Infix to Postfix Conversion of Negative Number.
How to validate credentials using active directory