linkbutton没有在asp.net中发布回来

时间:2013-11-06 08:43:40

标签: c# asp.net webforms linkbutton

我有很多linkbutton放在网络表格上,一切正常,直到昨天。但是现在我的ajax扩展器无法工作,linkbuttons正在回复。 我的一些代码是

 <table  width="460px">
    <tr>
        <td colspan="2" 
            style=" color: #C48239; font-style: normal; font-size: 18px; font-family: 'Bookman Old Style'; text-align:center;height:22px;">
           Manage Your Profile</td>
    </tr>
    <tr>
        <td>
            <asp:LinkButton ID="lnk_per_pro" runat="server" CssClass="linkButton" 
                PostBackUrl="~/User/Edit_profile.aspx">Edit Personal Profile</asp:LinkButton> </td>
        <td>
            <asp:LinkButton ID="lnk_par_pro" runat="server"  CssClass="linkButton">Edit Partner's Profile</asp:LinkButton></td>
    </tr>
    <tr>
        <td>
            <asp:LinkButton ID="lnk_con_det" runat="server" CssClass="linkButton" 
                PostBackUrl="~/User/Edit_profile.aspx">Edit Contect Details</asp:LinkButton></td>
        <td>
            <asp:LinkButton ID="lnk_add_photos" runat="server" CssClass="linkButton">Add Photos</asp:LinkButton></td>
    </tr>
    <tr>
        <td>
            <asp:LinkButton ID="lnk_hob" runat="server" CssClass="linkButton" 
                PostBackUrl="~/User/Edit_profile.aspx">Edit Hobbies and Interests</asp:LinkButton></td>
        <td>
            <asp:LinkButton ID="lnk_del_pro" runat="server" CssClass="linkButton">Remove/Delete Profile</asp:LinkButton></td>
    </tr>
</table></center>
</div>
</div><!-- div 2 end-->
<div id="div3">
<div id="inbox1"><b>About Myself</b>
</div>
<div id="inbox2"><a href="Partner_pre.aspx">Partner Prefrence </a>
</div>
</div>

<div id="div4">
<div id="indiv4"><b>Basics Information</b>
<div id="edit4">
    <asp:LinkButton ID="lnk_edit" runat="server" CssClass="link" 
        PostBackUrl="~/User/Edit_profile.aspx">&nbsp;Edit</asp:LinkButton>&nbsp;<img src="images/edit.png" alt="" />
</div>
</div>
<div id="indiv24">
    <div id="lt"><table class="style1" >
        <tr>
            <td style="color: #666666; width: 180px">
                Age</td>
            <td style="width: 180px">
                <asp:Label ID="lbl_age2" runat="server" Text="Label"></asp:Label>
            </td></tr><tr>
            <td style="color: #666666; width: 180px">
                Mobile Number</td>
            <td>
                <asp:Label ID="lbl_mob2" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="color: #666666; width: 180px">
                Height</td>
            <td style="width: 180px">
                <asp:Label ID="lbl_height2" runat="server" Text="Label"></asp:Label>
            </td></tr><tr>
            <td style="color: #666666; width: 180px">
                Email Id</td>
            <td>
                <asp:Label ID="lbl_eml2" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="color: #666666; width: 180px">
                Marital Status</td>
            <td style="width: 180px">
                <asp:Label ID="lbl_mar_sts2" runat="server" Text="Label"></asp:Label>
            </td></tr>
    </table></div>
a link is shown on hover of linkbutton 
javascript:webforms_DoPostbackWithOption:(NewPostBackoption("","false",true,"false"));

3 个答案:

答案 0 :(得分:5)

您是否在应用程序中有任何验证控件,通过将Cause validation = false设置为链接按钮控件来检查一次。

答案 1 :(得分:0)

有时您的系统已更改为旧时间(例如一年前),链接按钮也不会重定向

答案 2 :(得分:0)

应用程序中可能存在验证控件,通过将Cause validation = false设置为链接按钮控件来检查一次。