Click here to Skip to main content
14,736,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any possibility to retrieve data from a datacolumn of an sql table on mouseover
on an image.

What have you tried and where is the problem?

1 solution

Yes possible, i can give you a idea

1.On Mouse hover call a AJAX GET Method
2.Write a method to fetch desire record from DB

Here is a small eg. that show how it work.
<script type="text/javascript" language="javascript">
var addingProduct = false;

function AddProduct() {                 

        type: 'Get',
        url: '/Home/getCategory',
        data: {
            lastProduct: parseInt($("#hdnConfirm").val())
        async: true,
        dataType: "html",
        success: function (data) {
            if (data !== null && data !== "") {
                addingProduct = false;
                document.getElementById('hdnConfirm').value = (parseInt(document.getElementById('hdnConfirm').value) + 1);
        error: function (xhr, ajaxOptions, thrownError) {
    return false;

$(window).load(function () {
    document.getElementById('hdnConfirm').value = 1;


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