Save button not storing information within the sql database
NickName:SteveMcManamen Ask DateTime:2015-08-26T17:11:00

Save button not storing information within the sql database

I am new to C# guys so please be kind and any help is appreciated :).

My save button is not retaining the information that it should on the sql database and I'm slightly perplexed as to why?

This is my code below...

private void btnSave_Click(object sender, EventArgs e)
{
    try
    {
        InformationBindingSource.EndEdit();
        test.SaveChangesAsync();
        panel.Enabled = false;
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
        InformationBindingSource.ResetBindings(false);
    }
}

What I don't understand is that on the sql server profiler it recognises the connection and the button also claims to store the information. Although, if a restart the project and start it back up, or look in sql, the information isn't there.

I have also declared the "entity.infrastructure" and I've just come to a stand still with no idea why it's not storing the information :(

Copyright Notice:Content Author:「SteveMcManamen」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/32222440/save-button-not-storing-information-within-the-sql-database

More about “Save button not storing information within the sql database” related questions

Save button not storing information within the sql database

I am new to C# guys so please be kind and any help is appreciated :). My save button is not retaining the information that it should on the sql database and I'm slightly perplexed as to why? This...

Show Detail

Prevent storing invalid information in sql database

I have made this form where users can input various information,Everything is fine i am checking for different errors also but the problems is if user inputs email with a invalid email format and w...

Show Detail

Database to use for storing profile information

I'm making an application for android which is used to store profile information of a user( FirstName, LastName, Email, Username, Password ). It will also store profile picture of the person. You can

Show Detail

Methods for storing login information in database

What is the best way to store login information into database? I know that storing plane text password is not at all suggested. What are the other methods? What functions in PHP are available for

Show Detail

Compact database file like solution for storing small information with php

I am developing a facebook app using php SDK, my app is small and simple meant for a community project and its database contains only one table with 6 columns and hardly 10-20 lines of record. I am

Show Detail

Options for storing large text blobs in/with an SQL database?

I have some large volumes of text (log files) which may be very large (up to gigabytes). They are associated with entities which I'm storing in a database, and I'm trying to figure out whether I s...

Show Detail

Android Save Login and Storing of Login Information

Today i wanted to implement a login form. The User has to have connection to the internet to login because i want to send the username and the hashed password (sha 512?!) to a server and to get an

Show Detail

Best way of storing an array in an SQL database?

For an Android Launcher (Home Screen) app project i want to implement a feature called "Sort by usage". This will sort by the launch count of an app within a user settable timeframe. The current i...

Show Detail

Save simple information for a database within postgress

I have a multi tennant application which will use the SILO Model to save data (each tennant will get an own database). Because tennant names could be redundand my database are with GUIDs: MyApp_[GU...

Show Detail

MVC 4 - Save Row information back to the Database when a user has edited a field

I am using an editorfor template so that users can edit row information inline when the information is displayed as a table. The user then has a save button below the table which when pressed sends...

Show Detail