Quantcast
Channel: GridView and SQL server database
Browsing all 12 articles
Browse latest View live

Re: GridView and SQL server database

Thanks.I did find that error as well. when I used update statement in the SQL builder in configuration. I found the difference and made changes and it works.Thank you all for useful links and time.

View Article



Re: GridView and SQL server database

this seems to be error due to incorrect sql statementcan u debug the code and see what is the value in this line?user is a keyword in sql... so, u should wrap it in brackets [] to indicate it is used...

View Article

Re: GridView and SQL server database

I added some statement, but it still does not work.code is here:protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { //Retrieve the table from the session object. DataTable...

View Article

Re: GridView and SQL server database

Hi,Try Thishttp://hightechnology.in/gridview-edit-delete-update/

View Article

Re: GridView and SQL server database

Have a look this linkhttp://usingaspdotnet.blogspot.in/2011/03/add-delete-update-inside-gridview-using.htmlRegardsBharat Bhushan

View Article


Re: GridView and SQL server database

msu0122Where is problem?The data in the gridview were updated but the records in the database (in sql server) were NOT.check AddnewCustomer and UpdateCustomer metthods in the first link I posted...

View Article

Re: GridView and SQL server database

You executed sql to make a dt.  Then you show the dt through the gridview.Then, you update dt.  This will not update the database at all.When you make a change to dt, you must write sql to update the...

View Article

Re: GridView and SQL server database

How can I pass the edited row from grid back to the database?Thanks.

View Article


Re: GridView and SQL server database

Maybe I'm missing something but I can't see where your passing the edited row from the grid view back to the database? I can see your getting the data on page load and your calling bind data etc but I...

View Article


Re: GridView and SQL server database

Thanks for the links.My code is here://Loading Page        protected void Page_Load(object sender, EventArgs e)        {            if (!IsPostBack)               getData();                      }...

View Article

Re: GridView and SQL server database

msu0122 I tried to edit/update some records which successfully updated in the gridview but when I checked the SQL server data table, it did not.it might be getting updated in database fine... make sure...

View Article

GridView and SQL server database

I am new in Asp/SQL. I need help for clarifying some concepts.Current I have a page with a gridview control. I bind a database table in SQL server to a gridview control.I tried to edit/update some...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images