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

  • SEARCH
  • Home
  • 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 9304477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:43:03+00:00 2026-06-18T23:43:03+00:00

I am designing a web page, i want to get last entry from the

  • 0

I am designing a web page, i want to get last entry from the column (“call_id) from the table “tbl_CALL” and store in the variable(“lastcallId”).
can anyone help me for writing he code in c#.
Thanks in advance

  • 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-18T23:43:04+00:00Added an answer on June 18, 2026 at 11:43 pm

    Try this:
    on your web.config:

    <connectionStrings>
        <add name="OracleDBConnString" connectionString="Provider=MSDAORA;Data Source=[database];User ID=[userID];Password=[yourPassword];"
       providerName="System.Data.OleDB" />
     </connectionStrings>
    

    in your C#:

    private OleDbConnection conn = new OleDbConnection();
    private string _strCon = ConfigurationManager.ConnectionStrings["OracleDBConnString"].ConnectionString;
    private OleDbTransaction _trans = null;
    DataTable dt = new DataTable();
    DataSet ds = new DataSet();
    OleDbDataAdapter da = new OleDbDataAdapter();
    
    conn.Open();
    
    strSelectQuery = "SELECT last(call_no) FROM tbl_IThelpdesk"; // here you have to put your query
    
    
    da.SelectCommand = new OleDbCommand(strSelectQuery, conn);
    da.Fill(ds);
    dt = ds.Tables[0];
    
    conn.Close();
    

    Now, the content of your SQL query is now at dt. I hope this helps.

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

Sidebar

Related Questions

I am designing a web page for playing some movies. I want user to
I'm designing a very simple web page (HTML only), the only feature I want
I'm designing a web page. I want to show the text overflow with the
I want to do some exercises for web front page designing. Is there any
I am designing a web page (in Visual Web Developer) that displays a report
I've recently encountered a problem designing a web page. I needed to have rounded
I am designing a web page. When we click the content of div named
Layout of the web page i am designing is like this fiddle : http://jsfiddle.net/5sTub/
I'm designing a dynamic web page that loads contents by AJAX, like the wall
I am designing a web application where i want to use maximum of struts

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.