|
Hi led mike,
I understand the basics of SOAP and XML. I think I have not made myself understood.
My question is like below,
1.
I could manually dealing with services/binding/message/complex type sections of WSDL, to add SOAP header, no problem;
2.
I want to make my life easier to find some wrappers to directly dealing with /binding/message/complex type sections of WSDL internally, and I just provide the information of SOAPHeader, and the wrapper is manipulating the sections internally.
So, I am just looking for some such wrappers/code samples/documents.
Any comments or ideas?
regards,
George
|
|
|
|
|
Hi all,
I am trying to send a mail from our Exchange Server using the SmtpClient and the MailMessage classes, but I am receiving the following exception the whole time: SmtpException The operation has timed out. I am pretty sure that I am using the right credintials to logon to the server. So ... am I missing something
I can go through on Telnet to the server but not with the code below
string to = "jane@contoso.com";
string from = "ben@contoso.com";
string subject = "Using the new SMTP client.";
string body = @"Using this new feature, you can send an e-mail message from an application very easily.";
MailMessage message = new MailMessage(from, to, subject, body);
SmtpClient client = new SmtpClient("srvcontosopdc", 25);
client.Credentials = CredentialCache.DefaultNetworkCredentials;
client.Send(message);
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
modified on Thursday, September 11, 2008 8:41 AM
|
|
|
|
|
SmtpClient client = new SmtpClient("mail.srvcontosopdc.co.za", 25);
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
i want to convert my string in LPCTSTR or BSTR format, How i can do this.
|
|
|
|
|
Maybe the Marshal class can help (see MSDN)
|
|
|
|
|
I have launched programs from a C# app before, but I have been wondering if it is possible to launch an application inside a C# app. So, what i am wondering is this, could i launch, say notepad o rmediaplayer, inside a C# app, so it would actually render inside the app? Or barring that, run as if they were part of it?
Here is what I am looking to do: run applications inside a c# app so that i can minimize them to my system tray, even though they dont normally allow you to do so, so i could technically have notepad open in my tray, or mediaplayer, or even firefox.
Is this even possible?
______________________
Oh Hamburgers!
|
|
|
|
|
|
Looks like that may be exactly what I need
thank you.
______________________
Oh Hamburgers!
|
|
|
|
|
You are welcome
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Wow, I just used the tabifier, that is exactly what I was looking for (and a bit more). Amazing program, thank you again
______________________
Oh Hamburgers!
|
|
|
|
|
Thanks
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
DataGridViewButtonColumn objAssign;
objAssign = new DataGridViewButtonColumn();
objAssign.Name = "Assign";
objAssign.Text = "Assign";
objAssign.HeaderText = "Assign";
objAssign.ToolTipText = "Click to Assign";
dtgAssignIssues.Columns.Add(objAssign);
I have this code written to create a button at runtime, inspite of setting the text assign , the text is not visible on the button. Please help me.
|
|
|
|
|
Loop thru' grid rows and assign the text to the button object of each row.
Nana
|
|
|
|
|
I tried looping through the buttons using the following code, it sets the text for the button only if there is one row. could u plz help me for multiple rows.
DataGridViewButtonColumn objAssign;
objAssign = new DataGridViewButtonColumn();
objAssign.HeaderText = "Assign";
objAssign.Name = "Assign";
dtgAssignIssues.Columns.Add(objAssign);
//dtgAssignIssues.Columns[1].ReadOnly = false;
foreach (DataGridViewRow r in dtgAssignIssues.Rows)
{
//MessageBox.Show(objAssign.Index.ToString());
DataGridViewButtonCell b;
b = (DataGridViewButtonCell)r.Cells["Assign"];
b.Value = "Assign";
}
|
|
|
|
|
Hy,
I made an simple windows form application, and to a MDI form I added an backgrounImage.
I lunch the application and after 4-5 seconds a refresh will done and I see how the backgroundImage will redraw.
Can anybody give me an idea or help?
thanks,
mihai
|
|
|
|
|
this.Invalidate();
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Hi all i have few nombers that is to be used to pass seprately in asending order...
i found SortOrder.Ascending.... i dont know how to use this can anybody help me here ..
thank you in advance ...
vikas da
|
|
|
|
|
It's simply an enum with 3 values that you can use for convenience in your own comparers.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Sorry i am not able to use these ...
as i have three int values ..
int i,j,k;
now i have to sort them..
how can i do ... can you please give some code snippted..
Thank you for your help...
vikas da
|
|
|
|
|
If you're wanting to be able to use SortOrder then something like this.
private SortOrder sortOrder;
private int MyIntComparer(int value1, int value2)
{
switch (sortOrder)
{
case SortOrder.Ascending:
return value1.CompareTo(value2);
case SortOrder.Descending:
return -(value1.CompareTo(value2));
default:
return 1;
}
}
Then just call Sort(MyIntComparer) on whatever collection your ints are in. The example below adds them to a List<int>
int i = 2;
int j = 3;
int k = 1;
List<int> intList = new List<int>();
intList.Add(i);
intList.Add(j);
intList.Add(k);
sortOrder = SortOrder.Ascending;
intList.Sort(MyIntComparer);
foreach (int item in intList)
{
Console.WriteLine(item);
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Thank you very much for your help its done...
vikas da
|
|
|
|
|
Hi,
I am building a desktop application for embedded product.While running the application the program skips the following line :
char char1 = Convert.ToChar(response.Substring(0,1));
byte byte1 = Convert.ToByte(char1);
where response is the answer from the hardware to MSCOMM port
When Convert.ToByte conversion is done on some particular this code is skipped i.e. i am not able to get the byte1 can anybody tell the answer.
Thanks,
kanwal
|
|
|
|
|
Probably, after the line "byte byte1...", you are not using byte1. Just put a line "Trace.Write(byte1)" after the second line. And try again to set breakpoint to it.
|
|
|
|
|
tauras81 wrote: char char1 = Convert.ToChar(response.Substring(0,1));
There is no conversion needed, as it's already a char:
char char1 = response[0];
tauras81 wrote: byte byte1 = Convert.ToByte(char1);
A character is a 16 bit value, which you are trying to convert to an 8 bit value. This conversion will fail unless the character has a character code below 256.
Why are you trying to convert a character to a byte?
tauras81 wrote: When Convert.ToByte conversion is done on some particular this code is skipped i.e. i am not able to get the byte1
Unless you have a conditional statement that prevents the code from being run, code isn't just skipped. What do you mean when you say that you can't "get the byte1"? A byte variable always contains a value, does the value differ from what you expect it to be?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi All
My code is already exporting datafrom a datagrid to an excel spreadsheet.My grid has student numbers and the modules they are registered for. example:
StudentID ModuleCode
s20600752 WIC2345
s20569875 POP3456
s20587466 TYU8765
s20569875 UYT6788
Now I want to be able to select a ModuleCode from the grid and only export students that are registered for that particular module.
Is this possible? please help?
|
|
|
|