Archive for May, 2008

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 […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Technorati
  • digg
  • Reddit
  • SphereIt
  • DotNetKicks
  • YahooMyWeb



Google

Blogroll


Blogroll Me!

Enter your email address:

Delivered by FeedBurner







Academics Blogs - Blog Top Sites