This is a migrated thread and some comments may be shown as answers.

Get and Save Image Name in Database

1 Answer 84 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 17 Jun 2011, 02:03 PM
Hello,

Im new in ASP.Net and Im not a Native Programmer.
Im using Web Developer 2010 (C#) with Framework 3.5 and the Latest Demo from telerik rad_controls.

I have got 2 Problems.

1) All Images should be Resized to Fixed Size of X * Y (no matter where or when).
I found this Article btu I dont know where and how to implement Code in Code Behind (the second method)
http://www.telerik.com/help/aspnet-ajax/upload-how-to-resizing-images.html

2) I need the names of the Images + I must to rename them (add some number) in Variable to be able to safe the image name in Database

Current Scenario (Code Behind-very Short Version) :

onPageLoad
div a. Visible // collect Data from TextBox A
div b. InVisible
div c. InVisible
div d. InVisible

onButton_Click_NEXT1
div a. InVisible
div b. Visible // collect Data from TextBox B
div c. InVisible
div d. InVisible

onButton_Click_NEXT2
div a. InVisible
div b. InVisible
div c. Visible // UpLoad Images with RAD_ASYNC_UPLOAD and ReName and Resize on myFixed Size
div d. InVisible

onButton_Click_NEXT3
div a. InVisible
div b. In Visible
div c. InVisible
div d. Visible// collect Data from TextBox C

onButton_Click_INSERT
Insert data from TextBox A, B, C, and the ImageNames in to Database

Any Help on this problem?

Thanks,
Richard

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 22 Jun 2011, 12:10 PM
Hello Richard,

Straight to your problems:

1) Please find attached a sample project.

2) UploadedFiles property of RadUpload control gives you access to every uploaded file. When saving a file you can give it  a unique name and after it insert it into database.
For more information refer to the attached project.

Kind regards,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Upload (Obsolete)
Asked by
Richard
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or