Click here to Skip to main content
15,889,992 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to add scrollbar in autocomplete extender Pin
Christian Graus5-Apr-09 21:05
protectorChristian Graus5-Apr-09 21:05 
GeneralRe: how to add scrollbar in autocomplete extender Pin
kapurthala6-Apr-09 20:49
kapurthala6-Apr-09 20:49 
AnswerRe: how to add scrollbar in autocomplete extender Pin
praneeth maddu5-Jul-11 22:37
praneeth maddu5-Jul-11 22:37 
QuestionRegistration process for social network web site Pin
Shahdat Hosain5-Apr-09 20:06
Shahdat Hosain5-Apr-09 20:06 
AnswerRe: Registration process for social network web site Pin
Christian Graus5-Apr-09 20:15
protectorChristian Graus5-Apr-09 20:15 
QuestionUnable to connect with asp.net development server problem Pin
rajmca.g5-Apr-09 19:29
rajmca.g5-Apr-09 19:29 
AnswerRe: Unable to connect with asp.net development server problem Pin
Vimalsoft(Pty) Ltd6-Apr-09 1:08
professionalVimalsoft(Pty) Ltd6-Apr-09 1:08 
QuestionAcceptChangesDuringUpdate = False in TableAdapterManager Pin
AlexeiXX35-Apr-09 19:25
AlexeiXX35-Apr-09 19:25 
Hi, thanks for looking

Im using ntier datasets in vs2008: Windows client - webservice - DAL with dataset

I have a save method in webservice as well as in DAL, they take a dataset as a parameter byref

The problem is with new rows, the primary key is an autoincrement column
When i send the changes to the webservice, i cant merge the result with my client dataset because ill get duplicated rows for the added rows

I know i could do something like this once i get a response from the save method in the windows client:
Find all added rows in client dataset for each datatable, delete them, merge the client dataset with the dataset returned from the webservice and call acceptchanges. Tha works fine, the thing is that ill be using this in many forms and also the dataset contains like 6 tables that are being updated in the webservice, there must be any other way to do it.

If i use the individual tableadapters and set the acceptchangesduringupdate=false, IT WORKS, since the dataset will keep the original autogenerated id and the real autogenerated id by the DB
I wouldnt like to use individual tableadapter, since i am updating like 6 tables at once with the tableadaptermanager, and saving them with individual tableadapter will be a real pain

I already tryed sing something like this (but doesnt work):
Dim ta As New dsXTableAdapters.TableAdapterManager
ta.XTableAdapter = New dsXTableAdapters.XTableAdapter
ta.XTableAdapter.Adapter.AcceptChangesDuringUpdate = False

Also tryed capturing the rowupdated event of the adapter (And didnt work either):
Private Sub _adapter_RowUpdated(ByVal sender As Object, ByVal e As System.Data.SqlClient.SqlRowUpdatedEventArgs) Handles _adapter.RowUpdated
    If e.StatementType = StatementType.Insert Then
        e.Status = UpdateStatus.SkipCurrentRow
    End If
End Sub




Any suggestions??

Alexei Rodriguez

Questiontemplate field at runtime for detailsview Pin
md_azy5-Apr-09 19:16
md_azy5-Apr-09 19:16 
Question[Message Deleted] Pin
kamleshPardeshi5-Apr-09 17:48
kamleshPardeshi5-Apr-09 17:48 
AnswerRe: File Handling using ASP.net Pin
Christian Graus5-Apr-09 20:18
protectorChristian Graus5-Apr-09 20:18 
QuestionPop-Up & Chatting Pin
vaah5-Apr-09 9:54
vaah5-Apr-09 9:54 
AnswerRe: Pop-Up & Chatting Pin
Christian Graus5-Apr-09 10:23
protectorChristian Graus5-Apr-09 10:23 
AnswerRe: Pop-Up & Chatting Pin
Abhijit Jana5-Apr-09 19:15
professionalAbhijit Jana5-Apr-09 19:15 
QuestionCSS, Hyperlinks and SiteMapPath Control Pin
Unsy5-Apr-09 8:44
Unsy5-Apr-09 8:44 
AnswerRe: CSS, Hyperlinks and SiteMapPath Control Pin
Alok Sharma ji5-Apr-09 15:50
Alok Sharma ji5-Apr-09 15:50 
GeneralASP.NET ADO.NET C# How to Shopping Cart Pin
auisuke5-Apr-09 6:11
auisuke5-Apr-09 6:11 
GeneralRe: ASP.NET ADO.NET C# How to Shopping Cart Pin
Yusuf5-Apr-09 6:32
Yusuf5-Apr-09 6:32 
QuestionHow to make asp.net control attribute update from javascript persistent? Pin
hardboy1115-Apr-09 5:30
hardboy1115-Apr-09 5:30 
AnswerRe: How to make asp.net control attribute update from javascript persistent? Pin
Yusuf5-Apr-09 6:41
Yusuf5-Apr-09 6:41 
AnswerRe: How to make asp.net control attribute update from javascript persistent? Pin
Alok Sharma ji5-Apr-09 15:28
Alok Sharma ji5-Apr-09 15:28 
QuestionServer Error in '/' Application. Pin
prasadbuddhika5-Apr-09 4:49
prasadbuddhika5-Apr-09 4:49 
AnswerRe: Server Error in '/' Application. Pin
N a v a n e e t h5-Apr-09 5:01
N a v a n e e t h5-Apr-09 5:01 
GeneralRe: Server Error in '/' Application. Pin
prasadbuddhika5-Apr-09 5:06
prasadbuddhika5-Apr-09 5:06 
AnswerRe: Server Error in '/' Application. Pin
Yusuf5-Apr-09 5:25
Yusuf5-Apr-09 5:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.