FormVarsToObject - a quick way to collect form input values(west-wind.com)

submitted by rstrahlrstrahl(7226) 4 years, 8 months ago

Here are a couple of small routines that let you quickly collect ASP.NET form variables into an object or a data row with a single line of code. This routine comes in handy in many situations where full databinding may not be involved or more commonly in AJAX scenarios where no form databinding can be applied on Page level callbacks.

2 comments |category: |Views: 2

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by rimsystemsrimsystems(6119) 4 years, 8 months ago 0

Don't ever believe anything that says, "single line of code" because really you could do just about anything in a single line.

Reply

posted by rimsystemsrimsystems(6119) 4 years, 8 months ago 0

Sorry, to finish my thought....and this article involves much more than a single line. Interesting method (if you don't mind Reflection) but more involved than a single line.

Reply

information Login or create an account to comment on this story