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 4059312
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:11:32+00:00 2026-05-20T15:11:32+00:00

In my child page i have an imageButton, which is surrounded by the UpdatePanel.

  • 0

In my child page i have an imageButton, which is surrounded by the UpdatePanel.
When the user clicks on the image button a record is removed from my database.

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <Triggers><asp:AsyncPostBackTrigger ControlID="btnRemove" /></Triggers>
    <ContentTemplate>
            <asp:ListView ID="ListView2" runat="server">
                <layouttemplate>
                    <asp:PlaceHolder id="itemPlaceholder" runat="server" />
                </layouttemplate>
                <ItemTemplate>
                  <asp:ImageButton ID="btnRemove" runat="server" CommandName='<%# DataBinder.Eval(Container.DataItem, "ID") %>'/></ItemTemplate>
            </asp:ListView>
 </ContentTemplate>
 </asp:UpdatePanel>
</asp:Content>

In my master page i have literal control which displays the records for the current user (something like Records: 10)

The RecordsCount control is updated on the page Load event of the MasterPage

 Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      RecordsCount.Text = GetRecordsCount()
 End Sub 

So here are my questions

  1. How can i update the RecordsCount control?
    I mean i use postbacks for removing records from the database. And currently the RecordsCount control will be updated if the user hits the Refresh button of the Internet browser.
  2. How could i apply the Jquery Highlight on the RecordsCount control when the user clicks on the btnRemove button on the child-page?

UPDATE: Well the first question is solved by using javascript

  • 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-05-20T15:11:33+00:00Added an answer on May 20, 2026 at 3:11 pm

    Well it sounds like i have had a happy end!

    The RecordsCount control is updated with javascript while the (Attribute Ends With Selector) Jquery was applied successfully via this post

    <script type="text/javascript">
            $(document).ready(function () {
                $('input[id$="btnFavorite"]').click(function () { $('#Favorite').effect('highlight', { color: '#AAAAAA' }, 3000); }
            });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a child page LoginContent.aspx which contains a login form. If the user
I have an asp.net page which launches a child page in another browser window
I have a child page with an UpdatePanel on it that is connected to
I have an ImageButton and a FileUpload controls in a child page of a
I have Parent page and a Child page('empW.cfm'),which is nothing but a popup window
I'd like to have a page that uses a child master page, fill in
I want to change master page some label value from child page.
If I have child class,the child class inherits all methods from the parent,but how
Hii, I have function established in child page, that is using in the childpages.
Is it possible to refresh parent page from child's child page using javascript. I

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.