UpdatePanel引起一个非常有趣的现象 RRS feed

  • 问题

  • 很简单的一个代码片断,连触发器都没有指定; 

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

     <asp:Button ID="btntj" runat="server" Text="提交" CssClass="button" OnClick="btntj_Click" />

       <asp:Button ID="btndds" runat="server" Text="保存所有"
                            onclick="btndds_Click" ValidationGroup="vgSubmit"  />



    2013年5月15日 9:06


  • 我无法重现你的问题,我的代码如下:

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="VB._Default" %>
    <!DOCTYPE html>
    <html xmlns="">
    <head runat="server">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <form id="form1" runat="server">
                <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
               <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <asp:Button ID="btntj" runat="server" Text="提交" CssClass="button"/>
       <asp:Button ID="btndds" runat="server" Text="保存所有" ValidationGroup="vgSubmit"  />

    If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer

    Help by clicking:
    Click here to donate your rice to the poor
    Click to Donate
    Click to feed Dogs & Cats

    Found any spamming-senders? Please report at: Spam Report

    2013年5月19日 7:40