Dim mycom As SqlCommand = New SqlCommand(insertcmd, mycon)
mycom.CommandType = CommandType.StoredProcedure

解决方案 »

  1.   

    try
    protected HtmlGenericControl message = new HtmlGenericControl();
    message.InnerText= "恭喜你,注册成功!";
    另外你的message在页面上也要有
      

  2.   

    还是啷哎...呵呵.头晕了..还是那儿..
    65行..行 65 message.InnerHtml = "发生异常!请重新输入!"
    System.NullReferenceException: 未将对象引用设置到对象的实例。
      

  3.   

    try
    protected HtmlGenericControl message = new HtmlGenericControl();
    message.InnerText= "恭喜你,注册成功!";
    另外你的message在页面上也要有
    我已经在web 窗体设计器中已经定义了呀...
      

  4.   

    將message換成Label控件.
    message.InnerHtml換成message.Text