0

I know how to use client side JavaScript with asp.net script. But I am unable to figure out how to retrieve data from database and show that data with JavaScript in an asp.net page.

Suppose I have written a JavaScript Grid. Then how can I fill that grid with data from SQL Server and show that grid on an asp.net page?

That is, how to connect C# and JavaScript on the server side?

I would be grateful if you provide me with an web-link of an example.

Hope I am able to articulate my question.

asked Nov 30, 2009 at 12:30

1 Answer 1

1

how to connect C# and JavaScript on the server side

You can use AJAX for this. It can issue a request to the server and after completion of the request response can be read in JavaScript in many formats like HTML, XML, JSON.

answered Nov 30, 2009 at 12:33
Sign up to request clarification or add additional context in comments.

1 Comment

Can you provide me with an web link of an example?

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.