gridview inside file upload control validation..

Posted by Gopal_nivas under ASP.NET on 2/25/2011 | Points: 10 | Views : 2620 | Status : [Member] | Replies : 10
hi..

i have a gridview in that i have checkbox and file upload controls and common submit button outside gridview.

if i checked a row checkbox and i need to check whether the file upload control contains any value or not.
if checkbox is checked and file upload control contains values then i will insert the details into database table.

if not means i will show a message.

if not checked means its not a problem no need to validate the control.

how to do this..

need ur suggestions with examples
regards
gopal.s




Responses

Posted by: Madhu.b.rokkam on: 2/25/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Please follow the link same way you need to define an array for the fileUpload control and the checkbox control, loop thru the checkboxes using javascript and do the validation as required

http://www.dotnetfunda.com/articles/article1182-calculate-running-total-in-a-grid-view-and-display-.aspx

Thanks and Regards
Madhu

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gopal_nivas on: 2/28/2011 [Member] Starter | Points: 25

Up
0
Down
hi madhu..

plz provide me some examples regarding my requirement..

need ur suggestions..

regards
gopal.s

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/28/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
I will try to post an article on this for you..

Thanks and Regards
Madhu

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gopal_nivas on: 3/1/2011 [Member] Starter | Points: 25

Up
0
Down
thanks madhu..

i am waiting for ur reply..

regards
gopal.s

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 3/1/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi Gopal,

I am preparing the sample for your requirement and will mostly post by tomorrow..

Thanks and Regards
Madhu

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gopal_nivas on: 3/2/2011 [Member] Starter | Points: 25

Up
0
Down
thanks madhu..

i am waiting for ur article..

regards
gopal.s


Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 3/2/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi Gopal i have posted an article on this for you .. Hope this would resolve your issue...

Thanks and Regards
Madhu

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gopal_nivas on: 3/3/2011 [Member] Starter | Points: 25

Up
0
Down
thanks madhu..

it helped me lot..

regards
gopal.s

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/3/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Good article madhu...

Thanks
Karthik
www.f5Debug.net

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 3/3/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Thanks Karthik and Gopal...

Thanks and Regards
Madhu

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response