🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #38

Database problem using AJAX

#38
From: M. Noroozi Eghbali
Date: Wed, 24 May 2006 22:13
26 lines
1607 bytes
Hi all,

I hope this group is the correct position for my question. I have a problem 
writing a record from an access database using AJAX. suppose the below code:

public void SaveData()
{
    try
    {
         bdpDataAdapter1.Active = true;
        //...writing data...
    }
    catch
    {
    }
}

When I call the function in a normal OnCLick event of a ASP:Button, the 
function works properly, but when I call it using AJAX methode, at the first 
line of the function, an exception is occured and nothing is added to the 
database.

Would you please let me know what is my mistake?

Thank you,
Mehrdad
Technical Details
Message-ID: <4474dac8$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,432071f934432998,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "M. Noroozi Eghbali" <galaxy@irandoc.ac.ir>
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: Database problem using AJAX
Date: Thu, 25 May 2006 01:43:51 +0330
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 213.176.22.232
Message-ID: <4474dac8$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1148508872 213.176.22.232 (24 May 2006 15:14:32 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail