|
If it is your machine then use the IP address of your machine.
only two letters away from being an asset
|
|
|
|
|
Message Closed
modified 27-Apr-15 11:24am.
|
|
|
|
|
|
That means that the server is configured to prevent spamming. It will only accept mails addressed to a local user and it will not send mail for anyone other than a local user.
You need to create a user on your server and use that user to send your mail or configure your server to allow relaying.
See your SMTP-Server documentation.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Have you ever tried using using RCXpress.BLL.Portal.TMSMailMessage ?
|
|
|
|
|
Hi All,
Can any one tell that how do we get the HostedControl of cell, for example in case of DataGridViewButtonColumn
for example i want to get
of (DataGridViewButtonColumn)dxDataGridView1.CurrentCell.HostedControl
is there anything like HostedControl???
Thanx
sorry for my bad English.
|
|
|
|
|
when i use oledb connection with following connectionstring, i can connect to SQL SERVER named DOCTOR
"Provider=SQLOLEDB.1ersist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"
but when i use SQLCLIENT.SQLCONNECTION with following string, i cant connect what is missing?:S
This string works on Server client.but Doesnt work at remote clients.
"Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"
-- modified at 9:08 Friday 25th August, 2006
|
|
|
|
|
It's difficult to compare teh two strings because you have so many typos and missing elements.
only two letters away from being an asset
|
|
|
|
|
|
For example?!? Look at your posting, are they both complete connection strings? Can you copy and paste them and actually get them to work?
only two letters away from being an asset
|
|
|
|
|
How do I add columns names to a data grid in c#?
Thanks
|
|
|
|
|
this.dataGridView1.Columns.Add("ColumnName", "ColumnHeaderTitle");
|
|
|
|
|
Do using of so many try-catch block in a project degrade the performance of Project. To be clearer do try catch consume more memory.
Vipin
|
|
|
|
|
Yes, Try catch is expensive in memmory usage, especially if used frequently.
|
|
|
|
|
Do you know some article which gives a bit details in this regard?
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Thanks man..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Using a try-catch block is not expensive, but when an exception is raised, there is a performance hit.
Use try-catch for anything that potentially can go wrong, but don't use it for normal program flow. If you for an example have a string that sometimes contains a number, it's better to check the contents of the string before converting it than to use a try-catch to handle the times when it doesn't contain a number.
---
b { font-weight: normal; }
|
|
|
|
|
Thank u so much for the information.
Vipin
|
|
|
|
|
Guffa wrote: If you for an example have a string that sometimes contains a number, it's better to check the contents of the string before converting it than to use a try-catch to handle the times when it doesn't contain a number.
In these cases, you should really look at the TryParse methods. .NET 1.1 only had a few of these, but they have been expanded in .NET 2.0 to be included in more of the basic data types.
|
|
|
|
|
Using try/catch, try/finally, and try/catch/finally blocks are only expensive when an exception occurs. At that point, the runtime has to take a lot of steps to unwind all of the catch handlers to see who should respond to the exception.
Exceptions should only be thrown when something goes wrong, not to help control program flow. If you use them to try and control program flow, then it gets expensive (not to mention it's just bad practice).
Incidentally, if you have any using blocks
using (MemoryStream stream = new MemoryStream())
{
// do some work here
}
you are implicitly using a try/finally block. The C# compiler will automatically turn this into
MemoryStream stream = new MemoryStream();
try
{
// do some work here
}
finally
{
if (stream != null)
{
((IDisposable)stream).Dispose();
}
}
|
|
|
|
|
I would like to know how to loop the values of int of a single column of a datagrid (windows forms) and sum them. C#
|
|
|
|
|
Hope that this will help.
CurrencyManager cm = (CurrencyManager)grid.BindingContext[grid.DataSource,grid.DataMember];<br />
int numRows = cm.Count ;<br />
DataView dv = (DataView)cm.List ;<br />
<br />
string cols=string.Empty ;<br />
for(int i = 0 ; i < cm.Count ; i++)<br />
{<br />
<br />
}
sorry for my bad English.
|
|
|
|
|
I've managed to do it myself but anyway thanks very much
P.S. sorry for my English too.
choopie
|
|
|
|
|
You are welcome.
sorry for my bad English.
|
|
|
|