大家能告诉我这句循环语句是什么意思吗?

来源:百度知道 编辑:UC知道 时间:2024/05/21 06:39:44
Do While dr.Read()
Session("m_name") = Request.Form("mr_name")
Response.Redirect("guanli.aspx")
Loop

VB代码。

就是当 DataReader()

存在记录也就是Read()为真的时候

就执行Session("m_name") = Request.Form("mr_name")
Response.Redirect("guanli.aspx")

反之dr.Read()为假,就退出哦

貌似放错地方了

看意思大概是..

循环读取某个东西 如果读取到东西 就继续执行
读取不到 就退出

PS:VB没有学过..