Save in database

  1. #1

    Save in database

    I'm working with LINQ to Entities and I created a window like similar to the example https://examples1.ext.net/#/GridPane...etails_Window/

    <DIV id=result_box dir=ltr style="TEXT-ALIGN: left">But when I click the Save button, I haven't achived managed to obtain data from the fields of the screen to the method(save) in part .cs , that is, comes with NULL values for the method and save null in database.
    What can I do to save properly in database?

    Thanks for attention!
  2. #2

    RE: Save in database

    Hi,

    The example https://examples1.ext.net/#/GridPane...etails_Window/ doesn't save any data on server. It just put changed to grid. You need to add saving logic (like in other examples which you can find in Examples Explorer).

    There is another same example with saving (https://examples1.ext.net/#/GridPane...Window_Remote/)

    Also you can post your example and we will try to resolve what's wrong.

  3. #3

    RE: Save in database



    Ok... you can pass your e-mail?
  4. #4

    RE: Save in database

    Hi flaviodamaia,

    Community Help/Support is only provided in the forums. Premium Members are welcome to email support [at] coolite [dot] com if technical support is required and they would rather not post private project information/code in the forums.


    Hope this helps.


    Geoffrey McGill
    Founder
  5. #5

    RE: Save in database



    I'm using LINQ to Entities... and I have a problem to pass the values of the window for the Save method at the ascx.cs.
    Where is going with null values for method Save. What I do?

    This is my method save in ascx.cs:
    protected void btn_salvar_Click(object sender, EventArgs e)
    {
        if ((this.ctgDescription.Text != "")&amp;&amp;(this.ctgDescription.Text != null))
        {
            using (DMGDocEntitie context = new DMGDocEntitie())
            {
                Category ctg = new Category();
                ctg.ctgDescription = this.ctgDescription.Text;
                CategoryRN.add(ctg); //Get values and save in database.
                this.ctgDescription.Text = "";
            }
        }
            else 
                {
                    Response.Write("<script>alert('Saving Error!');</script>");
                }
    }
    Please a need help!!!

    Thanks for attention!

Similar Threads

  1. [CLOSED] Save ext:GridPanel.getState() in SQL Server database
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 03, 2012, 11:17 AM
  2. Replies: 12
    Last Post: Feb 20, 2012, 1:58 PM
  3. Replies: 2
    Last Post: Jul 28, 2011, 5:08 PM
  4. How to save DataView to the database?
    By wkcode in forum 1.x Help
    Replies: 1
    Last Post: Jan 19, 2011, 8:24 AM
  5. Replies: 3
    Last Post: Apr 20, 2010, 5:24 PM

Posting Permissions