is there anyway to send mail using yahoo or hotmail or others mail server?
here my code,
System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage();
message.From="xxx@yahoo....
I've been using the following C# code. Now I need to have a seperate date and time instead of both in the same string:
DateTime dateTime = DateTime.Now;
dateTime.ToString();
Hi,
How do I Check in C# if the file "a.doc" Exist in the folder "c:\xxx\qqq"
thnx
i need to click on a button in another application from my C# application, i have API calls working to activate or close the window etc and they work fine so i know i am sending messages, and ...
Hello experts:
I'm trying to load the load test.xls contents thru c# code so that I can update some data base fields:
My code is below:
public class BankParserClass
Excel.Application e...
Exception Details: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC.
Source Error:
Line 32: xlApp.Visible = true;
Line 33: string strFileName = s...
Hi all,
I am trying to run a .bat file which in turn contains a command for an application. here is my code.
--------------------
string filepath2 = strArray[2] + "\\myCmd...
This is my lame excuse for a routine to remove special characters from a string (I just want the spaces preserved so I can then turn it into a CamelCase variable name... is there a better way?...
Why the heck can't I do this in C#???
strIDVals = "IN (" + this.Label4.Text.Substring(strIDHeader.Length, this.Label4.Text.Length) + ")";
strIDHeader.Length =34
this.Label4.Text.Length ...
I used to use the mod function in asp to figure out the following while looping through rows in a dataset to display a matrix style grid of products:
if n mod 3 = 0 then
//start a new...
C# VS 2008/2005 - Dianlogue box button selection. Simple.
I have a YES or NO Dialogue box and when the users selects YES or NO they get another dialogue box informing them of their selectio...
I am looking for documentation that recommends using one of DateTime.Parse vs Convert.ToDateTime and when each should be used / not used.
I am looking for info regarding efficiency and perf...
Hi,
Lets say I have a text file.
Always when I try to write to it with the following code, It erases what was already in it:
// create a writer and open the file
...
I am trying to learn how to work with XML better... please help me figure out how to do this example. There are certain elements that have child elements - I don't want to display them or the...
Is there property I can set so that I can use the open file dialog to select only a directory? Or is there a similar control I can use? ( I seem to remember doing in VB, is there an a simila...
I have a tag value as string in my program....I want to search that Tag value in Tree control and want to select/expand the node with that Tag value. C# please!!!
I have a list of users that includes name, startdate, and enddate. A user may be listed several times but with diferent start and end dates. I want to create a new list that contains a sing...
Hi
I am pretty proficiant at crawling web pages using an axWebBrowser in a c# application but am getting hung up when I hit a save file dialog. I need to save the file (an xml report) for ...
Why doesn't this work:
System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("en-GB");
textBox1.Text = "18/08/1980"
DateTime temp;
temp = Convert.ToDateTim...
In C#, how do I perform a Left( ) and Right( ) string function on a string?
For example:
Right("This is a beautiful day",3)
would equal
"day"
~~~~
Left("This is a beautiful...
I'm trying to format a date in a text box (birthday)... but it still displays the time ? any idea what is wrong...thanks..
this.dtBirthDate.DataBindings.Add(new Binding("Text",dS_RepInfo,"...
I neeed to trim the following string to get a unique ID for a DataTable.
ProductTypeList:_ctl"3":ProductList:_ctl"10"
I have put quotes around the sections I need to extract. the numbers...
Hello,
How to call a C# function (eg., main()) from a Javascript funtion (eg.,ref()).? On Button click I can use this statement :
document.getElementById("InBut").click(); But how can I c...
I am getting the following compiler erro while using the following code behind file in C#
Exception Details: System.NullReferenceException: Object reference not set to an instance of an ob...
I'm starting to try to fully take advantage of the very powerful "DataSet" structure in .net. I've learned a few things in the last few days, like how to get child rows based on a relationshi...