Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
QuestionCalling Managed Code From Unmanaged Code Pin
hamid12332120-Jun-07 18:32
hamid12332120-Jun-07 18:32 
QuestionGridView Selected Row? Pin
Expert Coming20-Jun-07 18:00
Expert Coming20-Jun-07 18:00 
QuestionQuestion about String.Format("{0}{1}{2}{3}", string1, string2, string3); Pin
saytinh20-Jun-07 17:27
saytinh20-Jun-07 17:27 
AnswerRe: Question about String.Format("{0}{1}{2}{3}", string1, string2, string3); Pin
Sathesh Sakthivel20-Jun-07 17:48
Sathesh Sakthivel20-Jun-07 17:48 
AnswerRe: Question about String.Format("{0}{1}{2}{3}", string1, string2, string3); Pin
PIEBALDconsult20-Jun-07 17:50
mvePIEBALDconsult20-Jun-07 17:50 
GeneralRe: Question about String.Format("{0}{1}{2}{3}", string1, string2, string3); Pin
saytinh20-Jun-07 18:30
saytinh20-Jun-07 18:30 
GeneralRe: Question about String.Format("{0}{1}{2}{3}", string1, string2, string3); Pin
PIEBALDconsult21-Jun-07 10:55
mvePIEBALDconsult21-Jun-07 10:55 
GeneralRe: Question about String.Format("{0}{1}{2}{3}", string1, string2, string3); Pin
saytinh21-Jun-07 17:07
saytinh21-Jun-07 17:07 
AnswerRe: Question about String.Format("{0}{1}{2}{3}", string1, string2, string3); Pin
Christian Graus20-Jun-07 18:04
protectorChristian Graus20-Jun-07 18:04 
QuestionWhy VS Package can't work without SDK installed? Pin
remex_1980_junyongwu20-Jun-07 17:19
remex_1980_junyongwu20-Jun-07 17:19 
AnswerRe: Why VS Package can't work without SDK installed? Pin
Christian Graus20-Jun-07 18:05
protectorChristian Graus20-Jun-07 18:05 
GeneralRe: Why VS Package can't work without SDK installed? Pin
remex_1980_junyongwu20-Jun-07 21:08
remex_1980_junyongwu20-Jun-07 21:08 
QuestionImplicit/Explicit variable initialization & performance [modified] Pin
AesopTurtle20-Jun-07 15:42
AesopTurtle20-Jun-07 15:42 
AnswerRe: Implicit/Explicit variable initialization & performance Pin
Christian Graus20-Jun-07 15:47
protectorChristian Graus20-Jun-07 15:47 
GeneralRe: Implicit/Explicit variable initialization & performance Pin
AesopTurtle20-Jun-07 15:51
AesopTurtle20-Jun-07 15:51 
GeneralRe: Implicit/Explicit variable initialization & performance Pin
Christian Graus20-Jun-07 16:26
protectorChristian Graus20-Jun-07 16:26 
GeneralRe: Implicit/Explicit variable initialization & performance Pin
AesopTurtle20-Jun-07 16:29
AesopTurtle20-Jun-07 16:29 
GeneralRe: Implicit/Explicit variable initialization & performance Pin
Luc Pattyn21-Jun-07 0:22
sitebuilderLuc Pattyn21-Jun-07 0:22 
QuestionMultiplying 2 XML nodes and append it in another XML nodes Pin
saymajum20-Jun-07 13:51
saymajum20-Jun-07 13:51 
AnswerRe: Multiplying 2 XML nodes and append it in another XML nodes Pin
Christian Graus20-Jun-07 13:55
protectorChristian Graus20-Jun-07 13:55 
GeneralRe: Multiplying 2 XML nodes and append it in another XML nodes Pin
saymajum20-Jun-07 14:09
saymajum20-Jun-07 14:09 
This is the code:
This code is actually calculating one specific node with a user defined rate value.But this code I made for one sample windows application.
But now I need only one class file where no user defined rate is there.
rate is also available in the XML file.
And these code is for one specific node.I need to do the calculations for each and every nodes where Attribute is mention as coverage.

public void CalculateCommissionAmount(string policyXML, string rate)
{
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(policyXML);
XmlElement root = xmldoc.DocumentElement;

if (Convert.ToDouble(rate) < -5)
{
MessageBox.Show("Invalid Rate - Rate cannot be less than -5%.");
}
else if (Convert.ToDouble(rate) > 100)
{
MessageBox.Show("Invalid Rate - Rate cannot be more than 100%.");
}
else
{
try
{
XmlNodeList xmlnode = xmldoc.GetElementsByTagName("PersonalAutoVehicle");
for(int i=0; i
GeneralRe: Multiplying 2 XML nodes and append it in another XML nodes Pin
Christian Graus20-Jun-07 14:19
protectorChristian Graus20-Jun-07 14:19 
GeneralRe: Multiplying 2 XML nodes and append it in another XML nodes Pin
saymajum20-Jun-07 14:33
saymajum20-Jun-07 14:33 
Questionlooping in Xml nodes in C# Pin
saymajum20-Jun-07 13:39
saymajum20-Jun-07 13:39 
AnswerRe: looping in Xml nodes in C# Pin
Christian Graus20-Jun-07 13:47
protectorChristian Graus20-Jun-07 13:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.