none
为什么我用的ajax 文本框水印效果会刷新 RRS feed

  • 问题

  • 在使用了  asp:timer  控件,每隔3秒执行一次

    但是遗憾的是我的文本框水印也跟着在闪,我不希望它闪,请问这是为什么?怎么解决啊,谢谢各位老大了
    <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
     <asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer1_Tick">
            </asp:Timer>
    <table>
     <tr>
                            <td align="right">
                                办理细则:</td>
                            <td align="left" colspan="5">
                                <asp:TextBox ID="TasksRules" runat="server" TextMode="MultiLine" Rows="4" Width="93%"></asp:TextBox>
                                <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="TasksRules"
                                    WatermarkCssClass="watermarked1" WatermarkText="此处填写新拟任务的详细说明信息">
                                </cc1:TextBoxWatermarkExtender>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                来源依据:</td>
                            <td align="left" colspan="5">
                                <asp:TextBox ID="WorkFromBase" runat="server" TextMode="MultiLine" Rows="4" Width="93%"></asp:TextBox>
                                <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="WorkFromBase"
                                    WatermarkText="此处填写新拟任务的来源依据" WatermarkCssClass="watermarked1">
                                </cc1:TextBoxWatermarkExtender>
                            </td>
                        </tr>
    </table>
    
    
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:Literal ID="Literal6" runat="server"></asp:Literal>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                                    </Triggers>
                                </asp:UpdatePanel>
    



    2009年8月4日 7:24

答案

  • <asp:UpdatePanel ID="UpdatePanel2" runat="server" RenderMode="Inline" UpdateMode="Conditional">
                                    <ContentTemplate>
                                             <asp:TextBox ID="WorkFromBase" runat="server" TextMode="MultiLine" Rows="4" Width="93%"></asp:TextBox>
                                <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="WorkFromBase"
                                    WatermarkText="此处填写新拟任务的来源依据" WatermarkCssClass="watermarked1">
                                </cc1:TextBoxWatermarkExtender>
                                    </ContentTemplate>
                           
                                </asp:UpdatePanel>
    2009年8月4日 11:09