如何将多个文本框的数据从一种形式传递到另一种形式的组合框 [英] How to pass data of multiple text boxes from one form to another form combobox
本文介绍了如何将多个文本框的数据从一种形式传递到另一种形式的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将多个文本框的数据从一个表单传递到另一个表单组合框
How to pass data of multiple text boxes from one form to another form combobox
推荐答案
使公共方法返回列表< string> ;< / string>
第一种形式的对象,并从第二种形式调用它。
Make a public method returning a List<string></string>
object in the first form and call it from second one.
asp.net中有几种方法
1.交叉回发
2.你可以为必填字段创建一个类对象作为属性,并在页面上填充值并将其保存在会话中,并在第二页上检索所有值后删除来自会话的id。
there are several method in asp.net
1. Cross post back
2. u can create a class object for required field as property and fill it with values on page and save it in session and after retrieving on second page all values u remove that id from session.
这篇关于如何将多个文本框的数据从一种形式传递到另一种形式的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文