Tag Archive for 'same-name'

Request.Form - get values for fields having the same name

Problem
You know it’s possible to have controls with the same name on one page. In this case Request.Form[”txtSomeText”] returns the values form all 5 textboxes comma separted. (For example: text1,text2, text3.text4, text5).

Example:

…..

<input type=”text” name=”txtSomeText” />
<input type=”text” name=”txtSomeText” />
<input type=”text” name=”txtSomeText” />
<input type=”text” name=”txtSomeText” />
<input type=”text” name=”txtSomeText” />

…….

The question iin this case is “How to […]




Google

Blogroll


Blogroll Me!

Enter your email address:

Delivered by FeedBurner







Academics Blogs - Blog Top Sites