Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

update panel

$
0
0

Hi,

In my appplication has not masterpages ,redirecting from one form to another form is working but  when iam adding same module  to   another project  which is having master pages  ,div,etc... response.redirecting is not working there.

In my local system it response.redirecting is working

<asp:Content ID="Content1" ContentPlaceHolderID="project" Runat="Server"><div id="page"><div class="content"><asp:ToolkitScriptManager ID="ScriptManager1" runat="server"></asp:ToolkitScriptManager><asp:UpdatePanel ID="tsUPDPanel" runat="server"><ContentTemplate><div id="divTSMain" runat="server"><table >/<table></div><div id="divTSDetails" runat="server"><table >/<table></div><div id="divTSexpenses" runat="server"><table >/<table><center><asp:Button ID="Submit" runat="server" Text="Submit" OnClick="Submit_Click"
                Width="75px" /><asp:Button ID="Cancel" runat="server" Text="Close" OnClick="CancelBtn" Height="26px"
                Width="71px" /></center></div></ContentTemplate> </asp:UpdatePanel></div></div></content>


Here im using flipvisibility

private void FlipVisibility()
    {
        divTSMain.Visible = !(divTSMain.Visible);
        divTSDetails.Visible = !(divTSDetails.Visible);
        divCompanyExpenses.Visible = !(divCompanyExpenses.Visible);
    }

first user opens application  ,he can view only divmain and divexpenses.I have linkbtns in application  when he cliclks on  linkbtn it goes to details and invisible remaining  two.

after i place this code in content placeholder . submitbtn and cancel btn  are not working.If i remove those btns  from update panel it redirects to another page but in flipvisibility  details  those two btns are visible.

   protected void lnkBtnSun_Click(object sender, EventArgs e)
    {
              ShowTSDetails();
       }
   private void ShowTSDetails()
    {
        // Check for Name and Date
        if (tsdate.Length > 0 && txt_EmpName.Text.Length > 0)
        {
            lbl_Day.Text = "Day : " + tsweek;
            lbl_Date.Text = "Date : " + tsdate;
            FlipVisibility();
        }
    }



 

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>