Gmorning All,
I have a field in my sql db that contains data that might look like this:
System="Yes" testName="thisTestName" foran="twenty"
and I'm looking for a way to grab the string thisTestName from the field. Obviously, thisTestName is an example. The value could be any length of...
I was able to solve this:
TimeSpan ts24Hrs = new TimeSpan(24, 0, 0);
TimeSpan MTimeSpan = TimeSpan.Parse(cJob.Attributes["ResubmitDelay"]);
retryCount = Convert.ToInt32(ts24Hrs.TotalSeconds / MTimeSpan.TotalSeconds);
Chew
10% of your life is what happens to you. 90% of your life is how you...
G'morning all,
I'm trying to determine how many times in a 24 hr day that that given timespan occurs.
So, if the timespan was 00:15:00 (15 minutes), then 15 minutes occurs 4 times per hour, 24 hours in a day, so a 15 minutes timespan occurs 96 times in a 24 hr day.
How do I calculate this ...
Hello All,
When working with properties, I'm used to seeing the following code:
public string FromAddress
{
get { return _someaddress; }
set { _someaddress = value; }
}
But lately I've seen some Properties defined like this:
public string FromAddress { get; set; }
Where are the...
Hello All,
I've been out of the Web-based development for about 10 years. So forgive me if this question sounds naive. I've done **SOME** web stuff since, but have mostly focused on desktop / service apps.
I'm interviewing for a C# web developer position on Monday and wanted to know what, if...
Thanks, Jason !
When I removed the methods for iterating over a collection, then it complained. It was probably b/c I was returning "this.GetEnumerator();" instead of "base.GetEnumerator();", as you pointed out.
In any event, I redefined clsGeneric to look like this:
public class...
Hello All,
I have a Custom Class that is bound to several DataGridView controls elsewhere in my forms and is defined as follows:
namespace Collections.MyCollections
{
[DataObject]
public class clsGenericList : BindingList<clsGeneric>
{
public clsGenericList()
{...
I figured this out.
The property in the objSelectedCompany prepopulated the Department list every time it was called and that's why the two lists didn't match.
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.
Hello All,
I have a generic collection in a child Windows form and I need to pass the collection to the parent form. Does anyone know how to do this seemingly simple thing ?
I have a FormClosingEventHandler in the parent form that has the following code:
private void...
added a new application extension for .wmv and it didn't work.
THEN I realized that the "Verify that file exists" checkbox needs to be UNCHECKED, and once I did that, it worked perfectly.
Thanks again Jason !
Chew
10% of your life is what happens to you. 90% of your life is how you deal...
Thanks, Jason, for the reply.
It's IIS6/ASP.NET 2.0..., so I'll investigate further about what you said. I changed my tracing as soon as I got in this morning to write to an Event Log via this code in my HttpHandler:
if (!EventLog.SourceExists("ChewsApp"))
{...
hello all,
This is complicated but I'll start with the first error I have encountered. Whenever a user would click on a link on our site to open a .wmv file, the user would always get a "file not found" error and the Windows Media player wouldn't launch.
To combat this, I created an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.