Hi Friends,
Im trying to upload a four files names in database.But, we have to use only one column in database
Requirement:
we have to take four upload controls in aspx page.when we click on submit button,the four file names should save in single column
Please help me on this requirement
Loading

Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Oct 11, 2012, 9:04 PM EDT
KRayudu V157 reputationPosted Oct 11, 2012, 9:29 PM EDT
But,with same id it should saved in four rows(DATABASE)
Example
MaterialOne ID
pw.jpeg 101
ex.jpeg 101
kk.doc 101
ww.doc 101
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Oct 11, 2012, 9:52 PM EDT
string str= filename1 + ";" +filename2 +";" +filename3 + ";" ;
Now pass this string to database.
So your table will look like
pw.jpeg;ex.jpeg;kk.doc 101
KRayudu V157 reputationPosted Oct 11, 2012, 11:14 PM EDT
But,the file names should save(DATABASE) in this way
MaterialOne ID
kumar.jpg 101
santosh.jpg 101
rayud.jg 101
C#.doc 101
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Oct 12, 2012, 2:06 AM EDT
Inside stored proc, try the same logic
My table is schoolclass and columns are Id and name