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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:53:24+00:00 2026-06-07T23:53:24+00:00

Stumbled into another roadblock. Right now I have a page containing Plupload and a

  • 0

Stumbled into another roadblock. Right now I have a page containing Plupload and a repeater that basically pulls all the uploaded images from database. This page is loaded dynamically in colorbox.

What I need is for the repeater to update itself when new images is uploaded into the database. I do this by just calling the Repeater and databind it (Repeater1.Databind()). I’m pretty sure the solution lies in Ajax but I’ve looked around and have even used them to call a web service but how do you execute a code behind method?

The code behind method that I want to execute is:

Public Sub reBind()
    Dim dt2 As DataTable = blOrgLogo.getOrgLogo(userId, False).Tables(0)
    If (dt2 Is Nothing) Or (dt2.Rows.Count = 0) Then
        ' Nothing is returned
    Else
        repLogoCollection.DataSource = dt2
        repLogoCollection.DataBind()
    End If
End Sub

One example I saw online state that this can be done use PageMethods but I can’t get it to work with the above mentioned method.

I can’t use the ASP.Net Ajax Timer control as it just doesn’t seem to be working when the page is loaded through colorbox. (If anyone have a solution for this it would be awesome as that would simplify everything haha)

Another piece of info that I’m not sure may be of any use is that the repeater is binded in page_load.

Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    userId = Session("UserID")
    Dim dt As DataTable = blOrgLogo.getOrgLogo(userId, False).Tables(0)

    If (Not IsPostBack) Then
        If (dt Is Nothing) Or (dt.Rows.Count = 0) Then
            ' Nothing is returned
        Else
            Repeater1.DataSource = dt
            Repeater1.DataBind()
        End If
    End If
End Sub

The Plupload javascript:

// Client side form validation
$('#uploader').submit(function (e) {
    var uploader = $('#uploader').pluploadQueue();

    // Validate number of uploaded files
    if (uploader.total.uploaded == 0) {
        // Files in queue upload them first
        if (uploader.files.length > 0) {
            // When all files are uploaded submit form
            uploader.bind('UploadProgress', function () {
                if (uploader.total.uploaded == uploader.files.length)
                    $('form').submit();
            });

            uploader.start();


        } else
            alert('You must at least upload one file.');

        e.preventDefault();
    }
});
  • 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-07T23:53:25+00:00Added an answer on June 7, 2026 at 11:53 pm

    You will need to use

      $.ajax({
                type: "POST",
    //Location to the webservice or the webmethod
                url: "Services/Service.asmx/reBind",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function(data) {
                //on success     
                },
                error: function(ex) {
               //on error            
                }
            });
    

    And above your method add [WebMethod(true)] you may need to find the vb.net equivalant of this as that is what i used for c#.

    As for the ajax call im not sure if you have to have the code in a web service I am pretty sure even if it is in a class it will work, you may have to try both.

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

Sidebar

Related Questions

I have stumbled into the :not() selector on day 12 of Jquery. I would
I'm writing a script in AutoHotKey, and I've stumbled upon an impasse. Right now
I have recenlty stumbled into Zend Lucene port of Lucene project. I have a
I've stumbled into a tiny problem, which, for some reason, i have no idea
here's a problem I just stumbled into: I have an php based web service
I have recently stumbled into this really neat api for showing callOutbubbles in android
I seem to have stumbled into an interesting anomoly with KnockoutJS. I have an
I have stumbled into several methods of looping in JavaScript, what I like the
I'm currently learning Hibernate, and I've stumbled into this issue: I have defined 3
Answering another question , I stumbled upon the man page of a function called

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.