开发者

How would I use a control to get info from another page part of the same masterfile

I have a Masterfile that has a header control with a button, and the ContentPlaceHolder which would be another page with开发者_如何学Go multiple text boxes.

When I press the button in the header, I need to iterate through all the text boxes and grab their text, how exactly would I do this using C#?


Check the ContentPlaceHolder for null and if that succeeds, loop through all of the placeholder's controls, grabbing the text from all the TextBoxes. Alternatively, you could use the ContentPlaceHolder's FindControl method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜