|
What are the two types that are being returned?
You might try using the following
if (dr1[0].ToString() == dr2[0].ToString())
{do something good here}
By casting both of them to string, you can get a comparison going.
Hogan
|
|
|
|
|
One is sqldatareader that is returning a row from sql and the other is a oledb datareader that is returning the whole recirds in an excel sheet. are they both compatible ...
|
|
|
|
|
Hi.Im using C#..How can I send sms to a mobile phone through C# application..is it possible to sms from c# web application..
Hi,Im Razana
|
|
|
|
|
|
Hope the Article by Manoj Kumar Send SMS[^] here in CP will help you.
Regards,
Satips.
|
|
|
|
|
If you use a SMS Gateway service like Kapoow, you can create an application that will send a HTTP request to the SMS Gateway service for sending SMSs
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
|
|
|
|
|
Hi All,Im a new to our site..Im happy to join you all...Now Im started working with the concept of Ajax..can any help me implement the concept of Ajax when I use text boxes..
Hi,Im Razana
|
|
|
|
|
Hi Razana, Welcome to CP.
First go through the Concepts of Ajax from Here[^].
And then try to implement the Ajax when you use the text box.
Regards,
Satips.
|
|
|
|
|
I need a sample code or tutorial site that teach on how to send email
using Enterprise Library - Logging Block which utilized the exchange server instead of SMTP Server.
I have no problem using a SMTP Server but my company insisted to use Exchange Server. I thought this was a simple task, until i got an error.
|
|
|
|
|
Hi,
could anybody help me? I am trying to run stored procedure on MS SQL 2005. The procedure have one parameter and delete all old records for machine equal to the parameter. I have tried execute it directly in MS SQL Server Management Studio Express and everything was OK. I assign execute rights for the user I used from C# to connect the SQL server but every time I have tried to run the procedure from C# using SQLCommand object I have received the error message in a Output window:
A first chance exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
Where could be the problem?
|
|
|
|
|
You should put a try-catch block over the code and catch the SqlException specifically - then you can check the inner-exception. that will tell you what is going wrong.
|
|
|
|
|
Use try/catch block and in catch block see the error message of your exception so that u'll know more about the error.
|
|
|
|
|
I already did it before but it jump to Catch but there was no Message...
I have finally found the problem now, my error. Sorry for pointless question and Thanks for your reactions...
|
|
|
|
|
|
Why are you posting twice? You first post has been answered
|
|
|
|
|
Why did you post again the same question?
I have answered the question below.
Regards,
Satips.
|
|
|
|
|
still i get the same error
|
|
|
|
|
Hi
While building the solution i'm getting this error "error result returned from 'tlbimp.exe'"
Please tell me the solution.
Regards,
Rocky.
|
|
|
|
|
The original error implies that the IDE is not finding cl.exe on your machine. Could you make sure that cl.exe exists on your machine.
If it is there then I believe you can inform the IDE about it. Just start the IDE (without opening a specific project) and do the following:
1) Go to Tools --> Options
2) Click on the the projects folder at the left menu.
3) Under "projects", click on "VC++ Directories"
4) Make sure that the top right window labeled "Show directories for" contains "Executable files"
5) click on the new New Line icon (icon similar to new folder icon on the top right)
6) add the location where your cl.exe exists.
Hope this helps!
Regards,
Satips.
|
|
|
|
|
I still get the same error
|
|
|
|
|
Confuseed wrote: r "error result returned from 'tlbimp.exe'"
What is that tlbimp.exe ?
For what perpose are you using that exe in your application ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Sandeep Akhare wrote: What is that tlbimp.exe ?
Type Library Importer (Tlbimp.exe)
Type Library Importer[^]
Regards,
Satips.
|
|
|
|
|
Hi everybody,
I am writing a webscraping c# application, it's a browser that opens a web page enter the login and password then invokes the submit button. All this process is working, but when I wanted to treat each html node I had problems getting the next node and previous:
private void GetNOdes(TreeNodecurrentNode, HtmlElementCollection elements)<br />
{<br />
foreach (HtmlElement element in elements)<br />
{<br />
TreeNode node = currentNode.Nodes.Add(element.TagName);<br />
<br />
<br />
<br />
TNode.Text += node.NextNode.ToString();<br />
<br />
<br />
<br />
FillTreeViewRecursively(node, element.Children);<br />
<br />
}<br />
<br />
}
Do you have an idea how can i get the next and the previous node for a given one ?
Thank you so much..
Tercha
|
|
|
|
|
hi every one !
i have a windows service whic starts five differtn threads on Onstart() method and each therad checks five different xml file at certain interval. now is ther any way in whic i can debug the service.
plz do help.. just a logic will do.
|
|
|
|
|
Hi
You can try the following ways:
1.Use the attach to process command (on your service executable file) from the tools menu after setting some break points on your code.
2.Use System.Diagnostics.Debugger.Break(); command on your code to force break on program execution.
|
|
|
|