473,326 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Passing 40 parameters to oracle using XML in windows form

Hi All,
I having a form contains 40 textboxs and also a submit button while i click my submit button i need to pass this 40 values as parameters to oracle database to store in table. I guided to use XML to pass those 40 parameters.
But when i try to write XMLHandler it showing error as not exist in current context.Plz help

Sample Code:
List<CallLogInfo> ObjListCallLogInfo = null;
Functions ObjFunctions = null;
CallLogInfo ObjCallLog = null;
string strXML = string.Empty;
Int32 Result = 0;
try
{
ObjListCallLogInfo = new List<CallLogInfo>();
ObjCallLog = new CallLogInfo();
.
.
.
if (chkQuickIncident.Checked)
{
ObjCallLog.QuickIncident = "Y";
}
else
{
ObjCallLog.QuickIncident = "N";//ChkBox
}
if (rbtnDatabaseUpdation.Checked)
{
ObjCallLog.DatabaseUpdation = rbtnDatabaseUpdation.Text.ToString();
}
else if (rbtnSuspectEngineer.Checked)
{
ObjCallLog.DatabaseUpdation = rbtnSuspectEngineer.Text.ToString();
}
else if (rbtnNone.Checked)
{
ObjCallLog.DatabaseUpdation = rbtnNone.Text.ToString();
}
ObjListCallLogInfo.Add(ObjCallLog);
strXML = XMLHandler.ToXml(Encoding.UTF8, ObjCallLog);
Jul 2 '11 #1
1 1685
ThatThatGuy
449 Expert 256MB
You should have posted the entire code, see there's a try block but no catch blocks.
Also you must post the error stack trace, which will help us more to help you.

Anyways, i think objCallLog must be outside your try block..
Jul 3 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: paulhunt08 | last post by:
Does anyone know, from a windows form, how to determine the location of a third party application on the screen. Ex. I am running an application called "OtherApp" which is NOT a microsoft or...
1
by: bentond | last post by:
I am trying to write a simple form that allows a user to search through an address table. The main form has the text boxes (to be used as where parameters) and when clicking the search button will...
1
by: RA | last post by:
Hi I wonder if anyone tried this or know if it has been fixed. I am using vs .net 1.1 and have a windows form. In the form I have a DataGrid with the following format: 3 first Columns are of...
11
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
0
by: Neelima Godugu | last post by:
Hi All, I have developed a windows forms user control, which I am going to host in Internet Explorer.. I am familiar with the security settings requirement inorder to do the above. I have...
2
by: El Camino | last post by:
Howdy all On a window application vb.net a 'frmOne' open a 'frmTwo' from 'frmTwo' i get and ID when i close 'frmTwo', i want to pass the ID to 'frmOne' to initialize a List view
1
by: Manolatos Tilemahos | last post by:
Dear friends, First pls accept my apologies, because I am a new Postgres user, so my questions could be silly. We need to setup a database using UTF-8 encoding, however, by some way, we have...
5
by: SarahZ | last post by:
Hi all, I am working on a project which is using a windows form to locate an Excel file and then display it. I am trying to use two combo boxes to locate an Excel file. The two combo boxes will be...
3
by: mahgnilla | last post by:
Hi, I have been searching for hours for this answer and am still getting no where! I have a continuous subform that contains a list of people (by first name and last name). I want to have a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.