Click here to Skip to main content
16,021,181 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to insert multiple imagenames in a Table structured as shown below:
<br />
EMP(name varchar, imagename varchar(max));<br />

by using FileUpload control in Asp.Net, and image is going to store on server...

only image name is stored in database, and I want to allow the user to insert maximum of 20 images only?

Is it possible to store multiple image names in a single column in a table or do I need to use another table?

Aspx code is shown below:

XML
<asp:TextBox ID="txtcustname" runat="server" MaxLength="50" ></asp:TextBox>
   upload image  <asp:FileUpload ID="FileUpload1" runat="server" />
  <asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click" BorderColor="#333399"/>
Posted
Updated 28-Jun-12 6:01am
v2
Comments
[no name] 28-Jun-12 12:00pm    
Don't bother. Repost.

1 solution

I would use another table, but yes you can do it in a single column. You'll have to use a delimiter though.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900