|
First off can you mention what a DDL is, as far as I know because I haven't done much web development it stands for Data Definition Language.
Secondly this might be better answered in the ASP.NET[^] or Web Development [^] forums.
|
|
|
|
|
Hi,
i want to send some emails in c#. I found some information about the smtp client class and I've implemented it. I want to use the gmail-Smtp Server. The gmail guys publicate on their page that you need a TLS encryption.
How can I use a TLS encryption in C#?
Thanks
spotl
|
|
|
|
|
There's a flag you set in the SmtpClient class, something along the lines of EnableSSL .
|
|
|
|
|
I've built a fairly simple windows service and tried installing it on my local machine via both installutil.exe as well as a setup/deployment project. Both types of installation indicate a successful install, however, the service is not listed in the list of services on my machine.
I've searched Google, etc to no avail....any tips or things I should be looking for?
Thanks a million,
Brent
|
|
|
|
|
I would guess that perhaps you are looking for the wrong name. The only other option is that installutil was not successful in installing the service. On your ServiceInstaller there is a SErviceName
ServiceInstaller.ServiceName
This must have the name of your service for it to show up.
Here is an article I wrote that has some sort code with a window service in it.
http://www.codeproject.com/dotnet/OpenFiles.asp[^]
Hope that helps.
Ben
|
|
|
|
|
i m using a hash table taking a string as a key and an arraylist object as a value .. each time the arraylist value changes for the second and further entries in the hashtable all the values of the hashtable changes according to the new entry in the arraylist i.e in the end all the different keys hav the same value pair that is the last entry in the array list y is it replacing the previous values of the hashtable arraylist once its been added to the hashtable
|
|
|
|
|
ArrayLists are reference types so by default variables are simply pointers to the same object in memory, so what you're storing is a pointer to the same array. What you want to look into is the Clone method which will return a copy of the array list, this should fix your problem.
|
|
|
|
|
Thanks A BUNCH .... u really did help me a lot thanks a lot .. i was working on it for 2 weeks thanks again
|
|
|
|
|
In solution explorer, I noticed that the Form1.Designer partial class is listed under the Form1.cs
I created some other partial class(Myclass.cs) of From1 but it doesn't appear under the Form1 in solution explorer. Is there anyway I can get it to appear under Form1.
Currently
-Form1.cs
|
----->Form1.Designer.cs
|
----->Form1.resx
...
...
MyClass.cs
Looking for
-Form1.cs
|
----->Form1.Designer.cs
|
----->Form1.resx
|
----->MyClass.cs
.....
|
|
|
|
|
Try prepending Form1 to MyClass.cs. The solution explorer tries to logically put everything together by their file name. If you write Form1.MyClass.cs, VS should see that file as a subset of your Form1 and show it in the tree as such.
|
|
|
|
|
It doesn't do that automatically, see my response to dino2094.
|
|
|
|
|
There's no way to do this automatically in VS but you can do this:
- Right click the project in the Solution Explorer and select Unload Project.
- Right click the project again in the Solution Explorer and select Edit
Project.csproj - Look for an XML element which is like
<Compile Include="MyClass.cs" /> and change it to:
<Compile Include="MyClass.cs"><DependentUpon>Form1.cs</DependentUpon></Compile> Close the project file in the editor and reload the project like in step 1, your file should now appear under the Form1 node. Note you could specify Form1.Designer.cs and it'd be displayed under that one instead.
|
|
|
|
|
I just saw myself after digging into the project file, when I couldn't repeat what I was talking about. Thank you for showing my ineptitude!
|
|
|
|
|
|
Hi! I want to know is there some in built functionality into Dot net framework which can be used to send mails thourgh Exchange Server.?
Thanks
Don't Quit
|
|
|
|
|
Could anyone tell me how to populate a javascript array using a dataset result from a database.
JT
|
|
|
|
|
You could always use RegisterStartupScript to inject some JavaScript that would do this, or you could use Ajax to control this. Personally, I would go with the Ajax route as this is a much more flexible way to do this.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Iam trying to get the log on information for a windows service.
does any body know how to get this.
I know you can use serviceinstaller to create a service and define the username and password for it.but how does one get the username for already existing service
|
|
|
|
|
Look at the service in Control Panel > Administrative Tools > Services. Select the service you want, right click it and select properties. Look under the Log on tab and you will see who it logs in as (either the local system account or the named account).
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
well iam trying to get that programatically in C#
|
|
|
|
|
Hi
Im using Microsoft Word 11.0 Component to create the word document., after completing all the process i have close all reference but still WINWORD.EXE is running in my system process.
Here is my code ....
static Word.ApplicationClass wa ;
static Word.Document wdHeader;
wa = new Word.ApplicationClass();
wdHeader = wa.Documents.Add(ref templateFile, ref missing, ref missing, ref trueObject);
wdHeader.Activate();
wa.Visible = false;
object falseObject = (object ) false ;
wdHeader.Close (ref falseObject , ref missing , ref missing );
wdHeader = null;
wa = null;
Still what i have to do to take under control since i repeat the same for 500 times then system may get crash. Please help out.
Thanks in advance...
|
|
|
|
|
My goal is to append a session id to the messages the remoting client sends out.
I have the following code in my client that adds a sink to the client channel:
BinaryClientFormatterSinkProvider provider = new BinaryClientFormatterSinkProvider();
provider.Next = new ClientSinkProvider();
IChannel chan = new TcpClientChannel("SADeskSession", provider);
ChannelServices.RegisterChannel(chan);
ClientSinkProvider is my provider class that creates a sink that implements IclientChannelSink and IMessageSink.
in the processMessage method on this sink, I have it appending something to the message's Properties object, however, the serverside sink cannot read this as it should.
I must be missing some nuance, as I am a complete novice to remoting.
Can someone put me on the right direction? I'm basing this off this article, but my needs are simple enough that I don't need classes as robust as the ones in the article.
http://www.codeproject.com/csharp/customsinks.asp
|
|
|
|
|
Hi
How can i find Windows Folder address or System32 Folder at my program
i want to copy a file in the folder for having a common security core in my Application
please help me
Masterhame
|
|
|
|
|
Masterhame wrote: How can i find Windows Folder address or System32 Folder at my program
You would use the Environment.GetFolderPath[^] method and pass it one of the Environment.SpecialFolder[^] enum values.
Masterhame wrote: want to copy a file in the folder for having a common security core in my Application
This is not recommended since it violates all sorts of security rules and won't run on Vista (or XP if someone is actually running a limited user account). Normal applications should not write to the Program Files folder, the Windows folder, or the System32 folders. (There are others as well, but these are the main three.)
Unless you will have multiple applications installed that use the same DLL, everything can be located in the application's install directory.
In any case, the only types of programs that should be writing to these folders are installers that are running with elevated privileges.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hi everyone. I have Windows.Forms.DataGrid with two columns. The first one has string values which may repeat in the column. The second one has integers. My question is how can I sum the integers where I have string values which appear in more than one row in the first column?
I need something like the "group by" clause in a sql select statement.
|
|
|
|