msgbox 不能用,我只Imports System.IO,够吗?

iwom 2004-12-22 03:17:24
msgbox 不能用,我只Imports System.IO,够吗?有人碰到同样的问题了吗?
...全文
178 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
iwom 2004-12-23
  • 打赏
  • 举报
回复
既然不行就算啦,奇怪,我看一个新加坡公司的代码真的可以做的,不知道为什么,结贴了
welshem 2004-12-23
  • 打赏
  • 举报
回复
你是aspx的网页,不能用Msgbox,服务器不可能直接把Msgbox送到客户端的
lxw2100 2004-12-23
  • 打赏
  • 举报
回复
比如Button.attribute.add("onclick","return",confirm("hi"))
或者Button.Attribute.Add("onclick", "alert('hi');")
lxw2100 2004-12-23
  • 打赏
  • 举报
回复
在WebApplication下没有MsgBox()这个用法!要实现象这样的对话框,就要使用script来写!
Paradise_heida 2004-12-23
  • 打赏
  • 举报
回复
MessageBox.Show("ok"),看看好使不??

bybtx 2004-12-22
  • 打赏
  • 举报
回复
你可以用这个代码试试:
Response.Write("<script>alert('hello')</Script>")
把hello换成你要输入的内容。
机器人 2004-12-22
  • 打赏
  • 举报
回复
System.Web.UI. 你这是web应用阿。怎么有msgbox ???
机器人 2004-12-22
  • 打赏
  • 举报
回复
System.Web.UI. 你这是web应用阿。怎么有msgbox ???
iwom 2004-12-22
  • 打赏
  • 举报
回复
以上是错误信息,为什么要把strFn "register.txt"转成integer?
这样写就是想弹出一个string的信息啊
MsgBox(Me, strfn)
[InvalidCastException: Cast from string "register.txt" to type 'Integer' is not valid.]
iwom 2004-12-22
  • 打赏
  • 举报
回复
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:


Line 102: strfExt = UCase(Right(strfn, Len(strfn) - InStr(strfn, ".")))
Line 103: strActualFileName = strfn
Line 104: MsgBox(Me, strfn)
Line 105: Try
Line 106: inpFile.PostedFile.SaveAs(viewState("SaveLocation"))


Source File: C:\Inetpub\wwwroot\vmind\section5.aspx.vb Line: 104

Stack Trace:


[FormatException: Input string was not in a correct format.]
Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat)
Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value)
Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value)

[InvalidCastException: Cast from string "register.txt" to type 'Integer' is not valid.]
Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value)
vmind.section5.btnUpload_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\vmind\section5.aspx.vb:104
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()


16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧