|
I guess you're trying to validate whether an email domain exists or not?
There's no real way to do this other than querying DNS for MX records to determine who handles mail for this domain. No regular expression will work. See section 5 of RFC 2821[^] for details.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Actually mike is right...
What I posted won't work for .co.uk (DOH! American idealist shows in me again) so blah@somthing.co.uk would return "co" as the domain... There are infinite things like this :/ yea not possible (It' not a good thinking morning for me today)
|
|
|
|
|
Thanks guys for all of the related information, I am actually trying to figure out if my users are using free email and I have the free email list being stored in my database. I have tried some other related websites they seems like having the same bugs that i had..
my@hotmail.com - return True
my@my.hotmail.com - return False
hmm...any other suggestions? I appreciate the help from you guys!!!
|
|
|
|
|
Plz tell me how do I force the printer to print in grayscale mode from C#?
(Here I don't want the user to see the print setup dialog box)
Have a nice day
Faysal
|
|
|
|
|
For printing using C# code, you could read this[^].
Set the PageSettings.Color property to false to disable the color printing. The printout will be converted to grayscale.
SkyWalker
|
|
|
|
|
Hello everyone,
I did some research for File.Create API to find some option which could be used to create a new file, with exclusive owner mode (e.g. other process/thread can not delete/open/modify when current thread keep the file open). But can not find it out.
Could anyone let me know which option should I use or which API should I use?
thanks in advance,
George
|
|
|
|
|
If you create it using a FileStream then you can specify whether you get exclusive rights to it in the constructor. As long as you don't close the handle then other processes can't modify it.
|
|
|
|
|
Thanks Ed.Poore,
I have found it out. I think I need to FileStream.Close(), or else other thread/process can not use it?
regards,
George
|
|
|
|
|
|
Thanks Vasudevan,
I have found it out. I think I need to FileStream.Close(), or else other thread/process can not use it?
regards,
George
|
|
|
|
|
George_George wrote: I think I need to FileStream.Close(), or else other thread/process can not use it?
As long as the process holds sway on the file, other processes would be denied any access to it.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Thanks Vasudevan,
If a process holds a file handle in exclusive mode, and the process terminates without close the handle. Will kernel release the handle automatically, so that other process can access?
regards,
George
|
|
|
|
|
hellow frinds...
How to add a dateTime picker in a Datagrid cell.It wil e helpful if you are explaining with code
|
|
|
|
|
|
Hi!
Can any one help me, how to work with omni scanners. Do u have any sample code in C# for reading data from omniscanner with carriage return functionality...
Rashmi.M.K
|
|
|
|
|
|
Hi,
We have a web service in .NET framework version 2.0 (C#). We need to create a function
in that web service with name ilke, say, 'ABC'.
We want this function to be displayed as "A B C" - in other words, its display name
should contain spaces.
In .NET framework 1.1, we are able to do this, by using the message_name attribute of
the web method. We gave the function name, with spaces, in the message_name attribute
and it displayed alright. When we give it in message_name attribute of web method in
version 2.0, it is displaying the function name itself.
Is there a way where we can display a function name in a web service WITH spaces, in
.NET framework version 2.0.
Thansk in advance
RS
|
|
|
|
|
string spaceName = string.Join(" ", (function.Name.Split(new char{''}))); maybe??
I make no promise that the code above follow "good" code design, furthmore that the code above even works; due to me just spitting it out. If you do want to use something like this it would be better to used a StringBuilder
|
|
|
|
|
Hi,
We are using a .Net application developed in VS Net 2005 to read the images from an Excel file, which refer office 2003 dll. But our application reads only the first 200 images from the
excel file. if we are refering office 2007 in our application means it reads all the images from the Excel file. Actually what is the problem here.
Can anybody help me.
Thanks in advance
Bejoy
|
|
|
|
|
Hi,
I create application in VS 2003 to connect to SAP, but I have the error like this ERROR : Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenEx. THe user name and password is successfull to login SAP if I login through SAP.
Here is my code :
Me.SapLogon.Username = Me.txtName.Text
Me.SapLogon.Password = Me.txtPassword.Text
Me.SapLogon.Client = ConfigurationSettings.AppSettings("SAPClient")
Me.SapLogon.DestinationName = ConfigurationSettings.AppSettings("SAPDestName")
Dim myproxy As New PCNNPdll.Login
Dim myReturn As New PCNNPdll.BAPIRETURN
Dim myinfo As New PCNNPdll.ZHR_PCNNP_LOGIN
myproxy.Connection = New SAP.Connector.SAPConnection(Me.SapLogon)
myproxy.Zhr_Pcnnp_Login("", myinfo, myReturn)
myproxy.Connection.Close()
Thx
|
|
|
|
|
THis looks like VB code. Guess you in the wrong forum.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
i m facing problems while connecting my c# project with a database.
when i use MS Access database, then after succeeding the test connection... when i click OK button ...then a message comes that "THE SYSTEM CANNOT FIND THE FILE SPECIFIED."
I have other option to use MYSQL database.. but i don't know how to connect it?
please, help me out...
csetopper_bhanu
|
|
|
|
|
hi csetopper_bhanu
I don't think connecting a database is a difficult thing .. Maybe you should read the document refer to the ado.net.. and you will get the answer..
Dreams about all the sweet things.
|
|
|
|
|
|
Hi, I have Visual Studio 2005 and I have to use .NET 1.1. Can I set the studio to use .NET 1.1?
|
|
|
|