到asp.net或者vb.net版去问比较合适~~~

解决方案 »

  1.   

    你想注册 服务器端 事件 还是客户端 事件服务器端
    MyList.SelectedIndexChanged += new System.EventHandler(this.MyList_SelectedIndexChanged);客户端
    MyList.Attributes["onchange"] = "javascript:myList_onchange();";
      

  2.   

    AddHandler MyList.OnSelectedIndexChanged, AddressOf List_OnSelectedIndexChanged
    我把这句话改成 
    AddHandler MyList.SelectedIndexChanged, AddressOf List_SelectedIndexChanged
    以后编译通过,没有错误。
    不过我打开网页以后,选择店铺还是没有任何反应。应该是服务器端吧。我这个网页让别的人访问的。架设好以后。
      

  3.   

    Protected Sub List_SelectedIndexChanged(S As Object, E As EventArgs)
    If Len(Request("strNum")) > 0 And IsNumeric(Request("strNum")) Then StoreId = Request("strNum")
    Call MakeYMDList(StoreId)
    Call DBClose()
    Call Response.Redirect("./ipt_dayreport.aspx?strnum=" & StoreId & "&y=" & Y & "&m=" & M & "&d=" & D)
        Call Response.End
    End Sub
    这是这个过程。我加的
      

  4.   

    Protected Sub List_SelectedIndexChanged(S As Object, E As EventArgs) 
    If Len(Request("strNum"))  > 0 And IsNumeric(Request("strNum")) Then StoreId = Request("strNum") 
    Call MakeYMDList(StoreId) 
    Call DBClose() 
    Call Response.Redirect("./ipt_dayreport.aspx?strnum=" & StoreId & "&y=" & Y & "&m=" & M & "&d=" & D) 
        Call Response.End 
    End Sub 
    这是这个过程。我加的