用asp.net做的关于计算器,在运行是老是提醒有如下错误:
Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.Source Error:Line 22: Sub Oper_Click(sender As Object, e As EventArgs)
Line 23: Operand1.text=val(disp.text)
Line 24: operator.text=sender.text
Line 25: disp.text="0"
Line 26: DispClear.text="true"Source File: c:\inetpub\wwwroot\jjj\WebForm1.aspx Line: 24 请问该怎么解决
Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.Source Error:Line 22: Sub Oper_Click(sender As Object, e As EventArgs)
Line 23: Operand1.text=val(disp.text)
Line 24: operator.text=sender.text
Line 25: disp.text="0"
Line 26: DispClear.text="true"Source File: c:\inetpub\wwwroot\jjj\WebForm1.aspx Line: 24 请问该怎么解决
operator.text=b.Text??
我试了你的方法也不行,谁能给个更好的方法啊