.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

Binding Mode OneTime is not working properly

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :WPF


I am binding a ListBox with Mode = OneTime as i want to bind it first time only , after that if data changes i dont want my listbox to take care of that

 <ListBox x:Name="_statusListBox"
           Background="Transparent" BorderThickness="0"
           ItemTemplate="{StaticResource StatusListBoxItemTemplate}" 
           ItemsSource="{Binding Summary.ProjectStatusSummary,Mode=OneTime}"

but it works randomly , somethimes it binds data and sometimes it does not

i want to know the reason of this random behavior



View Complete Post

More Related Resource Links

Discussion board template of SharePoint 2007 not working properly


Use case 1 – Discussion board to suggest change to documents

 User adds a suggestion. The discussion board needs fields like module name, document name, section name and reason for a change etc.


 Problem 1 – When I try to add fields to the discussion board – When a user wants to post a reply to a suggestion, user screen shows the new item form and all fields instead of just a reply or comment field. Need help how can I ensue user only sees reply or comment field?


 Problem 2 – If I make these changes in the discussion board template through SharePoint designer 2007 and later if we plan to upgrade to SP 2010. Do I have to redo the changes I did on old discussion board or will upgrade take care of migration of the changes to new discussion board template available with SP 2010? 




can anyone tell me why setInterval is not working properly i want to display the time every seconds,

setInterval is suppose to execute the script every second there getting the most uptodate time of day , but it does not update it stays the same
      <script type="text/JavaScript">

          function interval() {
              setInterval("time()", 1000);
          function time() 
              var d = new Date();
              var time = d.getHours();
              var time2 = d.getMinutes();
              var time3 = d.getSeconds();

              document.write(" : ");
              document.write(" : ");
  // -->
      <input type="button" OnClick="interval()" value="Click Me!"/>


Check In / Check Out not working properly

At various points during the day, I check back in the master and CSS files I've been working on.  However, it doesn't show them as checked in ... they are still flagged with green check in SP Designer.   And what is more confusing, sometimes I can't save anything because it says that it is checked out.  But I'm the one who checked it out.  And it thinks it is checked in.  So I try to check it out again, and it won't let me check it out. The only way I got around this yesterday was to rename the master file.  Then rename it back to it's original name. Suggestions?

AsyncPattern is not working properly.

Hi all I have a WCF service which has two methods. [ ServiceContract]   public interface IAsyncInterface { [ OperationContract(IsOneWay = true)]   void Submit(CurrentJob currentJob); [ OperationContract(IsOneWay = true)]   void Execute(AsyncExecInstance exec, AsyncRequest request);       ///Async Call [ OperationContract(IsOneWay = true,AsyncPattern=true)]   IAsyncResult BeginSubmit(CurrentJob currentJob, AsyncCallback callback, object state);   void EndSubmit(IAsyncResult ar); [ OperationContract(IsOneWay = true,AsyncPattern=true)]   IAsyncResult BeginExecute(AsyncExecInstance exec, AsyncRequest request, AsyncCallback callback, object state);   void EndExecute(IAsyncResult ar); } My client is a windows service. i have 2 seperate threads for calling these 2 methods. So these 2 methods will be called parallelly. if i call this methods 15 times at a time all the 15 requests are giving to my WCF service. The first 8 requests are processing very fastly and i am getting result. after that the service is not at all responding. But the WCF service is still active. Some time though i submitted 15 request to service some of the requests are not processing. I set concurrency mode as multiple and MaxConcurrentCalls=50. That means it should handle 50 requests at the same time right? Can

mantenace plan is not properly working

hi, maintenance plan is not working it skip 20% database backup , not showin error id

Read-Only mode is not working for office document-Bug

I have a excel file in the document library. In client PC I have office 2007. Suppose two users click on that excel file. A small window pops up to select mode(edit or read-only). User1 selects edit and user 2 selects read-only. user1 made some modificatin on the document. After that save and close the file. Now user2 click on save button he also can save the file. That means modification made by user1 is overridden by user2. So it should not happen. It's a Bug. If the user opening the document in Read-Only mode then save button should be in disable mode. If any one has any workaround. Please let me know.

Task scheduler and System.IO.File.WriteAllText() not working properly

I have a simple console application that has this in mainline:  Console.WriteLine(System.String.Format("the current directory is: {0}", System.IO.Directory.GetCurrentDirectory())); System.IO. File.WriteAllText(@"test.txt", "new contents");   Console.ReadLine(); I compile this in VS 2010 and copy the EXE to a directory named "c:\test".  When I run this code in two different OS's via "Task Scheduler" and "Scheduled Task" I get different results.   In Windows Server 2003 R2 "Scheduled Task" this code will create a file as I would expect, c:\test\test.txt with the proper contents written to it.  When I run this same code on Windows 2008 R2 (64 bit version) "Task Scheduler" it writes the expected contents to an unexpected location, c:\C:\Windows\SysWOW64\test.txt. In both environments if I run the exe's from a command line, it writes to c:\test\test.txt as I would expect. As I understand it, if you don't fully qualify the file name in the first parameter of the WriteAllText method it will write the contents to the file in the directory of the executable however this seems to break down when running in the Windows 2008 Task Scheduler.  I know I can fully qualify the file name or put the expected path in a

Binding list to form not working with '&' character in list field data

Hi, I have a SharePoint list with a field called Title. I have a form based on this list with the field bound to the form as a label (for workflow to access). Here is the code for the form field. <asp:Label runat="server" id="ff2{$Pos}" text="{@Title}" __designer:bind="{ddwrt:DataBind('u',concat('ff2',$Pos),'Text','','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}" /> I have a workflow that runs through a form action button which take ff2 (title) and  does other stuff. The problem I have is with records where the value of 'title' contains the '&' character (example ab&cd). Blank is pulled in by the workflow when I get the value of ff2. I am guessing it has to do with the data binding and/or escape (special) characters coming through but I don't know how to fix it. Any help will be greatly appreciated

User Control Validation is not working properly

In my Website I have header control (header.ascx) and footer control (footer.ascx)In header.ascx one textbox and one button is there. Textbox meant for accepting search string.In footer.ascx one textbox and one button is there. Textbox meant for accepting Email-Id.Now in validation of header.ascx I had done blank checking by JavaScript. And in validation of footer.ascx  I had done blank-checking and e-mail checking by javascript.In both the control the textbox and the button both resides under Panel control whose DefaultButton property set to the respective button ids. So that if User write write something and press ENTER key from keyboard then it should do whatever respective Button_Clicks will do.Now My problem is suppose I place the mouse cursor in footer.ascx's textbox and press the ENTER key it validates properly but after that if I place the cursor inheader.ascx's textbox and press the ENTER then it is not working. Again If I do the opposite then also first one will fire but in case of second it is not firing .......

SharePoint 2010 Personal View not working properly.


Hi All,

I created three personal view in SharePoint 2010, it's not working properly as we want, when we are changing view from one to another, list data is display as newly selected view in view dropdown, but view name is not getting change. 


I created view List Users, List Company, List City. when we a trying to change view from List Users to List Company it's showing data for list company but view name is still showing List Users. same happing with List City.


Any suggestions are welcome.


Binding A ReadOnly DP with OneWayToSource mode, possible?


Hi guys,

I have a UserControl with a ReadOnly property.

Using MVVM, I want the View to be able to bind to the VM with a OneWayToSource mode.

But I get an error

The property cannot be set because it does not have an accessible set accessor.

Any idea for this issue?



Ajax MaskedEditExtender mask not working properly after turning off readonly



I ran into a strange issue with the AJAX MaskedEditExtender control, the extender is used with the Mask="99/99/9999" and MaskType="Date". Initially when the page loads the textbox was set to readonly using textbox.Attributes.Add("readonly", "readonly") in the codebehind. After the page loads if the user clicks on a certain button it would change the textbox to editable using javascript code: textbox.readOnly = false. The strange thing is after that if you start typing in the textbox you can see the entire mask (__/__/____) shifting to the right as you type. For example it looks something like this: 09__/__/____ instead of the normal 09/__/____.

If the textbox was never set to readonly in the first place this behavior won't happen. So it seems something got messed up when changing from readonly to not. I was able to reproduce this in a barebone aspx page with just the textbox, the mask extender, and a button that when clicked turning off the textbox's readonly. Anyone knows how I can fix this?

I'm using Ajax toolkit v3.0.30512


get() method of Jquery not properly working in IE



 I used get method for getting JSON data from .aspx page.This JSON data for chart application which show monthly records.For selecting month I used dropdown and defaultly I set current month chart.But for showing previouse month records in chart   i want to select the  previouse month but chart not shows selected Month record rather than it shows default record.

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=&

CAML RichText site column provision not working properly


I have used the following CAML declaration in a feature to provision some site columns:

  DisplayName="Test Rich Text

SPD pausing timer not working properly


Hi All

I am trying to pause my SPD for 5 mins but its not pausing for the right duration. Since its a looping workflow.

So everytime its pausing for a differnet duration. For the first time its pausing for 7 mins. henceforth its pausing for 10 mins. Please Help!!!!

Varun Saxena

ReportManager URL not working in Sharepoint mode


Hello Friends,

I am ali, I am so confused why the Report manager URL(http://<servername>/Reports is not working in sharpoint integrated mode 

In my local system

1. at the time of SQL Server 2008 R2 installation Reporting services enabled In Native mode.
2  In Reporting service config manager tool http://<serverName>/Reports URL is working in Native mode. Here i am able to create New Roles.
3. In Reporting service config tool When i create a new database in sharepoint integrated mode, the the Report Manager URL http://<ServerName>/Reports not working, gettig this error "This operation is not supported on a report server that is configured to run in SharePoint integrated mode. (rsOperationNotSupportedSharePointMode)"
4 . From both databases(In native mode and sharepointmode) the the webservice URL http://<servername>/ReportServer working fine.

Reporting Services Config manager :

             Report Server Service a/c  : Network Service

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