|
Why not treat the csv as a db. You could use Jet OleDb, or odbc.
Details here.
I used to think....
Finally I realized it's no good.
|
|
|
|
|
Yeah, what they said, especially Rive .
goldsoft wrote: WI[0].Trim().ToString();
You don't need the ToString.
|
|
|
|
|
Could be a deja vu, but I think I have seen this question in random forums (or a very similar one) every two weeks in the last months. Please, write csv in the search text box at the top of this forum. Maybe you'll get what you need.
|
|
|
|
|
|
This is not a right place to post your article Ad.
|
|
|
|
|
sorry
message removed now
thanks for your replies
|
|
|
|
|
Oh man, It's a programming forum for Questions/Answers, better you can keep this in your CP signature. Cheers.
thatraja |Chennai|India|
Brainbench certifications Univotes are like kid's kisses don't reject it Do what you want quickly because the Doomsday on 2012 My childhood story
|
|
|
|
|
sorry guys
message removed now
thanks for your replies
|
|
|
|
|
Well done, but was the original post a link to your article? If so, then it isn't really an advert - it's a bit tacky pushing for votes, but it's not something we'd expect you to have to pay for.
|
|
|
|
|
HOw can do to insert a bulk data to Oracle database ( Store procedure ) using c#
Thanks
|
|
|
|
|
This[^] article may help.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
|
Thanks for Reply...
Is it possible to achieve without using ODP.Net
Defaultly i not get the properity "ArrayBindCount" in OracleParameter.
Thanks
|
|
|
|
|
Hello:
Development (VS2005(C#)\WinXP).i want to get the datetime when the local monitor close.
also want to get the datetime when the monitor wakeup.so i can calculate the time of the monitor's sleep.I think "SystemEvents" can not solve this problme.should i use Win32API?
can someone lend me a hand?
thanks in advance
modified on Tuesday, December 14, 2010 10:36 PM
|
|
|
|
|
As you have asked question regarding monitor ON|OFF Status HERE[^], If you've got success with that then you can measure System local time when it goes OFF and further note it when it goes ON.
|
|
|
|
|
thank you for your link.
i just want to get the monitor ON|OFF Status.
but the link is not solve it.so i ask this problem.
|
|
|
|
|
There is no reliable way ot get the monitor power state.
If you're trying to measure power usage, you'll have to use some kind of meter attached to the power cable instead.
|
|
|
|
|
hi, i just want to query the monitor status,and the status is changed by system or programe.
|
|
|
|
|
How many times do we have to tell you there is no way to get the monitors status with any accuracy??
|
|
|
|
|
If the monitor is manually switched off, you can't reliably detect it. The monitor power supply may be independent from the base unit so you can't watch power consumption. One thing that may work is the interface IMSVidDevice which is implemented by the video devices. More details here[^]
|
|
|
|
|
|
0) Do you have a question?
1) You should format your code snippet properly.
2) WHERE Book_ID = '" + Book_ID + "' " is very very bad; use a parameter.
3) Reader[0].ToString(); is also bad, use the column name, and if the column is a string already, just cast it.
|
|
|
|
|
If you want to search within the array, try using LINQ.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I didn't find any mistake in your code, But the way you're using development approach is very BAD.
Just to make a note.
jim haras wrote: while (Reader.Read())
{
books.book_ID = Reader[0].ToString();
books.title = Reader[1].ToString();
books.author = Reader[2].ToString();
books.publisher = Reader[3].ToString();
books.category = Reader[4].ToString();
books.year = Reader[5].ToString();
books.edition = Reader[6].ToString();
books.isbn = Reader[7].ToString();
books.price = Reader[8].ToString();
books.number_of_Copies = Reader[9].ToString();
}
If you want to get all things returned from a query then use SqlDataAdapter will be having less code lines. Fill the results in a DataTable .
As of you're passing BookID then I don't think there's chance of fetching multiple rows from DB, If you've kept BookID Unique or PrimaryKey .
Most of the things were already suggested by PIEBALDconsult, Add mine this to it.
|
|
|
|
|
thanks for the replies guys! maybe i didn't explain it properly. the problem is not in the code that i posted. despite its structure, it works fine. the problem i am facing is in the web page. i put a textbox that will be filled with the book id ( or the title or the author it doesn't matter) and a grid view ( or a bunch of text boxes each assigned to show a different collumn of the books database) that will display the search results from the database using the web method in the web service ( the one i posted earlier). i can not make it display the results
|
|
|
|