16,019,018 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by mh20005@hotmail.com (Top 8 by date)
mh20005@hotmail.com
22-Aug-14 16:01pm
View
http://forums.asp.net/t/1615914.aspx?asyncFileUpload+how+to+get+new+FileName+after+uploda
same Problem
mh20005@hotmail.com
22-Aug-14 15:56pm
View
protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
{
string Id;
Id = DateTime.Now.ToString("yyyyMMddTmmhhssfff");
string myMap = MapPath("~/").ToLower();
Random r = new Random();
int next = r.Next(0, 999);
string ImageName = AsyncFileUpload1.PostedFile.FileName;
string sImageFileExtension = ImageName.Substring(ImageName.LastIndexOf(".")).ToLower();
if (sImageFileExtension == ".gif" || sImageFileExtension == ".png" || sImageFileExtension == ".jpg" || sImageFileExtension == ".jpeg" || sImageFileExtension == ".bmp")
{
string ImageSaveURL = myMap + "Images/" + Id + next + sImageFileExtension;
AsyncFileUpload1.PostedFile.SaveAs(ImageSaveURL);
}
}
this code to save the image Ok
now how can i save the image new name in database use another event?
mh20005@hotmail.com
22-Aug-14 15:44pm
View
i get the old file name not new file name
mh20005@hotmail.com
22-Aug-14 15:33pm
View
I have a form to fill in personal data and Upload own image
Asyncfileupload used to select the picture and in the void AsyncFileUpload_UploadedComplete
Save the file in new name
Now when the user ends of the mobilization of all form and presses the save button to save data , i save every thing in database I can not get the new name to save it.
mh20005@hotmail.com
22-Aug-14 15:23pm
View
how i do that?
mh20005@hotmail.com
22-Aug-14 15:22pm
View
No I save the same file with a different name, but I can not get a new name when user press the button, which saves in the database
mh20005@hotmail.com
22-Aug-14 15:19pm
View
My problem is that after save the file with a new name, I can not get the new name to save it in the database.
mh20005@hotmail.com
17-Jan-13 7:19am
View
from my Computer its work good but from hosting it's not work "the Email came without the attached file".
Show More