更新面板始终发布Bck整页

时间:2013-02-27 05:38:00

标签: c# asp.net

问题,我没有得到部分页面帖子页面,而是我得到整页重新加载,然后我点击按钮点击表格中的下4行。任何想法我没有得到Ajax功能。

我在内容页面工作。

<div>
          <asp:ScriptManager ID="ScriptManager1" runat="server">
          </asp:ScriptManager>
           <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
          <ContentTemplate>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <th width="35%">Last Degree</th>
            <th width="35%">Institute</th>
            <th width="20%">Year</th>
            <th width="30%">Majors</th>
          </tr>
          <tr id="rowFields">
            <td>
                <asp:TextBox runat="server" ID="txtDegree" type="text" onblur="if(this.value=='' || this.value==null) this.value=''" 
                onfocus="if(this.value==''){this.value='';}" placeholder="Last Degree*" size="35" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtInstitue" type="text" onblur="if(this.value=='' || this.value==null) this.value=''" 
                onfocus="if(this.value==''){this.value='';}" placeholder="Institute*" size="35" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtYear"  onblur="if(this.value=='' || this.value==null) this.value=''" 
                onfocus="if(this.value==''){this.value='';}" Placeholder="Year*" size="12" />
            </td>
             <td>
                <asp:TextBox runat="server" ID="txtSubjects"  onblur="if(this.value=='' || this.value==null) this.value=''" 
                onfocus="if(this.value==''){this.value='';}" placeholder="Subjects*" size="35" />
            </td>                
          </tr>            
            <tr>          
            <td>
            <asp:PlaceHolder ID="PlaceHolderEdu" runat="server"></asp:PlaceHolder>
            </td>
            <td>
            <asp:PlaceHolder ID="PlaceHolderEdu2" runat="server"></asp:PlaceHolder>
            </td>
            <td>
             <asp:PlaceHolder ID="PlaceHolderEdu3" runat="server"></asp:PlaceHolder>
            </td>
            <td>
                <asp:PlaceHolder ID="PlaceholderEdu4" runat="server"></asp:PlaceHolder>
            </td>         
          </tr>   
          </table>                                    
          </ContentTemplate>

              <Triggers>
                  <asp:AsyncPostBackTrigger ControlID="addmoreEdu" EventName="Click" />
              </Triggers>

          </asp:UpdatePanel>             

             <asp:LinkButton ID="addmoreEdu" runat="server" CssClass="linkbutton" 
                  onclick="addmoreEdu_Click" CausesValidation="False">Add More</asp:LinkButton>  
          </div>

0 个答案:

没有答案