Redian新闻
>
Add controls into web form dynamically?
avatar
Add controls into web form dynamically?# DotNet - 窗口里的风景
d*r
1
I am working on an asp.net application using c#.
It queris a database and shows the query result as a line of title followed by
a table ( I used Label + DataGrid).
For example, for a Sale database, the web form shows
Date: (in a Label)
Sales: (in a DataGrid)
Now, the user wants to query more than one date and shows the result in one
web form which looks like:
Date1:
Sales1:
Date2:
Sales2:
Date3:
Sale3
...
Since I don't know how many dates the user want to query, I cannot fix the
design the of we
avatar
k*i
2
try repeater to see if it meets your need.
If you really need to load it dynamically.
Page.LoadControl maybe the function you need to checkout.

by
to

【在 d*r 的大作中提到】
: I am working on an asp.net application using c#.
: It queris a database and shows the query result as a line of title followed by
: a table ( I used Label + DataGrid).
: For example, for a Sale database, the web form shows
: Date: (in a Label)
: Sales: (in a DataGrid)
: Now, the user wants to query more than one date and shows the result in one
: web form which looks like:
: Date1:
: Sales1:

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。