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

  • SEARCH
  • Home
  • 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 7073027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:52:48+00:00 2026-05-28T05:52:48+00:00

Using fancy box I ahve built a photgallery. When the user clicks on a

  • 0

Using fancy box I ahve built a photgallery. When the user clicks on a thumbnail, a full size image opens in a fancy box. In that fancy box popu the user can submit comments and can reply to a comment, agree/disagree to a comment ( similar to facebook photo gallery).
All of these work fine.
My problem is, when the user hits submit button a post back happens and the pop up closes. I dont want the pop up to close, but just need the content within to update. I tried using asp:UpdatePanel AJAX control, but the page still postbacks, closing the popup. i am not sure idf it is because the update panel is within the fancybox popup. below is the code i am using. Any suggestions in fixing this would be fo great help.

Thanks!

<asp:TextBox ID="txtComment" runat="server" Height="40" Width="400" TextMode="MultiLine"></asp:TextBox>

<asp:ImageButton  ID="commentSubmitButton" runat="server" Text="Submit" OnClick="SubmitComment" ImageUrl="~/imgs/section/submit.jpg" />

<asp:UpdatePanel runat="server" id="commentsRepeaterUpdatePanel">
<Triggers>
    <asp:AsyncPostBackTrigger controlid="commentSubmitButton" eventname="Click" />
</Triggers>
<ContentTemplate>         
    <asp:Repeater ID="rptComments" runat="server" OnItemDataBound="rptComments_ItemDataBound">
        <ItemTemplate>
            //Code that Loads the comments, upon OnItemDataBound
        </ItemTemplate>
    </asp:Repeater>
</ContentTemplate>

  • 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-28T05:52:49+00:00Added an answer on May 28, 2026 at 5:52 am

    I suggest you use a href
    instead of asp button for submission…

    one more thing, use ajax for submission because once you created an asp control it requires you to include the runat=”server” which according to my experience it triggers the code behind and posts back after especially for buttons.

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

Sidebar

Related Questions

I'm trying to bind Fancy box links so that when the new links are
I’m using Jquery Fancy Box plug in. I am starting fancy box on page
Its my first time using modal windows. And I'm currently using fancy box. But
I am using fancy box iframe to display my page which has the file
ExtJS provides a fancy combo-box that has lots of features - type ahead, allowing
I am using FancyBox to generate a popup image. FancyBox (In case you are
I am looking for a fancy Slider control using JQuery/Javascript. The native JQuery slider
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I need to embed an iframe on different domain, that when click opens a

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.