如何在ASP.NET中编写循环,直到所有条件都成立为止。 [英] How to write loop in ASP.NET to run until all the condition became true.

查看:56
本文介绍了如何在ASP.NET中编写循环,直到所有条件都成立为止。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Asp.net中编写一个循环,直到所有成员都签署文件为止?我有代码,在那个代码中,有一个错误,让所有人签名都是真的,虽然只有一个人签字。



任何人都可以帮助我吗? br $> b $ b

我尝试了什么:



我试图创建for循环和在asp.net中的foreach循环但是没有用。

How can I write a loop in Asp.net to run until all the member has signed off the document? I have the code and in that code, there is a bug which makes all persons sign off true although only one has sign-off.

Can anyone help me?

What I have tried:

I tried to create for loop and foreach loop in asp.net but did not work.

推荐答案

你不能这样做,因为ASP.NET是一个Web应用程序,它是一个请求/响应架构。您可能正在等待下一个人签字的日子。没有一种循环可以帮助你。



如果你正在等待多个客户全部签字文件,你必须跟踪每个所需人员的状态签字。当你设置一个人的签名状态时,你可以检查是否所有人都已经签字文件,然后将其推送到下一个阶段,无论是什么。



无需循环。
You can't do that as ASP.NET is a web application, which is a request/response architecture. You could be waiting days for the next person to "sign off". No kind of loop is going to help you here.

If you're waiting for multiple clients to all "sign off" on a document, you have to track the state of every required persons "sign off". When you go to set the state of the "sign off" for a person, you can then check to see if everyone has "signed off" on the document and then push it along to the next stage, whatever that is.

No loop required.


ASP.NET中的用户输入验证 [ ^ ]

这可能更适合您的要求。
User Input Validation in ASP.NET[^]
This may be more suitable for your requirement.


这篇关于如何在ASP.NET中编写循环,直到所有条件都成立为止。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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