In C# I need to compare the value of DateTime.Today /6pm, to a field that stores the Created DateTime.
Basically there is certain functionality that is only accessible on the same day as the created day and then only till 6pm.
The part I am not fully understanding is how to accurately represent 6pm on Today to compare against. Is ther...
I'm using SQL Server 2005, VB.NET 2005. I want to be able to import a very large excel file into a SQL table called "XYZ"
I've done this by doing the following:
1. Save the excel file as csv.(Using SaveAs XLCSV option)
2. Build a datatable "ABC" From CSV.(using ODBC Connection and Select * from '*'.csv command)
3. copy the datatable"...
I find it incredibly annoying to write a using statement on every one of my queries (which require its own command or write parameters.clear()) which sometimes require declaring variables outside of the using block. Its so incredibly annoying and looks much dirtier compared to the version without disposing the object.
Do i need to dispo...
Hello,
currently I develop a C#.Net application in which I'm using a custom control I developed some time ago. I need the dll to be shipped within the new application - but understandably I do not want the dll file to be used for foreign apps.
That's why I need the custom dll to be somehow compiled within the new application. Currentl...
I have been a programmer for some years now but I am a
newcomer to LINQ and C# so forgive me if my question sounds
particularly stupid.
I hope someone may be able to point me in the right
direction. My task is to come up with the ability to form a
dynamic multiple group by linq query within a c# script using
a generic list as a source.
...
I am trying to parse the contents of http://feeds.feedburner.com/riabiz using XDocument.Parse(string) (because it gets cached in a DB.)
However, it keeps failing with the below stack trace when it tries to resolve some URIs in that XML.
I don't care about validation or any of that XML nonsense, I just want the structure parsed. How can...
I guess my mind is so engaged in IIS and web applications that I can't think of a reason to go through the trouble of using a self-hosted WCF service. I have always had the availability of IIS so creating a self-hosted WCF service seems like more work than I would want to do. Why would I want to do this?
...
I got this from a Soap client request:
Exception: SoapFault exception:
[soap:Client] Server was unable to
read request. ---> There is an error
in XML document (2, 273). ---> The
string '2010-5-24' is not a valid
AllXsd value. in /path/filinet.php:21
Stack trace: #0 [internal function]:
SoapClient->__call('SubIdDetailsBy...
I have searched around and I can't seem to find where to download the latest RibbonControlsLibrary.DLL. Can someone please point me in the right direction?
...
Hello,
I have a report in Data Dynamics ActiveReports for .NET. In this report I am programmatically setting the ColumnCount property of the detail section to X. The detail section has one databound textbox.
The ColumnDirection property of the detail section is set to AcrossDown and the and then the data binding mechanism automa...
Last week I interviewed for a position at a TripleA MMORPG game company here in NE. I didn't get the job but one of the areas that came up during the interview was the about the scalability of the code that you write and how it should be considered early on in the design of your architecture and classes.
Sadly to say I've never thought ...
I'm writing a program in .net where the user may provide a large number of regular expressions. For a given string, I need to figure out which regular expression matches that string (if more than one matches, I just need the first one that matches). However, if there are a large number of regular expressions this operation can take a v...
How do I set a CLASSPATH variable during runtime while using IKVM?
I've been trying to do it by using:
java.lang.System.setProperty("java.class.path", "whatever");
The class I'm calling requires a configuration file in the classpath to work - and I keep getting errors that seem to indicate that it hasn't gotten its settings.
Is the w...
Hi everyone.
I have the following code:
public void ParseNetworkPacket(IAsyncResult iResult)
{
NetworkConnection networkConnection = (NetworkConnection)iResult.AsyncState;
string teste = NetworkPacketType.ToString();
switch (this.NetworkPacketType)
{
case NetworkPacketType.ShotPacket:
...
I have two different objects: contracts, and task orders. My requirements specify that in order to view the Details for either object, the Url should be "http://.../Contract/Details" or "http://.../TaskOrder/Details" depending on which type. They are both very similar and the details pages are almost identical, so I made a class that can...
How can I pass some data from a Global.asax event handler to a custom error page in ASP.NET without using Server.Transfer or some redirect?
...
The Enterprise Library comes with logging to the database however how do you configure to store exception information/fields in multiple columns?
In addition how would you extend to store contextual information like user, web ui, stored procedure parameters and names etc. in different database columns.
I would like to have exceptions fr...
I'm writing a simple console client-server app using MSMQ. I'm attempting to run it over the workgroup we have set up. They run just fine when run on the same computer, but I can't get them to connect over the network. I've tried adding Direct=, OS:, and a bunch of combinations of other prefaces, but I'm running out of ideas, and obvious...
I have a class, containing a list property, where the list contains objects that has an enum property.
When I serialize this, it looks like this:
<?xml version="1.0" encoding="ibm850"?>
<test>
<events>
<test-event type="changing" />
<test-event type="changed" />
</events>
</test>
Is it possible, through attributes, or sim...
I'm looking to set a user's credentials for a particular webpart/application that utilizes the SSO database within Sharepoint. Can someone point me to a code sample of how I might do this in .net? The webpart/application typically stores the user's credentials upon the first use but I'd rather they not even be bothered with entering th...