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 JayaramanPosted Oct 12, 2012, 6:06 AM
Inside stored proc, try the same logic
My table is schoolclass and columns are Id and name
KRayudu VPosted Oct 12, 2012, 3:14 AM
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 JayaramanPosted Oct 12, 2012, 1:52 AM
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 VPosted Oct 12, 2012, 1:29 AM
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 JayaramanPosted Oct 12, 2012, 1:04 AM