|
Mbah Dhaim wrote: but if you insist to use custom retrieval system
Why are they insisting on it? What is their justification? What benefits does it bring? What is the impact on other applications in the system. (i.e. If your application is taking massive quantities of memory, what's left for other things)
|
|
|
|
|
i agree with you, to much things to manage
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
i see. thanks guys. sigh.. sounds complicated. But I'll try to figure it out. Thanks!
|
|
|
|
|
harcaype wrote: i need them because new entries add up about every second. So when new entries are added up, I have to update/refresh it. And refreshing them again takes awhile to load.
So why keep the data in two places? Just keep it in the database, so that you only have one place where you need to update it.
harcaype wrote: Also, I have a quick search option in the program, so if for example I will incorporate an algorithm for that search. Do you know the best to use?
Use the database. Searching the data is exactly what it's built for.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi all!
I am facing problems while writting an Asp.net application in VS2003. Actually I have four text boxes on a web page everyone has its own requiredfiled validator and having two buttons on the same web form. Now, Whenever, I will hit either button the both validators will validate and the IsValid returns false.
I want to validate only two validators by pressing buttons.
Example: It will work like this, when I will press Button1 then only first two text boxes validate and other remains not validate and vis-a-versa.
The following is snippet of my web page:
<asp:TextBox ID="text1" runat="server" />
<asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="text1" ErrorMessage="validate" />
<asp:TextBox ID="text2" runat="server" />
<asp:RequiredFieldValidator ID="rfv2" runat="server" ControlToValidate="text2" ErrorMessage="validate" />
<asp:TextBox ID="text3" runat="server" />
<asp:RequiredFieldValidator ID="rfv3" runat="server" ControlToValidate="text3" ErrorMessage="validate" />
<asp:Button id="button1" runat="server" OnClick="button1_Click" />
<asp:Button id="button2" runat="server" OnClick="button2_Click" />
Gaurav Arora
|
|
|
|
|
Probably not much help but .NET 2.0 has the ValidationGroup property which allows you to do what you want. I think you have to resort to CustomValidators to get what you want but it's been a long time since I did anything .NET 1.1.
|
|
|
|
|
Thanks for your attempt, I knew how to handle it in .NET2.0 but I want to do the same in .NET1.1, the requirement demanded so. I have to use Requirefieldvalidator not Custo,Validator.
Thanks
|
|
|
|
|
I'm making a Music Library and I'm using the DataGridView class to hold the songs. Each song used TagLib# to change it's attributes (Title, Artist, etc). Each song (the class), extends DataGridViewRow. The song class has a DataGridViewTextBoxCell for the main attributes. I want it to when the value of the text box is changes, an event is fired and the attribute is updated. But I can find the proper event in the DataGridViewTextBoxCell or DataGridViewRow instances. I found that DataGridViewRow has a private method titled "RaiseCellValueChanged", but I can't find the associated event.
BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.
|
|
|
|
|
Jordanwb wrote: BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.
Strange. I sometimes post for *nix with no problem at all. Used both Firefox and Konqueror...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hmm strange too because I had no problem posting this in Kubuntu.
|
|
|
|
|
Hi,
there is a DataGridView.CellValueChanged event. Doesn't that suit your purposes?
|
|
|
|
|
Yes it does. I never checked there because I was expecting the event to exist in the Row or the Cell.
|
|
|
|
|
Hello C# people! =)
i have a question for this simple piece of code:
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
private void helpToolStripMenuItem_Click(object sender, EventArgs e)<br />
{<br />
MessageBox.Show("Hello, world.");<br />
}<br />
Now is my question:
I cant get the Pop up to work... =)
|
|
|
|
|
Hi,
make sure the event is wired to the handler you wrote.
Either look using Designer, or inspect the Designer-generated code (it would be in some
xxx.designer.cs file within your project).
|
|
|
|
|
Sounds like an event handler isn't triggering it. Like Luc said, take a look around and see if the reference to it is missing.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I am writing a program that takes all the files from one folder, EXCEPT the one created today, and copies them to another folder. Everything works ok except copying only the files that were created prior to today. Instead my program copies all of the files over.
The part that is highlighted is the part I can't get to work. When the console writes out the creation time it is always of the time the files are being created currently and not when they were created orginally
if (Directory.Exists(target.FullName) == false)
{
Directory.CreateDirectory(target.FullName);
}
foreach (FileInfo fi in source.GetFiles())
{
if (fi.CreationTime != DateTime.Today)
{
Console.WriteLine("Creation Time: {0}", fi.CreationTime);
Console.WriteLine(@"Copying {0}\{1}", target.FullName, fi.Name);
fi.CopyTo(Path.Combine(target.ToString(), fi.Name), true);
}
}
foreach (FileInfo fi in source.GetFiles())
{
Console.WriteLine(@"Deleting {0}\{1}", source.FullName, fi.Name);
fi.Delete();
}
|
|
|
|
|
Hi,
fi.CreationTime contains date and time information,
whereas DateTime.Today is a DateTime whose Time part is set to 00:00:00
You need to use fi.CreationTime.Date which also gives a DateTime with zero time.
FWIW: DateTime.Today == DateTime.Now.Date
|
|
|
|
|
Thanks for the response. When I try this it only works if I have the operator set to == but I want it to be != because I don't want it to copy the current file. Also, when the console writes out the date it is always todays date. This isn't right because it should be the date of when the file was created. If it is always set to the current date then none of the files will be copied.
foreach (FileInfo fi in source.GetFiles())
{
if (fi.CreationTime.Date != DateTime.Now.Date) {
Console.WriteLine("Creation Time: {0}", fi.CreationTime);
Console.WriteLine(@"Copying {0}\{1}", target.FullName, fi.Name);
fi.CopyTo(Path.Combine(target.ToString(), fi.Name), true);
}
}
|
|
|
|
|
Hi,
The code you have shown seems right.
Make sure you don't confuse creation time and modification time, Windows Explorer can be
told to show one or the other (or both).
BTW:
- if you write to an existing file, even when replacing all the content, that will not
modify the creation date.
- if you copy a file, the new file may or may not get its creation time set to now, depending
on how you do it.
Finally, I tend to show and use a file's modification time most of the time, since that better
tracks the file's content.
|
|
|
|
|
It looks like you're absolutley right. It's giving me the creation time which is today, but I want the last modified property. How do you get that to show inside the code?
I really appreciate all your help!!
I think I may have figured it out. Do you use the lastWriteTime property?
|
|
|
|
|
FileInfo has some 15 properties, the one you need is in the documentation;
scan the list, you will spot it even if it has a somewhat peculiar name.
|
|
|
|
|
THANKS!!
It it LastWriteTime. You were very helpful and I appreciate the time you took to help me.
|
|
|
|
|
You're welcome.
|
|
|
|
|
Hi every ONE
i am working in a current project in the final process ( Crystal Reports )
there is a table that each user have more than one and more rows
i want to make a report like this view
- User_ID
row1: - Colm1 - Colm2
- Colm---------3
row2: - Colm1 - Colm2
- Colm---------3
i am using C# .net , please any one help me as soon as posible ..... URGENT
|
|
|
|
|
Ahmed EL Gendy wrote: help me as soon as posible ..... URGENT
That is considered very rude and likely won't get you any help on this site.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|