Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8061939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:30:04+00:00 2026-06-05T10:30:04+00:00

This is for a website in C#,Visual Studio 2010. I’ve created a form with

  • 0

This is for a website in C#,Visual Studio 2010.

I’ve created a form with many textboxes, a date picker, dropdownlist, etc.
I’ve created a table in sqlplus with the columns with necessary types(varchar, number, date).
When I click the submit button in my form, I want to store the data in the table I’ve created.

Just to make it simpler for you guys, assume I have 3 text boxes
(name(text), id, date(i’ve printed the date in the text box as string)).

When I click submit it should fill the table with these data.
Im struggling to get the OracleCommand to execute this.

cmd = new OracleCommand(______, con);

If there is any other way I can do this by manipulating the types also its welcome 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:30:06+00:00Added an answer on June 5, 2026 at 10:30 am

    The insert syntax for oracle commands generally follows the pattern;

    string query = @"INSERT INTO SOME_TABLE VALUES (SOME_COLUMN_1 = :SomeParam1,SOME_COLUMN_2 = :SomeParam2 )";
    OracleCommand command = new OracleCommand(query, connection) { CommandType = CommandType.Text };
    command.Parameters.Add(":SomeParam1", OracleDbType.Varchar2).Value = "Your Val 1";
    command.Parameters.Add(":SomeParam2", OracleDbType.Varchar2).Value = "Your Val 2";
    connection.ExecuteNonQuery();
    

    See more reference examples here;
    Using Named Parameters with Oracle ODP.NET

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website which was created using Microsoft Visual Studio 2010. I want
In a Visual Studio website, I have created a user control. This control is
I've created a MVC website using Visual Studio 2010 and would like to deploy
I've got this ASP.NET 2.0 website project in Visual Studio that I've been working
I have a Website Project in Visual Studio 2010 along with a Class Library
I'm using Visual Studio 2010 with the new website publish dialog. I have a
I am using C# visual studio 2010 to develop an ASP.NET website. I dynamically
I have deployed a website using Visual Studio 2010 on IIS6. I used one
I have an engineering firm and our website was built using Visual Studio 2010
I have built my new website in Visual Studio 2010 (C# - ASP.NET 4).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.