|
Please read this[^] post. You need to play by the rules.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hi, It seems you have joined codeproject today, so welcome to Code Project.
mennipavithra wrote: please do reply me at the earliest as this is of utmost urgency to me.
Quote Selected Text
This is Rude. Please read fourm guide line before asking any question. It may important for you, but not for all. So members will reply based on their time.
mennipavithra wrote: i need a web service code to send email from an external application using asp.net coded in c#.net
Did you ever searched google before asking this question ? Sending mail is one of the common things in .NET and if you know the basic of web service you can implement it.
1. You need to create an web service
2. Create method as SendMail(), which may accept From, To, MessageBody information as argument.
3. Host the Web Service.
4. Consume from Client
For your Reference :
A .NET web service for e-mail[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi All I have loaded 3 talbes to my application.
after the work is done, I wasnt to save it all. using foreach(is there a better way?)
I recreated from my different class objects 3 datatables.
now I have the tables, I think I added them to new ds
DataSet ds= new DataSet();
ds.Tables.Add(emp);
ds.Tables.Add(managers);
ds.Tables.Add(empToManagers);
did I do it write? no my main question: in my db , I have 3 tables. some of the lines has been changed, deleted or some lines are new. what is the best way to update the db, without checking every line my self, I tried and got lost with the sql. someone tokd me I can use adapter, but how?
(when I open th data, It is easy to se adapter
public DataSet GetDataSet(string tblName, string sql, DataSet ds)
{ adapter.SelectCommand.CommandText = sql;
adapter.Fill(ds, tblName);
return ds; } )
tnx
|
|
|
|
|
Look into DataAdapter.Update , but it has limitations.
I avoid DataAdapters altogether. 
|
|
|
|
|
|
|
Hi I am new to C#. I want print a document in Bill format.before that i have to display preview of bill to me.I am taking item,rate in textbox.Please help me . I want to display Store name in one corner of page. Items in table format and total at ent of page.Please help me
IT is urgent
|
|
|
|
|
umesh.nevase wrote: I want print a document in Bill format.
You should use the .NET Printdocument Class[^].
umesh.nevase wrote: IT is urgent
This is not considered polite; however urgent it may be to you, we have our own priorities.
|
|
|
|
|
there are different different way u can build report.u need crystal report and show the data source
|
|
|
|
|
khosnur wrote: u need crystal report
You really do not like this person do you, Crystal Reports is one of the greatest PITA on the market today, recommending this poor person, who is obviously a newbie, to use CR is a great disservice to him/her. There are many, better options than CR for report processing.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
khosnur wrote: u need crystal report
No you don't. There are better options, like SSRS, Active Reports, etc. Besides, the OP just wants to print the document, not create a report.
only two letters away from being an asset
|
|
|
|
|
I have completed a simple windows project and wish to deploy it. I wish to create a proper installer like those that appear in professional applications. I don't wish to use the publish option form project properties as it just creates an executable. I also tried the Setup and Deployment project in other project type but got confused and messed up.
|
|
|
|
|
right click on solution-add new project-Expand other project type-Select setup and deployment...
try this way.
|
|
|
|
|
Khosnur,
I have completed till this step(before i posted the problem) but now there are three folders in list view appearing. Now what should i do?
|
|
|
|
|
|
|
You waited over six hours for this. A google search with decent keywords would have yielded a similar result in less than six seconds.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
I am trying to execute Command Prompt(Ms-DOS) commands through C# like shutdown -s -t 0(and several other commands) by creating an object of System.Diagnostic.Process class. When the Start method is executed a new Command Prompt window opens but the command does not execute.
public static void ExecuteCommand()
{
Process p = new Process("cmd.exe", "shutdown -s -t 0");
p.CreateNoWindow = true;
p.UseShellExecute = false;
p.Start();
}
I have imported the System.Diagnostic namespace.
Banking establishments are more dangerous than standing armies.
|
|
|
|
|
Why do you need to put the program as a parameter? CMD doesn't accept parameters like that. Just replace the line which creates your Process instantiation with
Process p = new Process("shutdown -s -t 0");
That will run the actual program, not just open a command prompt.
|
|
|
|
|
Computafreak,
The statement you gave gives a file not found exception.
|
|
|
|
|
That's odd. Try just invoking Process.Start(...) instead of manually instantiating the Process class.
|
|
|
|
|
C:\>cmd /?
Starts a new instance of the Windows XP command interpreter
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]
/C Carries out the command specified by string and then terminates
I think you need the /C parameter.
|
|
|
|
|
Hi,
Process.Start("shutdown", "-s -t 0"); is all you need assuming you have sufficient rights.
shutdown.exe is one of the Windows utilities, no cmd.exe required here.
[ADDED]
And with an amended 4-line approach like yours, the DOS window flashing can be avoided.
[/ADDED]
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
modified on Sunday, September 27, 2009 2:37 PM
|
|
|
|
|
I don't have visual studio 2005 to run the chess program. But I have downloaded visual studio 2008 express because it is free. However I cannot succeed to make the program run on this plateform. Is there a simple way to make it running and what must I do?
Thanks,
Marcel Jacon
marcel.jacon@wanadoo.fr
|
|
|
|
|
Marcel51 wrote: However I cannot succeed to make the program run on this plateform. Is there a simple way to make it running and what must I do?
You could start by explaining what it is that does not run. Does the project compile cleanly, Do you have the full SDK libraries to support it, etc.?
|
|
|
|