开发者

Method to Get Values from Multiple Textboxes with Same Tag Name Property?

开发者 https://www.devze.com 2023-03-06 15:17 出处:网络
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?

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#.

0

精彩评论

暂无评论...
验证码 换一张
取 消