|
One option would be to add a DateTime column to a dataset retrieved from your initial query of 'table_as400', loop through the dataset to edit/insert this DateTime column with the correct date according to the four various "date" related fields in each row of your table, and then pass that dataset object as your data source. You could then filter the date range according to the DateTime column you added. Of course, if your initial query is tens of thousands of records, this option is unlikely to be elegant.
Another option would be to concatenate the date fields in your initial query AS some new named field into a "yyyyMMdd" format and then filter against that new field.
|
|
|
|
|
Thanks Paas, lemme try what you said.
|
|
|
|
|
Hi,
if your database supports selection expressions you could do something like
day+100*month+10000*year < 20080721
if it does not allow such, you will have to add a column containing day+100*month+10000*year
or something similar, or just a real date!
|
|
|
|
|
I'm gonna play around with the expressions u mentioned, anyway THANKS a lot........!!!
|
|
|
|
|
when create object from web service class
and call any method event error (the operation time out)
|
|
|
|
|
Can any one Help
I think ASP.NET web sites is within the file system, without the need of IIS Server.
How do the File System Web Sites work in ASP.NET 2.0 and what is the use of File System Web Sites in ASP.NET 2.0?
|
|
|
|
|
They run in a standalone highly cut down web server called Cassini. It operates by listening to requests on a different port to the default port 80. When you start debugging your web application, it runs on the *new* port.
|
|
|
|
|
Hi,
I'm trying to Create a windows service in C#. Could some one assist me in creating a windows service that reads mail on a periodic basis from "MSoutlook inbox" of a given mail Id (say "xyz@abc.com" with Host = "smtpx14.msoutlookonline.net" username = "uname" and password="pwd")?
Thanks in advance .........
Regards,
Kathir
|
|
|
|
|
kathiresanmurthy wrote: that reads mail on a periodic basis from "MSoutlook inbox" of a given mail Id (say "xyz@abc.com" with Host = "smtpx14.msoutlookonline.net" username = "uname" and password="pwd")?
What is this for?
How do you have the username and password?
Where is this process going to run, on what machine in your network architecture?
led mike
|
|
|
|
|
Hi Mike,
I'm trying to Create a windows service in C#. Could you assist me in creating a windows service that reads mail and stores the message in to a database on a periodic basis from "MSoutlook inbox" of a given mail Id (say "xyz@abc.com" with Host = "smtpx14.msoutlookonline.net" username = "uname" and password="pwd")?
Thanks in advance .........
modified on Monday, July 21, 2008 11:52 PM
|
|
|
|
|
Hi,
I ve one desktop application.
I ve used one Custom Tab Control with some background image.
and ve one GroupBox in one of the Tab Page.
The backcolor of the GroupBox is Transparent.
It all works well with WindowsXP theme but when I change the Theme to
Windows Classic the Transparency of the GroupBox goes away and it is shown with System Control backcolor. But the Tab Page is having its background image.
Is there any solution for this?
Waiting for some helpful answers...
Regards,
SIFAR.
modified on Monday, July 21, 2008 8:28 AM
|
|
|
|
|
One of the problems that developers face is the different visual styles that must be tested with an application. The best thing to do would be to detect when the theme changes and what theme it was changed too. When it happens you will have to alter the controls to better suit the visual style.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Thanx Thomas,
I tried the following in Form Load event and it worked for all themes.
gb1.BackColor = Color.Transparent;
Regards,
SIFAR.
|
|
|
|
|
public class g1
{
public int OID {get;set;}
public string Name{get;set;}
public bool IsActive {get;set;}
}
IQueryable<g1> _all;
_all = GetAll_g1().AsQueryable();
List<g1> partOfAll = _all.where(p => p.IsActive == true).ToList();
I have a main list and a part of it's.
I changed a g1 from partOfAll // old: Name = "x", IsActive = true new: Name = "x", IsActive = false
I want to compare these two list and set to main list which one is changed in partOfAll
thanx (sorry for my english)
|
|
|
|
|
You can't find out which one has changed by comparing the lists, as the lists only contains references to the objects. There is only one copy of each object, not one copy for each list. When you change the object, the change is visible from both lists, as they both reference the same object.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: When you change the object, the change is visible from both lists, as they both reference the same object.
are you sure about this. Im sure that they are not both reference the same object.
in this case mainlist is unaffected from any changes, because ".ToList()" returns new copies.
modified on Monday, July 21, 2008 12:13 PM
|
|
|
|
|
enginço wrote: Im sure that they are not both reference the same object.
Good for you.
Try it and be absolutely sure, it only takes some 10 lines of code to prove you right or wrong.
|
|
|
|
|
enginço wrote: are you sure about this.
Yes, I am absolutely sure about this.
To be really really absolutely 100% sure, I verified that the lists contains the same objects, and that changes to the object in one list is visible through the other list.
enginço wrote: in this case mainlist is unaffected from any changes, because ".ToList()" returns new copies.
No, it doesn't. There is no constraint that the class in the generic enumeration has to have a public parameterless constructor or implement the IClonable interface, so the method can't create copies.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
yes you are right,
but I was absolutely sure before write. I tried two times to be sure.
methinks, I lost in my codes.
IT'S MY FAULT.
Hmmm, my eyes may be broken but where is my rationality?
may be I should less work.
I tried if you know or don't :P
over and over again I'm sorry
modified on Tuesday, July 22, 2008 3:25 AM
|
|
|
|
|
hi,
I have two issues, if u could help, would be a great assistance.
- line.unregister() using sipxtapidotnet api does not work although line.register works. why? is there any bug in sipxtapi or I am missing something?
- I want to register my line extensions to sip proxy server using sipXtapidotnet api, but how can i do that because there is only line.register() method which registers the line to the proxy server not the extentions.
Regards
Atif Ali Bhatti.
|
|
|
|
|
You would probably be better off checking with the vendor of the sipxtapidotnet api.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hi,
thnx for the reply but why i asked here is due the fact that sipXtapidotnet is an open souce api and has no documentation or i might not be able to find. so there would be some one could help me out. could u as well.
thnx
Atif Ali Bhatti.
|
|
|
|
|
They have an open forum on sourceforge here[^].
Dave
|
|
|
|
|
hi,
yeah it is there but i have used my options there.
atif ali bhatti.
|
|
|
|
|
Hello,
VS 2008
I am adding menuItems to a menuContext. However, I only want to allow a maximum of 10 menuItems to be added. This works ok.
However, if a menuItem is about to be added. Which is already contained in the menuContext. Then I want to get the index of this, so that I can remove it. And add in index 0.
The idea is to add phone numbers, and display the most recent one that was dialed. This is why I am adding at index 0. However, if a phone number is already in the menuContext then I need to find it so that I can remove it.
I have tried using the contains, Find, and IndexOf methods, but no use. See comments below.
I have tried using the Dictionary and IList to keep track of the items. However, this doesn't seem be the right solution either.
Many thanks for any suggestions,
<br />
<br />
public void AddToRedialHistory(string number) <br />
{ <br />
this.shortcutRedialMenu = new MenuItem(); <br />
this.shortcutRedialMenu.Text = number; <br />
<br />
<br />
<br />
int count = this.ctxRedialMenu.MenuItems.Count; <br />
if (count > 9) <br />
{ <br />
this.ctxRedialMenu.MenuItems.RemoveAt(9); <br />
} <br />
<br />
this.ctxRedialMenu.MenuItems.Add(0, shortcutRedialMenu); <br />
<br />
<br />
this.shortcutRedialMenu.Click += new EventHandler(this.ShortCutRedial_Clicked); <br />
} </string>
|
|
|
|