How to loop through the FormCollection to check if textboxes have values?
Posted
by Sasha
on Stack Overflow
See other posts from Stack Overflow
or by Sasha
Published on 2010-05-28T21:15:57Z
Indexed on
2010/05/28
21:22 UTC
Read the original article
Hit count: 319
asp.net-mvc
Hi there.
I have a search page that has 6 textboxes which i pass as FormCollection to the action in the controller. I dont want to search for records if ther is no values in textboxes.
Is there a way to loop through all textboxes in FormCollection without to check which ones have values in them?
I am a student in the college and this project is part of my summer experience program. I realize that this is a newbie question :) Thank you!
© Stack Overflow or respective owner