Click here to Skip to main content
15,905,566 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I am using Gridview control in asp.net 2.0. I want to bind data from database(sql server 2000) using only ajax.

Here my question is?

I want to bind data from database(sql server 2000) without using any dll, <asp:scriptmanager xmlns:asp="#unknown">, <asp:update panel="">, ashx, and asmx page..(only using ajax get and post method)


Give me ideas and answer....


By Mohan
Posted
Comments
Venkatesh Mookkan 30-Aug-10 5:49am    
Are you talking about Native Javascript AJAX??? Your question will not get answered if it is not clear. Try to simplify your question.
MohanMSC 31-Aug-10 4:27am    
My Question is..


I want to bind data into gridview without use of namespace. only javascript onclik event to call ajax to bind the gridview

1 solution

If you don't want to use ASP.NET 2.0 AJAX feature then you are left with two options:
1. Traditional XML Http Request
2. Callback.

Have a look at this article: ClientCallback custom control for web applications[^]
 
Share this answer
 
Comments
MohanMSC 31-Aug-10 4:32am    
Thanks For Giving Your idea...

Why ASP 2.0 does not support?

I want to bind gridview in pageload. Then i am going to add edit, update, delete and insert through using only ajax to perform those events. Is it possible?
amarasat 10-Nov-10 17:43pm    
Hello Sandeep, i haven,t found a better place to ask you this question, i visited your CleintCallback article it is really a very good development article, its a good custom control.

I have a question:

I am a newbie to AJAX and Asp.Net, i have been working on windows forms from over an year!! We don't have a database, its all flat files, all the data is stored in the server.

Our exisitng implementation is if user wants to see the health of a plugin or loop or data at a node, we use to generate HTML reports for every 2 minutes and use to store them in the client server. This is pure HTML, increasing in size day by day and is annoying a lot.

Have installed MySQL database recently and now the database is having a part of the data from our server. I want to create a web page which takes data from my database and updates automatically whenever values in the table changes. I think this is what meant by updating without postback, i think your article helps here.

Can i use your article to do this, do i need to install Asp.Net separately or can i use my Visual Studio 2003 to generate the custom control you gave in the article?

Can you please give me some heads up on this, thanks alot for your time!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900