this is my code -
Dim provider As CultureInfo = CultureInfo.InvariantCulture
Dim a1 As DateTime = Nothing
insexp = DateTime.ParseExact(date1.SelectedValue, "MMMM yyyy", provider)
If a1.Month = Today.Month AndAlso a1.Year = Today.Year Then
a1 = Today.Date
End If
...
I was wondering when do I use buildup and when do I use resolve, when using the Unity IOC.
And when do I call teardown?
Thanks
...
I have stumbled upon a situation where I cannot start more than a certain number of .Net windows services. Our software system is as set of 8-9 windows services and I want to create 5 logical environments on one machine (i.e about 40 services). To reproduce the problem and to prove that it is not an application issue I created a simple w...
When defining a relationship in entity framework 4 in a 1-to-many relationship using POCO classes why does the relationship have to be defined at the child level.
for example say we have an order that has many products.
The relationship in the mapping file for the product would look like:-
Relationship(e => e.Order)
.Fro...
Hi. I am using .NET 2.0. My Csharp Application will cursh sometime. And there are some .net error logs at the "System" Category from Event Viewer explorer.
Error Log Sample.
Error, such as:
11/24/2009 3:21:17 PM .NET Runtime 2.0 Error Reporting Error
None 5000 N/A MyCompany-9BDDB24555 EventType clr20r3, P1 ...
If you have ever used SQL Server Management Studio, you would have noticed how query results begin to show in the viewer before the query is finished and all results are received by the client.
I am looking to implement (reuse) that functionality for my own data store / data streaming farm.
Client sends a query to the server and gets ...
I am getting repeated errors about the ReadOnly property on performance counters whenever I try to debug a .NET windows service app. This app works fine on x86 windows vista, or x86 windows 2003. It's just stopped working on my new 64bit dev machine.
I've run the relevant InstallUtil invocations on 64bit and 32bit command line VCVARS.b...
So I need to procedurally generate a background image for a grid, it only takes .1sec.
So I can wire into the SizeChanged event, but then when you resize the chart, it goes and fires the even maybe 30 times a second, so the resize event lags out signifigantly.
Does anybody know a good way to wire into the resize event and test weathe...
how to get ip address of LAN system having linux operating system using c#.net(running on windows server)
...
Does ASP.NET worker process still return data in chunks of 31Kb
This MSDN article written in May 2004 specifies the following.
When using the ASP.NET process model,
the ASP.NET worker process sends
responses back to the client, it first
sends them through IIS in 31-kilobyte
(KB) chunks. This applies to .NET
Framework 1.1,...
Hi there,
In pageA I have a HyperlinkButton that links to pageB
private void Link1_Click_1(object sender, RoutedEventArgs e)
{
HyperlinkButton btn = sender as HyperlinkButton;
string url = btn.Tag.ToString();
this.mainFrame.Navigate(new Uri(url, UriKind.Relative));
}
How can I make a COMPLEX obj...
Hi,
The Following is my code to print preview for an excel document.
The compilation is successful.
But the preview window is not visible. Can any body point me what is the error. Is there is need to add any more codings or dlls.
(Note: The Document contains data)
Excel.Application excelApp = new Excel.Application();
...
Why we use CLR procedures. Is there any significance of CLR Procedures or any example where CLR Procedure is the only solution?
...
I am creating reports in Crystal report-12. Is there any property through which i can hide/change visibility of Y Axis of Bar diagram?
Thanks in advance.
...
I am facing a wierd socket connection problem in .net windows application.I am using socket from .net to asynchonously communicate to a legacy intersystems cache database.I have a specific timeout value in the application, when the timeout occurs, user is prompted to stay connected to the application. When I say stay connected, socket is...
Is it possible to open socket connections running on an Azure server from a Silverlight app. If so, are their any examples
...
I have a file with a dozen classes and i use reflection to generate data from it. I was thinking it may be cool if i had a way to configure all of the classes in that file at once. How might i do this?
-edit- everyone seems confused. I posted a possible solution below.
I want to attach data to a file. While using reflection i would lik...
Here is my code in which i generate comma separated string to provide a list of id to the query string of another page and i get the comma at the end of string.
<script type="text/javascript">
$(document).ready(function() {
$('td.title_listing :checkbox').change(function() {
$('#cbSelectAll').attr('checked', fal...
I have uploaded an image with an jpg extension and added text on photo using Graphics.DrawString in .NET web application. Then if I apply other editing tools like rotating the image, the text added gets blurry.
What is the reason and a solution for this problem?
...
I have a fullscreen window, and I want to prevent pop up windows that appear at the right bottom corner of my screen. I set the Topmost property to true, but apparently it does not help. I also tried activating the form and giving it the focus once it got deactivated, but that did not help either. What is a way to ignore such windows whi...