I have read about executing asynchronous operations and i found that it can be done at the SQL command executions side(that is handled during executing SQL command by adding wait handle that waits for AsynchResult) or from the UI execution side(which is done by using delegate that points to a method then begin invoke methods asynchronous...
Hi all
I have parent process that opens child process . I need to perform some functionality only when the parent process is no more running.
What is the best way to know that the parent process is not running ? Because it can be terminated violently then I don't want to make some functionality that will send signal to my child proce...
Hi;
How can one get detailed Exception thrown by the .net framework. The below log fragment shows something is wrong but what?
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Unfortunately I can not catch this exception so I can not debug. Is there a way to get a detailed information about s...
Hi,
I want to compose my own project in deep zoom composer however I would like to know on how to add text per image zoomed in just like the hard rock memorabilia
I want to consume it, using silverlight 4.0
As you notice, under right pane, it has its description about the image.
Thank you.
...
I have a problem that can perhaps be solved in a more efficient or clean way, than my current solution.
Over the past days I have gotten a fairly good understanding of how Xml serialization can be controlled via attributes, but one part of the Xml structure is so obscure, that I have not been able to find a smart solution.
I have been ...
How to raise mouse button events from code behind when we have only mouse position?
I need to raise mouse events from code behind in different positions of screen.
...
Hi,
Is is possible to say something like
"If you have those situations then SessionState is a must to use for storing your values between postbacks."
Can you list me the basic reasons which forces an asp.net developer to switch SessionState from ViewState or HiddenFields or querystrings?
thanks
...
I have a string of attribute names and definitions.
I am trying to split the string on the attribute name, into a Dictionary of string string. Where the key is the attribute name and the definition is the value. I won't know the attribute names ahead of time, so I have been trying to somehow split on the ":" character, but am having trou...
Ok given a collection of documents like this:
{
"Name": "A",
"Price": 1.50
}
How do I perform a simple aggregation on the prices in the list? I don't want to perform any grouping, just a simple scalar result.
ie. sum, avg etc
I have tried both of the following without success:
Map only:
for doc in docs
select new { sumPrices ...
I like the option of doing model first design with the Entity Framework (4). However, I haven't been able to find out how to add an additional index to a table besides the primary key.
Is this possible in the visual designer? Or do you need to add an index manually after creating the database (which would be a shortcoming of the design...
I have a bit of mess with projects coming some on 4.0 some on 3.5
Is it possible to find out what version of .NET was the dll built looking into the file (not from code!) ?
...
Hello,
I am working on an WPF application that uses a BusinessLogic layer (currently a single dll) in which I created my BL methods that will be called directly from the UI. Each BL manager is resolved with Unity (thinking on switching to MEF though...). BL classes implements a specific interface that have of course apropriate methods. ...
Hi,
I hope you could help me with the following question:
A user clicks a hyperlink in a page. Server A handles the request and redirects the client to a URL on Server B (more specifically I am using the Response.Redirect method in .NET on server A).
I have been asked to restrict access to Server B to redirects originating from Server...
Hi
I am developing a workflow in wf 4.0 on .net platform .
I added my code activity to my workflow .
An exception occured in codeactivity how can i throw that exception and catch it with try/catch activity . when error occure in codeactivity , it does not throw to parent workflow .
thanks for help
...
I'm wondering what the best way to render a scene made up of multiple-sized tiles, from back to front, with different heights.
Like this: http://www.youtube.com/watch?v=Ahfrxm6ETgA
Important stuff starts at 2:35. Ignore the horrible narration. :P
I'm using VB2008.
So here's what I have right now:
My graphics consist of bitmaps that...
Hi there.
I read many articles and posts about data annotations. But most of them just simple 'How to use the xxx attribute' articles. But what i did not find is any article on which annotations should be used and why or why not.
I mean, its clear that its good to use things like StringLength, Range or Required attributes and it's clear...
This is VS 2008 and .Net 3.5.
I use a custom deployment project script which is similar to the publish right-click menu, but which I have customised to do file renaming and various other bits and pieces. It works really well and has drastically simplified the release procedure.
I was made aware of an issue on one of our live sites thi...
Hello,
I am developing a web application in ASP.NET3.5 with C#. I also using Telerik RadAjax Control. When user click the menu then open the page with a new tab(Like web Browser).I want to create, when user back any previous tab(page) the will be show the previous data without loading 2nd time( like browser tab). Is it Possible ? plz hel...
I have several .net web applications that use the same cms-like framework. When I add new feature to this core framework I want each application to be updated with this feature. So basically I need to do the following steps:
Put App_Offline.htm in the application root
Copy files that have changed from the update server
Run SQL update s...
how to set the autoscroll position to the bottom most position??
i tried like
panel.AutoscrollPosition=new Point(0,panel.Height);
but it didnt worked:(
...