下面是我的源代码:
If rdmysql.IsDBNull(rdmysql.GetOrdinal("STATUS")) = False Then StatusTxt.Text = rdmysql.GetString(rdmysql.GetOrdinal("STATUS"))
' If rdmysql.IsDBNull(rdmysql.GetOrdinal("ASSET_KEY_SEGMENT3")) = False Then AssetKeyTxt.Text = rdmysql.GetString(rdmysql.GetOrdinal("ASSET_KEY_SEGMENT3"))
Dim nbv As Decimal = Decimal.Parse(CostUSDTxt.Text)
Dim nbv2 As Decimal = Decimal.Parse(DeprTxt.Text)
Dim nbv3 As Decimal = nbv - nbv2
NBVUSDTxt.Text = nbv3
If StatusTxt.Text = "NEW" Then
MsgBox("This is new asset")
End If
If StatusTxt.Text = "TRANSFER" Then
MsgBox("This asset have been transfer")
End If
发布于 2018-06-26 16:39:24
消息框将显示在你的Web服务器上。即使这样,它也会经常在运行w3wp.exe工作进程的帐户的特殊私人桌面上显示。
使用ASP.Net,VB代码在Web服务器上运行,并且仅在Web服务器上运行,因此,当你调用类似的函数时,结果将显示在此处MsgBox()
。如果你想要一个网页中的消息框,你坚持使用javascript alert()
,构建自定义html,或使用前端框架(如jQuery UI或某种lightbox)。
https://stackoverflow.com/questions/-100005527
复制相似问题