3
Answers

Add Browse button in dynamically created view - EntityFramew

Terry

Terry

9y
773
1

Hi, 


   In my Model I want to add a string property that will save the url/path of an image. For that I need to add "Browse" button next to a textbox for the user to select file & also a Image to display the selected image. 


    How can I save this image somewhere else and not in the DB - as that will increase the size of DB and save time for transferring image from byte[] to file & vice-versa ? Like this, through out the project, I will have many images to upload & show. Right now I am on local DB, Is this possible to achieve, if so ,  how ? 


    The view file where I want to add browse & Image is like this :
    <asp:DynamicControl Mode="Insert" DataField="PANNumber" runat="server" />


it's inside <InsertItemTemplate> <fieldset> & <Validate-Summary>


The view is created by Scafolding.
Answers (3)