|
do you see any difference between the following lines ?
public static string HashAlgorithmType
public override string HashAlgorithmType
|
|
|
|
|
Yes there is.
I see my mistake. I was using that property in my custom membership provider class, and there is no such property.
|
|
|
|
|
you should be able to override it statically: public static override string...
en watse naam is daai..?
|
|
|
|
|
Hi All,
I have a single table that contains the following Columns
As you can see i generated the data base on ASc on id's
Select * from Call_register order by id
Table Call_Register
id Call(in Hour) Seconds
76 00:04:23 263
76 00:05:58 358
76 00:06:38 398
77 00:06:22 382
77 00:01:29 89
77 00:10:28 628
77 00:01:18 78
78 00:03:35 215
79 00:07:26 446
I want to regroup them as follows : want to also keep track of number of time id occurs:Like
id occurance call(in Hour) totalSeconds
76 3 times 00:04:23 +00:05:58+00:0638(= 263+358+398=
77 4 times 382+89+628+78=1019seconds
Could you please help in getting me the script that enables me to generate in this format.
Please advice
Thanks
-- modified at 12:14 Wednesday 11th July, 2007
|
|
|
|
|
Please use the SQL forum:
Here[^]
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
Ok im building an application in C# to modify add items to an xml file which is imported into flash , Im completly new to XML in C# but i know what im doing in flash so ill just say what i need to happen .
here is my xml
{?xml version="1.0" encoding="utf-8" ?}
{EventList}
{Events sourceurl="http://blah.net"}
{item type="Alert"}
{Time}1{/Time}
{Type}2{/Type}
{Name}3{/Name}
{Description}4{/Description}
{/item}
{/Events}
{/EventList}
Now all i need o the application side is to add items ie {item ... {/item} thats it im not talking about generating the xml above and saving it im talking about making a new {item type="Alert"} ... {/item} and adding that abovethe old one and saving it .
Can anyone tell me how to do this ? Thanks
(yeah i know my xml looks funny just replace the brackets with notepad they dont show up)
|
|
|
|
|
This can be accomplished using XmlDocument s and XPath . This[^] article and demo project demonstrate it nicely.
|
|
|
|
|
thanks i tried the demo works perfectly
|
|
|
|
|
how do we arrange them in ascending order..
|
|
|
|
|
Do you want to arrange arrays in ascending order? Or do you want to arrange the items in an array in ascending order?
Try to work some on the clarity of your question.
---
single minded; short sighted; long gone;
|
|
|
|
|
sinji_solanki wrote: how do we arrange them in ascending order..
By using a sort algorithm.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
If you want to place a threat for every question of your homework.
Don't go on!
Place them in one question, so we only need to downvote this rude behaviour once!
All the best,
Martin
|
|
|
|
|
The technical term for that is: sorting.
You may want to read up on the Array class, maybe it has some kind of sort method...
|
|
|
|
|
I think you have to populate them in ascending order
|
|
|
|
|
|
Do you have a question?
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: Do you have a question?
He probably does, but it's a homework question.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Colin Angus Mackay wrote: He probably does, but it's a homework question.
It looks like a homework assignment to me. Not a question at all.
---
single minded; short sighted; long gone;
|
|
|
|
|
sinji_solanki wrote: enter a number and display next 5 prime numbers.
You should attempt your homework questions yourself. If you get stuck post the code and we'll help you out. However, we ain't gonna do it for you.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
bool finished = false;
while(!finished){
Console.WriteLine("Please enter a number: ");
string startNumber = Console.ReadLine();
if(startNumber == "1"){
Console.WriteLine("2 3 5 7 11");
finished = true;
} else {
Console.WriteLine("Please enter \"1\" instead");
}
}
Enjoy your A+!
|
|
|
|
|
PhilDanger wrote: Console.WriteLine("Please enter \"1\" instead");
|
|
|
|
|
Beautiful!
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Marvellous.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
sinji_solanki wrote: enter a number
2.
sinji_solanki wrote: and display next 5 prime numbers.
3, 5, 7, 11, 13
Ok. Now what?
|
|
|
|
|
You have conquered this level.
You now move to the next level:
Enter a 10-digit integer number consisting of odd digits only, and write a program
to print the next 5 primes.
|
|
|
|