.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

refresh listbox on updatepanel ajax control tool kit

Posted By:      Posted Date: October 13, 2010    Points: 0   Category :ASP.Net

Hi all, 

i have a dropdownlist and a listbox inside an update panel. I populate the listbox with a selected value of the dropdownlist and works ok. The problem is when delete an item from the listbox because does not the refresh of the listview and still to watch me the deleted item. 

how can i do the refresh?

pd: i am using framework 2.0

thx in advance!

View Complete Post

More Related Resource Links

error when I use ajax control tool kit



When I use some control of toolkit like watermarkextender the ajax dissable. If I not use any control of tool kit all goes ok. Why Can I use tookkit? I use vs 2008 and dll of version 3.5 of toolkit is loaded correctly.

What is the problem?


ajax control tool kit


Hi Everybody,

Iam new to ajax control toolkit.

when  i am trying to submit the form like this


<script type="text/javascript">
            function checkDate(sender,args)
                     if (sender._selectedDate < new Date())
                                    alert("You cannot select a day earlier than today!");
                                    sender._selectedDate = new Date();

Flickering Problem while using a Ajax Timer Control to refresh a chart control in asp.net2010

Hi Everybody ,  

I am facing a flickering issue when i am trying to refresh a chart control on the tick of a timer .I am listing

below the code of my application ,Please help me remove this problem so that chart control get refreshed without any flickers on the specified time interval

Thanks in advance.

 C# code:

public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        if (!Page.IsPostBack)
            MyLabel.Text = System.DateTime.Now.ToString();
            Txt1.Text = "Mohit";

    protected void Timer1_Tick(object sender, EventArgs e)

        Label1.Text = "Grid Refreshed at: " + DateTime.Now.ToLongTimeString();

    public void BindData()
        DateTime st = new DateTime(2010, 6, 1);
        int dys = 12;
        Dictionary<DateTime, long> dict = GetData(st, dys);

        foreach (DateTime d in dict.Keys)
            string xlab = d.ToString("M/d");

            DayOfWeek wd = d.DayOfWeek;
            if (wd == DayOfWeek.Sunday || wd == DayOfWeek.Saturday)
                Chart1.Series["weekends"].Points.AddXY(xlab, dict[d]);

Listbox control with Ajax


Hi all,

As a newbie in Ajax. So I ask somebody for help.

I have 2 listboxes (properties: selected mode = multiple, autopostback = true) and 2 buttons. The items of both Listboxes come from database.

The item(s) of the 2nd listbox are some of the items of the 1st listbox.

What I want is: I can 'move' the item(s) between 2 Listboxes by clicking the buttons.

My code workt goed, but als we know, the screen do a flicking. I know that we can avoid the flicking with Ajax. But I don't know how?

I have googled, but find no answer in detail which can guide me.

Here is the process:

When page_load, the 2 buttons are not enabled (enabled = false) and the item(s) of the 2 listboxes are populated from database. When 1 of the items in the 1st listbox is selected, the 'right arrow' button is set to enabled = true. When this button is clicked, the selected item(s) will move to 2nd listbox. The selected item(s) in 1st listbox will be set to enabled = false and the 'right arrow' button set to enabled = false.

When 1 of the items in the 2nd listbox is selected, the 'left arrow' button is set to enabled = true. When this button is clicked, the selected item(s) will be remove from 2nd listbox and will appear in 1st listbox by setting to enabled = true and the 'left arrow' button set to enabled = false.

How to use required field validator along with ajax tool kit editor control?



How to use required field validator along with ajax toolkit editor control?

GridView Multiple Filter AJAX Control

This AJAX control enables the user to filter data within any column inside a GridView. The user can add multiple filters and can delete existing ones too.

watermark textbox using Ajax control

This is pretty simple compared to jquery. Since we need refer a dll only. we dont want any script for this. we just include that reference into our website.

UpdatePanel is not a known element - message when upgrading to 1.0 ajax


It worked on one of my old pages.  I change the web.config, renamed all the <asp.

On some aspx page it doesn't recognize the updatepanel.  It only does on one page.  If I create a new aspx page with a different name - then it works.

Should I just create a new web project ajax - then copy all my code into there?  Or is there a way to get those old pages to recognize the new ajax controls?

VWDE 2010 Won't Install Ajax Control Toolkit on XP Pro


To my displeasure I cannot find VWD2005 which at one time would generate a complete web.config for Ajax so I downloaded and installed VWDE 2010 to a clean install of XP Pro.

I've created a new tab on the toolbar for the controls but after I select the Ajax dll to add the controls to the toolbar it grinds away and then goes poof and closes down the task leaving VWD look as if I had never even created the tab in the toolbar. 


Any advice here?

Persist data in a dynamically populated ListBox in a user control


Hi All,

I am trying to persist data in a dynamically populated ListBox in a user control. Here are the details

I have a user control which contains a a listBox and button. On Page_Load of user control I am populating the ListBox control with some values. On Click of button, I am trying to fetch the values which I have selected in ListBox. Though this seems very simple and straight forward I am unable to fetch values.

My Page_Load Function

void Page_Load(object sender, EventArgs e)










My Click Function

Protected Void Button1_Click(object sender, EventArgs e)


       string strValue = listBox.SelectedValue



I have placed brake point at Page_Load and on click function, I am seeing that the moment the breakpoin

Open different page using Ajax Modal PopUp Extender Control

The article Open different page using Ajax Modal PopUp Extender Control was added by Chintan Dave on Thursday, July 15, 2010.

You May use Modal Popup Extender to open some part of the page as Popup. But there we don't have any property to open other html or aspx page in Popup window.We can do it using IFrame control. What we have to do, just add IFrame control in Panel that

How do you insert a google map into an ajax updatepanel?


I have built a site that I am using google maps on.  The default page has a google map with info windows containing links and all works great... until a user clicks on the link in the info window.  Doing so takes them to a community page that I have built.  On this community page, I have an ajax update panel that has 2 panels nested inside of it with the visibility set for one to be on and the other off.  The default panel shows community photos, and the second panel I want to show the google map and common directions to the community.  In testing, my buttons to switch the visibility of the panels works great as it should without postback, but when I try to add the map to its panel, it does not show up.  I am new to ajax as well as google maps and I'm not sure why the same code would work fine on my default page but not the community page.  The only obvious thing I can assume is because the community page map is in an update panel.  

How do you insert a google map into and ajax updatepanel and have it work correctly?  Many thanks in advance. 

re load javascripts and jquaries after ajax refresh


I use javascript hints for my textbox and when page loads I set that, but after submiting data for example in the case of error in input and need for inputing again the data it doesn't show the hints, which means that when ajax sends Httprequest and gets Httpresponse and refreshes the update panel , that panel doesn't accept loaded jscripts again, so they should be loaded again.

I do not know how to do that in asp.net, any tips or recomendations?

Ajax Asyncfileupload doesn't work as soon as I put it in a control


Hi guys,

I can't get my <ajax:asyncfileupload> working and I don't see why...

When outside any panel or table it is working well, but as soon as I put it in a <asp:panel> or table I get a strange error which seems to be on client-side but I don't understand what's happen here. Here is the code and code-behind and Javascript.

Here's the error: 


Here's my front-code:

<%@ Page Language="VB" MasterPageFile="~/masterpages/mpSqueletton.master" AutoEventWireup="false" CodeFile="frmAdmGestSocietes.aspx.vb" Inherits="adm_frmAdmGestSocietes" title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
<script type="text/javascript" language="javascript">    
        function uploadError(sender,args)
          document.getElementById("<%= lblStatus.ClientID %>").innerText = args.get_fileName(), "<span style='color:red;'>" + args.get_errorMes

AJAX rating control on DataRepeater problem



 I am using a DataRepeater control to display records from a database. I have placed an AJAX rating control in the repeater. The control works fine for the first record in the data repeater but it does not work for the rest of the records. The problem is that the control renders fine on the screen but I cannot click it - the mouse changes when hovering over it, but the control does nothing, not even when I click it. The first item works ok though. Any ideas what could be the problem?

 Thanks a lot

Problem with AJAX control toolkit


Hi guys

i'm newbie to AJAX usage.

i'm using visual web developer 2008 express edition

i downloaded AjaxControlToolkit.Binary.NET35 from codeplex site.

i extracted the zip file.

I added the toolbox to visual web developer by adding a new tab naming it ajax kit.

added tools to it by choose item and selected AjaxControlToolkit.dll ,the one i unzipped.

AJAX tools appear in toolbox.Even after using script manager tool,when i drag one of the contols for example autocompleteextender,i get a circle with black diagonal line indicating i cant use the tool

Why is it so..

when i hard code the the controls in tags in source tab ,i dont get an error but i dont get the tool in design view...

the following lines are also present

<%@ Register assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>

Can anyone plz help me...

It's urgent

Thank u

Ajax Control Toolkit problem

I have been trying over a week to make ModalPopup work. Still can't understand how to do it. Can somebody help me? Actually, I didn't find a way to use ANYTHING from the Ajax Control Toolkit.I want to put a ModalPopup with the Toolkit 4 in the Log In of this file:<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebApplication1.SiteMaster" %> <%@ Register      Assembly="AjaxControlToolkit"      Namespace="AjaxControlToolkit"      TagPrefix="ajaxToolkit" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head id="Head1" runat="server">     <title></title>     <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />     <asp:ContentPlaceHolder ID="HeadContent" runat="server">     </asp:ContentPlaceHolder>     <script runat="server"> </script> </head> <body>     <form id="Form1"
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend