Get and Save Image Name in Database

Thread is closed for posting
2 posts, 0 answers
  1. Richard
    Richard avatar
    1 posts
    Member since:
    Jun 2011

    Posted 17 Jun 2011 Link to this post

    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
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 22 Jun 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top