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 4008340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:44:33+00:00 2026-05-20T08:44:33+00:00

To connect to my database I used the wizard to make SQLDataSource. But I

  • 0

To connect to my database I used the wizard to make SQLDataSource. But I need to access it in code behind, to store my data in the database. Does someone knows how I can do that?

I appreciate your help. This is the code:

<asp:SqlDataSource 

ID="MySqlDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HELPDESK_OUTLOOKConnectionString3 %>" SelectCommand="SELECT 

hd_aanvraag_fase.aanvraag_id,

hd_statussen.status_omschrijving as status,

hd_melding_niveau_1.niveau_omschrijving AS niveau1_omschrijving,

aanvrager.werknemersnaam AS melder ,

hd_aanvragen.aanvraag_titel ,

hd_aanvragen.aanvraag_omschrijving,

hd_aanvraag_fase.fase_datum

FROM hd_aanvragen 

INNER JOIN hd_meldingen         ON hd_meldingen.melding_id      =  hd_aanvragen.melding_id

INNER JOIN hd_melding_niveau_1  ON  hd_melding_niveau_1.niveau1_id = hd_meldingen.niveau1_id

INNER JOIN hd_melding_niveau_2  ON  hd_melding_niveau_2.niveau2_id = hd_meldingen.niveau2_id

INNER JOIN hd_aanvraag_fase     ON hd_aanvraag_fase.aanvraag_id =  hd_aanvragen.aanvraag_id

INNER JOIN hd_statussen         ON hd_statussen.status_id     =  hd_aanvraag_fase.status_id

INNER JOIN  hd_werknemers AS oplosser    ON oplosser.werknemer_Id    =  hd_aanvraag_fase.werknemer_Id

INNER JOIN hd_werknemers  AS aanvrager    ON aanvrager.werknemer_Id    =  hd_aanvragen.werknemer_Id

WHERE hd_statussen.status_id = 15

ORDER BY hd_aanvragen.aanvraag_id ,  hd_statussen.status_id"></asp:SqlDataSource>
  • 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-05-20T08:44:34+00:00Added an answer on May 20, 2026 at 8:44 am

    Do you need to get the SQLDS data in something like a DataTable to see on code your data? or you just need to get data back on the DB?

    Although I give you two useful links that can help you out in both situations:

    1) http://www.dotnetspider.com/resources/7333-How-Extract-data-from-SQLDataSource-Data.aspx

    DataView dv = new DataView();
    DataTable dt = new DataTable();
    dv = mySQLDataSource.Select(DataSourceSelectArguments.Empty) as DataView;
    dt = dv.ToTable();
    

    now on dt you have your data

    2) http://www.c-sharpcorner.com/UploadFile/raj1979/SqlDataSource10032008142537PM/SqlDataSource.aspx

    Working with sqldatasource on .net 3.5

    Hope that can help

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

Sidebar

Related Questions

In code igniter, you can connect database and make queries in controller like: $this->db->query(Your
i want to connect database to iphone sdk but it is taking the default
i wrote program to connect oracle database 11g for my android application to store
I had a local database used to connect with sql server authentication, every thing
Here the code: <?php include_once 'config.php'; // Connect to database $conn = oci_connect($dbuser, $dbpasswd,
It seems that the database used to display the data is different from the
I am used to mysql database access using the procedural mysql method. I am
I want to connect mysql database locally with android emulator. I used http GET
I was trying to connect to MySQL using JAVA I used the same code
Is that possible to connect mysql database between servers. I mean, lets say i

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.