ASP.NET AJAX Tab Container and a Simple C# Update Statement

Post Reply
Neofriend
Captain
Captain
Posts: 103
Joined: Wed Dec 23, 2009 3:37 pm
Location: Pakistan

ASP.NET AJAX Tab Container and a Simple C# Update Statement

Post by Neofriend » Thu Apr 08, 2010 11:41 am

I have an ASP.NET AJAX Tab Container and inside a Tab Panel, I have a simple form consisting of a couple of textboxes. The data is dynamically loaded in to textboxes on pageload. Now When its loaded, the textboxes are basically there for users to update their profile.

Now I have applied 100% correct code (in my opinion, as I've been always using) on the update button. It even calls the method, and initiates the try catch block as well. Even shows in label that data is updated. But the data is not updated actually.

What is this? something about Postback or what? Am just a newbie in ASP.NET - hope someone can quickly help.
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: ASP.NET AJAX Tab Container and a Simple C# Update Statement

Post by Neo » Thu Apr 08, 2010 12:38 pm

That means you have used an INSERT or UPDATE, isn't it?
Have you commit data after writing to DB ?
Post Reply

Return to “ASP & ASP.Net”