形式asp.net的问题 [英] problem of form asp.net

查看:75
本文介绍了形式asp.net的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人可以帮我,我有一个紧急问题吗?



我有一个文本框,我必须输入一个2.3或4等数字。 ...根据输入的数字,我想显示相同数量的表格,



exp:如果数字为5,我必须有5个表格!所以如果有人有解决方案,我必须在星期一早上提交工作



提前谢谢

I have an urgent problem if someone can help me please?

I have a text box and I have to enter a number such as 2.3 or 4 ..... and according to the number typed I want to display the same number of form ,

exp: if the number is 5 I must have 5 form! so if anyone has a solution I have to present the work Monday morning

thank you in advance

推荐答案

我们不做你的作业:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



因此,您没有代码。



但这真是微不足道。

所有你要做的就是:

1)从文本框中读取值(可能,按钮Click事件在这里是个好主意)

2)将文本框值转换为整数。

3)设置一个循环来贯穿由整数值指定的次数

4)在循环中,创建表单的新实例,并将其称为Show方法。



完成。

这部分问题是什么?
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

So, you get no code.

But this really is trivial.
All you have to do is:
1) Read the value from the textbox (probably, a button Click event would be a good idea here)
2) Convert the textbox value to an integer.
3) Set up a loop to run through the number of times specified by the integer value
4) In the loop, create a new instance of the form, and call it's Show method.

Done.
Which part of this is a problem?


这篇关于形式asp.net的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆