|
You are really struggling with these basic concepts aren't you. Get a book and work through ALL the examples it will be ultimately quicker that repeatedly asking the same questions in a support forum. As answered the other day.
object oResult = (cmd_BranchExposureFactor.ExecuteScalar();
Now you can look at the content of oResult in your debugger to give you an idea what it contains. As Garth said it is probably a string, empy or null. Now you can deal with it!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
can we use both two method of connection string in web.config file
1.appsetting
2.connection string?
|
|
|
|
|
Yes. Ultimately it's just a string. The application provides the context.
|
|
|
|
|
You can use below code to get both value.
AppSettings["KeyName"].ToString();
ConfigurationManager.ConnectionStrings["connectionName"].ConnectionString;
|
|
|
|
|
|
I have html page and i want get data from it like we get it from data set.means on basis of some valus i want perticular result.
is possible to fileter it.
i know how to read it but i don't know how get row by row data. or some pertocular data, doing it throgh is realy tough .
i want to know if any other way is there.
|
|
|
|
|
It will be easier to research [^] existing result to the common question.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
You need to do it in client side? Use javascript. getElementByTagName(Table) etc. many things are there. You can make variables of table also in javascript. Then you can process what ever need at there. It will be work around only. But you can do.
If you are aiming html of other websites i have very less knowledge only. But i think you can use webbrowser control of visual studio which can(Not sure) inject scripts to a webpage
Thanking you
Binesh Nambiar C
|
|
|
|
|
can i have 2 connection string and two connections in 2 different databases because i have an error that say
no database specified or IN clause
|
|
|
|
|
zebra88 wrote: can i have 2 connection string and two connections
Yes, yes you can
|
|
|
|
|
why i have the error no database specified in connection string or in clause i make the same steps that i make with my previous connection with access db and connection string
|
|
|
|
|
zebra88 wrote: why i have the error
I would have no idea why you are getting that error. Through some strange circumstance, I cannot see your code, your project or read your mind and you have not provided any relevant information that would allow anyone to know what it is that you are trying to do and what you have done.
|
|
|
|
|
|
|
Surely its possible to connect multiple database in same project/Single database in multiple projects and multiple databases in multiple projects. Your issue is some thing else. I googled it and i got a page like this. http://office.microsoft.com/en-in/access-help/HV080760652.aspx
|
|
|
|
|
karthiksruby@123 wrote: Your issue
What issue is it that you are referring to? I am not having any issues connecting to any database.
|
|
|
|
|
no we can not use multiple string conection to connect multiple database in .net if we try to do this we have find a problem cross connection problem
|
|
|
|
|
so how can i get data from access databases that has the same fields but with different content and i want to get data that have the same reference year from them every time i make import a file to a c# program without locally connect the database so with this way i have always updated data because i see what i want without have in mind the old data that has every access file that i use.
i want only the records with the same reference year e.x with year 2013
how i manage this?
one solution i find now is to make restore the access db file so i have always updates data
modified 7-Jul-13 17:43pm.
|
|
|
|
|
Wat, you are wrong. You can have as many connection to as many databases as you need. Downvote required!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Maybe YOU have a problem with doing this, but the rest of use professional developers don't. YES, you can have multiple connection strings in a .NET app and use them all at the same time. What you said was completely wrong on every level.
|
|
|
|
|
Dear Sir.,
I am use C# vs2012 to read outlook 2010's pst message
which text message as below
======================================
Mobile Position Report
Pacific Region, ID : 18449, Number : 195
Position : 2 09.72' N, 176 14.08' E
Speed : 0.0 knots, head : 93 degree
======================================
How can I read this field value and make it become one row's csv file and record??
|
|
|
|
|
If you can read the PST data, then surely all you need to do is convert it to CSV - which is simple enough manually or you could use an existing class: C# CSV Reader and Writer[^]
If that doesn't help, then you probably need to be clearer on exactly what your problem is.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
The question also include.
read exact field value in body message and put into csv file.
|
|
|
|
|
Yes, but which bit is giving you difficulty - your question says you can read the PST data, so presumably you can extract the separate fields? So what help do you need? Remember we can't see your screen, or access your HDD - we only get exactly what you tell us.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|