English 中文(简体)
在网络应用中,服务器边MigBox()的使用是错误的?
原标题:Use of server side MsgBox() is wrong in web application?
  • 时间:2012-05-09 16:03:31
  •  标签:
  • vb.net

I have a web application based on vb.net I used MsgBox() in my MYPage.aspx.vb where my expectation is that the user on client should click on a button and based on it I would process further.

但我听到了一项建议,即MigBox()女士在我关于开发机(M dev方框)网络服务器在当地运行的编码事业中工作得当。 这并不在遥远的网络服务器或当地服务器以外的任何东道环境中工作。

情况如何?

最佳回答

情况如何?

是的。 服务器边代码在服务器<>上执行。 The VB. 在服务器上安装了网络编码。 由于服务器和客户是同一机器,你正在看到这一机。

如果其他人要从另一个客户向服务器投递,则博客箱将出现在服务器上,用户永远不会看到。

如果您需要向用户确认,则需要使用某种客户代码,如 Java本和<条码>。

问题回答

没有一个网络环境中的信号Box。 在服务器上显示电文Box的意思并不大,但它汇编了任何途径。

因此,你要么需要使用jQuery。 做法或简单警示:

ScriptManager.RegisterStartupScript(page, page.GetType(), "MyScript", "alert( Hello World );", true)




相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签