|
Hi,
I wanna export .csv records to my SQL server. I tried doing it by splitting it with comma (",") but some of the columms have descriptive data with many commas in it. So in that scenario the split logic gets messed up completely. Any other way that I can export .CSV data to SQL server?
Thanx in advance
Regards,
Vipul Mehta
Regards,
Vipul Mehta
|
|
|
|
|
|
Has anyone been successful sending email out through Exchange 5.5 using the .NET SMTPClient object?
I get a "relaying denied" type of error on the .Send command.
I have been researching this and working on it for a couple of weeks now.
Factors that bear on the matter:
1. Exchange is willing to send messages from SMTPClient to local mail addresses, but not external addresses.
2. There is a feature in Exchange that permits relaying for listed IPs. The IT guy has added the IP of the computer sending the emails to this "exception list for SMTP clients".
3. If we bypass the Exchange server and specify the ISP's SMTP server as the hostname, everything works fine. But the downside of this is that Exchange keeps logs, which the customer desires to utilize.
4. This doesn't seem to involve credentials. The Exchange 5.5 server is happy to send the emails within the domain without any credential information.
5. Strangely, a few emails did go through, and we examined the headers of those emails. The headers included something like the following pseudo-information:
a) "AComputerName@TheDomain.com" (This relayed fine)
b) "AComputerName" (This did not relay)
We couldn't get it to repeat 5a. What was happening there anyway?
Was the SMTPClient suddenly able to append the domain name
of the sending computer? I can't seem to get the SMTPClient
to do this again. It doesn't seem to know how to add the
domain name to the name of the local computer.
I saw an article on using reflection to extract the domain name from one of the properties of the SMTPClient object, but I wasn't sure which property to apply the domain name to. (It's not the "Hostname" property, since that is for specifying the name of the Exchange Server.)
Here's the article, and when you get there, just click the "View" link under the "Workaround" heading. Here is the reference for the article:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94378
Thanks, everyone.
________
42 is definitely not the meaning of life.
I knew that when I turned 43.
-- modified at 19:46 Monday 19th November, 2007
|
|
|
|
|
please help!!
I need to use a variable that from class but it have to using a System.Windows.Forms.UserControl
so how can i do?
Thanks,
PZ
|
|
|
|
|
You can't show a form in a Windows Service, so if you want to provide a UI then you have a problem. What you could do is provide a remoting layer in the service that an external forms application could connect to.
|
|
|
|
|
thx, but I still have a problem.
Actually i do a survillance using webcam (using c#)
i need to use my webcam to monitor activities on somewhere
recording and connect it to server .
Webcam can use more than one & client must be a windowsservice for survillance.
this is activities that I do
client:
1.Recieve a remote from server.
2.connect to webcam & capturing using Webcam_Capture.dll.
3.send it to server using RTP.
Server:
1.Setting & Remote to client.
2.Save picture for client.
3.Show Picture.
and I have a problem now because
First in Client I use Windows Form and now I need to change this code to be a windowsservice.
This service need to capture a picture from webcam by using Webcam_capture.dll
So I create a variable From Webcam_capture.dll but this class reference System.Windows.Form.usercontrol
that must add a reference to System.Windows.Form .
How can i do for this problem??? Please Help!!!
thanks,
PZ
|
|
|
|
|
You can if you enable "Allow interaction with desktop" ... BUT it's bad practice Services shouldn't have UI's built in and as you say a remoting layer is normally the way to go with a .Net Windows Service.
|
|
|
|
|
originSH wrote: You can if you enable "Allow interaction with desktop" ... BUT it's bad practice
I didn't want to go there. As soon as you mention that something is available (even if it shouldn't be used), that's the way they'll head.
|
|
|
|
|
I take the alternative view that you should mention the bad ways of doing things and say they are bad ... otherwise the poster might come across them by themselves and assume they are good.
If the poster still chooses to do the bad thing then hopefully they'll end up in a world of s**t lol
|
|
|
|
|
i will be very much thank full if u help at any point of time
raghunath
|
|
|
|
|
Help you to do what? Grout the bathroom? Clean the guttering? Delouse a parrot?
|
|
|
|
|
Please don't let John Simmons see this thread...
SG
Cause is effect concealed. Effect is cause revealed.
|
|
|
|
|
With what?? Grooming your cow?
|
|
|
|
|
First post means this person is a troll. Nothing to see here....
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
But don't stop me from having fun with the mockage. That's the only fun I get nowadays.
|
|
|
|
|
Here, here! I second that!
|
|
|
|
|
Hi Friends,
Can anyone send Web Service codings using java.Please its urgent,help me.
Thank You
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Wow - there are so many problems with this post.
1. This is a .NET forum.
2. We don't give you code for nothing. If you want code written for you, try rentacoder.
3. It may be urgent for you, but it's not for me. Don't put "its urgent" in a post.
4. You haven't specified what the web service is supposed to do.
|
|
|
|
|
Please read Forum Posting Guidelines at http://www.codeproject.com/scrapbook/forumguidelines.asp[^].
Discussion forums are oriented towards helping out as troubleshooting aides and not pamper and support code solicitations.
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
|
|
|
|
|
Hi,
I am new in .net. I am making an application using datagrid which is showing details about employees. So I want to make my data grid searchable. So i am using a textbox where user can enter some data into it and the matching result with all the columns will be displayed in the datagrid. If anyone knows how to do it or anyone hav a code for it. Please reply me
Rock Star
|
|
|
|
|
Typically you would not search your grid, you'd search your data source and fill the grid with filtered data
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Lately, I've been playing around with the idea of giving LinFu's
Simple.IOC container the ability to create different generic type
instances depending on the type parameters given to the generic type
at runtime, but I'm not quite sure how useful would it be.
Anyway, as an example, suppose that I have the following generic
interface:
{{
public interface IOperation<tresult, tparam1,="" tparam2="">
{
TResult DoSomething(TParam1 first, TParam2 second);
}
}}
...and for this example, I want the IOC container to use the following
class to implement IOperation<tresult> if the TResult type is a
numeric type:
{{
// Note : This is a hypothetical code sample; it won't compile if you
remove the comments!
public class SomeMathOperation // : IOperation<tresultt, param1,
tparam2=""> where TResult : IsNumeric()
{
// TResult DoSomething(TParam1 first, TParam2 second);
}
}
}}
Now, the biggest challenge here is that in addition to adding a
hypothetical generic type constraint, there is currently no language
available in .NET (not even IL) with any feature that allows you to
match an interface like IOperation<tresult, tparam1,="" tparam2=""> to a
single class implementation like SomeMathOperation without having to
specify all of the type parameters to instantiate the generic type.
Furthermore, it would be useful if (for example) I could specify an
alternative type to use in the event that the TResult type was a non-
numeric type:
{{
// Note: I don't want the compiler to evaluate TParam1 or TParam2 til
runtime; I want the type specialized
// to handle only *specific* TResult types
public class SomeStringOperation // : IOperation<tresult, tparam1,
tparam2=""> where TResult : IsString()
{
}
}}
For those of you who are familiar with Visual C++ and partial template
specialization, this concept should be immediately familiar.
Essentially, what I want to do here is generate an entire hierarchy of
classes at runtime depending on the type parameters passed to the
generic type definition. So my question is this--how useful would this
feature be if it were implemented with LinFu?
|
|
|
|
|
I can do a select within a dataset to search for a string. This works great.
When I try to do the select to search for a number I get a 'does not evaluate to a Boolean term'.
For example- matchingRows() = ds.Tables("Generations").Select("id = 3")
I get a simular error when I try to create a dataview that keys off of a number.
How do you search a dataset for a numeric value?
Thanks in advance!
|
|
|
|
|
kermit88 wrote: 'does not evaluate to a Boolean term'
That tells you something
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hi
I am currently using the ilasm.exe tool to compile my CIL code. Right now I am using the Process.Start() method to run the tool from code. I'd like to know if I have the option of calling a particular method through a dll reference that also returns messages back to my code. Right now I can't tell from the code if my ilasm.exe invocation succeeded or not.
Thanks in advance
Zawar
|
|
|
|