Get FileUpload control value
Hi guys, I have an aspx webpage with 9 fileupload controls called (fupBlogImg1,fu pBlogImg2,..... ....fupBlogImg9 ). I want to get their values with a for at the code after the button (cmdAlbumCreate ) is clicked.
Here is the code but fupBlogImg is null (I dont know why)
for (int n = 1; n < 10; n++)
{
string StrBlogImg = "fupBlogImg " + n;
FileUpload fupBlogImg = (FileUpload)Fin dControl(StrBlo gImg);
Thank you all
Hi guys, I have an aspx webpage with 9 fileupload controls called (fupBlogImg1,fu pBlogImg2,..... ....fupBlogImg9 ). I want to get their values with a for at the code after the button (cmdAlbumCreate ) is clicked.
Here is the code but fupBlogImg is null (I dont know why)
for (int n = 1; n < 10; n++)
{
string StrBlogImg = "fupBlogImg " + n;
FileUpload fupBlogImg = (FileUpload)Fin dControl(StrBlo gImg);
Thank you all
Comment