.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

Having multiple UpdateProgress controls working

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

I have an application that is using TabContainers and TabPanels. Within each TabPanel I have a DropDownList and a GridView. The GridView is filled on "SelectedIndexChanged" event.

I have managed to get UpdatePanel and UpdateProgress working for one on the instances but I do not seem to have luck implementing additional UpdateProgress controls for the rest on the application.

I have tried to use "AssociatedUpdatePanelId" but read that external trigger will not work. I've also tried to assign each UpdateProgress value of UpdatePanel in code behind (

UpdateProgress1.AssociatedUpdatePanelID = UpdatePanel1.UniqueID)

 , not working for me either:

I have created a Java SCript that hides GridView when UpdateProgress is being shown (works fine too)

This is what I have (and working):



<script type="text/javascript">
      window.onload = function() {
          var prm = Sys.WebForms.PageRequestManager.getInstance();
          if (prm != null) {
              prm.add_beginRequest(function(sender, e) {
                  var gridView = document.getElementById("<%=GridView2.ClientID %>");
                  if (gridVi

View Complete Post

More Related Resource Links

Multiple issues with dropdown list controls not working correctly


I am using WSS 3.0 and SharePoint Designer.  I have modified one of the items in my NewForm page so that I have a filtered lookup using a spdatasource. The filter works great, but my issue is that I can't seem to save the users selection back to the list itself.

Issue when using an ASP.NET dropdown list
I am able to bind the filtered spdatasource to an ASP.NET dropdown list control, however the item that is selected in the dropdown list is not being saved back to the list.  I am guessing that this is because the dropdown list itself is not tied directly to the appropriate list item, but... I can't seem to figure out how or where to do this.  I don't see anything in the data properties box in SharePoint Designer that allows me to tie the data back to the list itself.  Maybe I am just overlooking it somewhere?

Issue when using the native SharePoint Data View DropDownList with a filtered spdatasource
When I select "Data Fields..." on the dropdown control I get the Change Data Bindings dialog box.  From here I can select a data field to save the value back to (which resolves the issue noted for the asp.net control) and I can select my spdatasource, but... the display text and value fields below that never populate.  Thus, the dropdown list is empty when the user is filling ou

Working with DropDownList and ListBox Controls in ASP.NET

"In my application i am using dropdownlist to display all categories from a table. When the user clicks this control I display all records in that category. Category table also contains column called color.

I wanted display some categories in dropdown list different color and others in different color using ASP.NET."-Anonymous

Not getting multiple composite controls on master page


I have created two composite controls in the same assembly and registered that assembly in a master page using <%@ Register tag.

When I try to use these controls using the registered tag prefix I am getting only one control along with the tagprefix .

How to get all the composite controls present in the registered assembly?

UpdateProgress with a dummy updatepanel not working


I have a Submit button and some functionality like updating DB and fetching next page in the button click event. This process takes a long time and I want to display a message saying "Progress...." right after clicking the botton. I want to do the same in 20 other pages. So, best way to do it wd be to put the modalpopup MPE or an Updateprogress in a usercontrol or in master page. I first tried putting both of these on the page itself to test and see and neither worked.

I tried using Update progress control with a dummy updatepanel and giving the Submit button as Asyntrigger to the dummy updatepanel. I have also tried using MPE but it didnt work either. Below is an example of what i did..

<asp:UpdatePanel ID="UpdatePanel1" runat=server><contenttemplate><triggers><asyntrigger ID= "Submit"> /> /> />

<asp:updateprogress ID="Progress1" unat=server AssociatedUpdatePanelID="UpdatePanel1"><Progresstemplate>Progress.... />/>

<asp:button ID= "Submit" runat=server >

I have nothing for updateprogress in code behind. Am i missing or doing somethign wrong here? Any help would be appreciated.

Working with datepicker and input controls


Helloe all,

Please I'm developing a hotel reservation system and I have both "check in" and "check out" html "input"controls and I have linked these controls to the Jquery datepicker. Unfortunately, I'm not able to access the value of the controls in asp code behind (using their ids CheckInDate and CheckOutDate respectively).

Previously, I used asp textboxes and I was able to access the IDs in code behind but whenever the page displays and I click in any of the textboxes their respective datepicker don't show.

However, I'm able to access the html input controls in code behind when I add runat="server" but when I do that the datepicker don't show for both control when I click in the input boxes.

Someone help me so that I will be able to make the datepicker show as well as fetching/accessing the value of the input boxes (selected dates) in the code behind...... or how to use asp controls and add onclick functions to call the datepicker.

Thank you.


<script type="text/javascript">
        $(function() {       
        $("#CheckInDate").datepicker({ minDate: 0, maxDate: '+1M' });

working with multiple data sets

i am new to ssrs and looking for guidance : i need to develop a report based on multiple tables: general ledger, customer ledger and customer master... the purpose of report is to have customer segment wise sales and expense information.... for given month and YTD. customer segments are defined in customer master, sales is in customer ledger and expenses are in general ledger.. the problem i am facing are: 1. I need to display all customer segments, and if no sales /expenese for any segment, then show 0 values.. .however, if i join tables and apply WHERE clause for date..i am missing some segments due to lack of data within where condition 2. i believe having subqueries is expensive when u r dealing with millon records. further i want to know how to have a calculated field based on two different dataset fields.  

How to I apply an XAML declared animation to multiple controls dynamically?

Hello, How to I apply an XAML declared animation to multiple controls dynamically? Here is the XAML declared animation: <Window.Resources> <Storyboard x:Key="TextBlock_SB"> <DoubleAnimation Storyboard.TargetName="TextBlock_1" Storyboard.TargetProperty="(TextBlock.Opacity)" From="1.0" To="0.75" Duration="0:0:0.5" AutoReverse="True" RepeatBehavior="Forever" /> </Storyboard> Here is the code that starts the animation for TextBlock_1: (this.Resources["TextBlock_SB"] as Storyboard).Begin(); I want to apply the same storyboard/animation to TextBlock_2 and TextBlock_3 and perhaps others.  How do I do that without defining more XAML storyboards? Regards, Robert  

Is it Possible to Reuse a Trigger on Multiple Controls Easily?

I have a simple trigger that is generic such that I would like to reuse it on 15 different labels. Can I define it in one place somehow and just assing it to each of the labels rather than just pasting the same code into the style for each label?

Ajax Accordion - Multiple controls with the same ID '_content' were found

Hi I'm dynamically adding accordion panes to an Accordion Control. When I add a single pane, no problem but trying to add 2nd pane I get the exception: *Multiple controls with the same ID '_content' were found* I've tried assigning unique Ids to the panes as follows but not joy. Can anyone please help? Thanks Rob.    if (User.IsInRole(@"arcpet\RDLM - Tradecapture Initial Margin Users - Security")) {      //build header for pane      AccordionPane pneTCaptureInitalMargin = new AccordionPane();      pneTCaptureInitalMargin.HeaderContainer.Controls.Add(new LiteralControl("(TCIM)T/Capture Initial Margin"));      pneTCaptureInitalMargin.ID = "AccordionPane" + Guid.NewGuid().ToString();      pneTCaptureInitalMargin.HeaderContainer.ID = "HeaderContainer" + Guid.NewGuid().ToString();      //build content for pane      pneTCaptureInitalMargin = AddHyperLink("Trade Books &amp; Markers", "TradeBook/TradeBook.aspx?4", pneTCaptureInitalMargin);      acc.Panes.Add(pneTCaptureInitalMargin);           pneTCaptureInitalMargin = AddHyperLink("+Create New Records", "TradeBook/TradeBookDetail.aspx?acPane=4&type=new", pneTCaptureInit

ajax-updateprogress not working in IE-7,8

Im trying to show animated gif file, a small in updateprogress one when aspx page is requesting server.... its working fine in firefox, chrome, but couldnt able to workit out in IE-7, 8. Any ideas? ------------------------------------------------------------------------------------------------------------------------------------------ CODE: <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"><ProgressTemplate>        <div style="position:absolute; left: 100px;top:10px">           <img src="Images\indicator.gif" alt = ""/>            Contacting server.....       </div></ProgressTemplate></asp:UpdateProgress>---------------------------------------------------------------------------------------------------------------------------------------

Multiple Listbox Selection not working :(

I'm loading a ListBox this way, which works and shows the selected items: lstCollectionsType.SelectedValuePath = "ClientCollectionTypeID"; lstCollectionsType.DisplayMemberPath = "ClientCollectionType1"; lstCollectionsType.ItemsSource = MyClient.ClientCollectionTypes; foreach (ClientCollectionType item in MyClient.ClientCollectionTypes) { if ((bool)item.Selected) lstCollectionsType.SelectedItems.Add(item); } And when trying to save the data, I do it as shown below. But it's not getting the current selected data. It's showing the data of how it was loaded. Make sense? It's not changing what is selected. foreach (ClientCollectionType i in lstCollectionsType.Items) { if (i != null) { ClientCollectionType boo = MyClient.ClientCollectionTypes.SingleOrDefault(c => c.ClientCollectionTypeID == i.ClientCollectionTypeID); if ((bool)i.Selected) boo.Selected = true; else boo.Selected = false; } } Please help! Thank you so much for your time!

Select multiple controls on tabpage, Drag & Drop control(s) (WinForms)


I'm wondering, if somebody got some code or thoughts for selecting multiple control displayed on tab page and drag & drop control on tab page it self. Something like on windows desktop, where you can draw a rectangel with mouse cursor to select folder and files. Also, drag folder or files to different location.



Login controls not working in VS2008



I am creating a asp.net 3.5 app using VS2008 on a Vista Ultimate machine. I wanted to add the login features using the login controls. I was able to create users and roles without any problem using the web admin tool that comes with VS. But when I try to login using the same credentials I am always getting "Your login attempt was not successful. Please try again." error message. I am using MS Sqlserver 2008 as the backend. I am not using any .mdf or sqlexpress databases. I even deletd the App_Data folder. In sqlprofiler, I see the web admin tool is connecting, but when I try to login using the login control, it doesn't even show up on the sql profiler. I tried to launch VS 2008 as an admin, still no success. I tried to browse with IE or FireFox. The dev site is not hosted on IIS yet, and it is running on the dev server that comes with VS 2008. I have squandered nearly one week on this issue. Ironically I was able to to create a website last year with these same controls on VS2005 and Windows XP professional, and the site is running like a charm!

The following is the entry in my web.config file:

<membership defaultProvider="SqlMembershipProvider1"

AJAX Controls not working....


I have a simple under construction page that I am working on for my company website and I am trying to apply the rounded corners extender to a panel at the top of the page for my title.  But when I put the extender on the page and set it up for the panel that holds my title and then view the page in my development environment I get a blank page.  When the page first loads you can see the title panel flash and it disappears.  Below is my code...

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

DataAnnotation on multiple user controls displaying on wrong control


I have a table that displays a user control on each row. The user controls are strongly typed to a viewmodel which contains DataAnnotation style validation. If one of the rows has invalid data entered (lets say the 3rd row) the data annotation validates display agains the first row/user control.

How do I get the data annotation to show against the relevant user control?

I'd post a pic to show what I mean except it will not display it!.:/

My user controls stopped working in Design mode! Why?


I have a few user controls that I have been using for months but now whenever I open a page in Blend that uses one of the controls I get an invalid xaml error. The project still compiles and runs and behaves just like it's supposed to but I can't edit xaml in Design view because of this error.


In the page I have

<local:ACAVariableWidth x:Name="CIDCloseButton" HorizontalAlignment="Right" Margin="0,0,17.54,15" VerticalAlignment="Bottom" Width="174" Height="89" MouseLeftButtonDown="callerID_close" Text="Close"/>

The error is: The member "Text" is not recognized or is not accessible

In the user control xaml I have:

		<StackPanel x:Name="TopSP" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Height="76" d:IsLocked="True">
			<TextBlock x:Name="ACATB" Margin="8,8,8.5,9.5" FontFamily="APHont" FontSize="32" Padding="5,0" Foreground="White" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding ElementName=UserControl, Path=Text}" d:IsLocked="True">
					<DropShadowEffect Direction=&

Multiple Approval Not Working using Site Content and Structure


Hi all

I have two dummy users. I have given one user contribute permissions and the other as approve permissions. I have enabled content approval on my document libraries, pages library etc. I have created a few pages,documents etc  using the dummy user having contribute permissions. Now using Site Content and Structure's pending approval section i am unable to approve these docs using the second dummy user having Approve permissons.

When logged in as dummy user 2 (having approve permissons) I am able to see all the documents requiring my approval in the pending approval section of Site Content and Structure. But when i check all the check boxes and click on approve its not getting approved. The page refreshes but the items still remain in the pending approval section without any change.

Please Help...

Varun Saxena
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