Method to Get Values from Multiple Textboxes with Same Tag Name Property?
What command was it in C# where you could get the values of, let's say, multiple textboxes sharing the same name property in a form on post?
If i remember correctly, the value would be returned as an array.
Edit:
It was Request.Forms.GetValues
开发者_开发知识库Sorry for the trouble guys. >.<
The only array supported for a TextBox in C# is using the Lines property in case of a multiline TextBox. There's nothing like a control array of VB. You can of course write your own wrapper of some kind.
I think you may be thinking of the control arrays we had in VB6 where the event handler received the index to the control in the array. No such thing in c#.
精彩评论