Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > Database > Database General Discussion

Database General Discussion General discussion on database related topics

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2009, 12:45 PM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Feb 2008
Posts: 2
Reputation: 0
jp7234 is on a distinguished programming path ahead
Default How to save modified datum in the dhtmlxGrid to DB?

Hello,everyone!

I am a beginner for VB.NET and dhtmlxGrid.In my project(Web Application) here is a page to do as follows:

①Click button『Search』 to get datum from table(A) and to show the gotten datum in the dhtmlxGrid.
②Click button『Add』 to add a row into the dhtmlxGrid and edit the added row.
③Click button『Del』 to delete the selected row to the in the dhtmlxGrid
④Click button『Update』 to edit the selected row in the dhtmlxGrid
⑤Click button『Save』 to save the modified dhtmlxGrid datum to the table(A)

In order to get high efficiency,I use Ajax to do as follows:
-->②Click button『Add』 to add a row into the dhtmlxGrid and edit the added row.After editing, I save the added row ith the flg(1:added) to sesson.
-->③Click button『Del』 to delete the selected row in the dhtmlxGrid. After deleting, I save the deleted row with the flg(2:deleted) to sesson.
-->④Click button『Update』 to update the selected row in the dhtmlxGrid. After updating, I save the edited row with the flg(3:deleted) to sesson.
-->⑤Click button『Save』: I use the datum from session to update the table(A)
a)added row ----Insert it into table(a)
b)deleted row ----Delete it into table(a)
c)edited row ----Update it into table(a)

The above way is OK? Second way?

Thank you very much!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 1:11 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.