Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8755209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:48:20+00:00 2026-06-13T13:48:20+00:00

i have two user controls , both of them in the same master page

  • 0

i have two user controls , both of them in the same master page
in one of them i have a counter , and the the other one there is some code that increment and decrement that counter
if i make a reload to the whole page the counter works well and get the right number , but if i made any changes in the second user control it didn’t feel it till the next page reload

what i want is that who i can make the counter feel the changes immediately

thanks in advance

that is the code

<%@ Master Language="C#" AutoEventWireup="true"  MasterPageFile="~/MasterPages/Main.Master" CodeBehind="InboxMails.master.cs" Inherits="NAQQAB_Web.MasterPages.InboxMails" %>
<%@ Register Src="~/userControls/InboxMails.ascx" TagName="Mails" TagPrefix="InboxMailsUS" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <InboxMailsUS:Mails ID="InboxMailsLists" runat="server" />
</asp:Content>

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Main.master.cs" Inherits="NAQQAB_Web.MasterPages.Main"  %>


<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>
<%--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">--%>
<%@ Register Src="~/userControls/SearchBar.ascx" TagName="SearchBar" TagPrefix="SearchBarUC" %>
<%@ Register Src="~/userControls/UserStatusBar.ascx" TagName="LogIn_LogOutBar" TagPrefix="Shura"  %>
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">


<body marginheight="0" marginwidth="0" style="margin-bottom:0; margin-left:0; margin-right:0; margin-top:0;  ">
    <form id="form1" runat="server" method="post" target="_parent">
    <div>
        <asp:ScriptManager runat="server" ID="ScriptManager1"  ScriptMode="Release">
        </asp:ScriptManager>
        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 100%;">
            <tbody>

                <tr>

                    <td width="834" height="100%">
                        <table id="table2" border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 100%;">
                            <tbody>
                                <tr>
                                    <td valign="top" height="231">
                                        <table id="table3" border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tbody>
                                                <tr>
                                                    <td valign="top">
                                                        <table id="table8" border="0" cellpadding="0" cellspacing="0" width="100%">
                                                            <tbody>
                                                                <tr>


                                                                    <td style="background-image: url(images/topBG.jpg);" align="right" bgcolor="#1a1e1f"
                                                                        valign="top">
                                                                        <br>

                                                                        <Shura:LogIn_LogOutBar ID="userStatus" runat="server" Visible="True" />

                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>

                                            </tbody>
                                        </table>
                                    </td>
                                </tr>



                            </tbody>
                        </table>
                    </td>

                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>

</html>

i want to call function from the code behind in the user status bar when changes done in the code behind in the inbox mail page done

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:48:21+00:00Added an answer on June 13, 2026 at 1:48 pm

    try to enforce postpack to the whole page after you increment or decrement counter in your second control to make the first one take the right value

    frankly , i feel something inproper in your assumption about 2 usercontrol under same page and one of them call function inside the other this issue is responsibility of master page
    so you need to set event in master page and iside it call usercontrols to increment,decrement and showing counter

    hope my post is useful !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two user controls (ascx); one contains some forms, and the other one
I have two user controls, in one of them I have a textbox, i
I have two modal popups on a page, both inside user controls, and both
I have two User Controls already created now I want to use one as
I have a user control in a master page with two drop down lists.
I have two instances of a user control on a page. Both have fields
I have two controls which are both contained within a user control. Panel location:
I have an ASP.NET page with two instances of the same Web User Control
I have two while conditions, one inside the other, with booleans to control them.
I have two user types in my application: Investors and Advisors , they both

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.