Click here to Skip to main content
15,921,660 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hello,
I am getting an error: Microsoft JScript runtime error: Object required
My Code is:
C#
function ShowUPI_Search() {debugger;
        rblEmployeeSearch();
        document.getElementById('UPISearchResult').innerHTML = '';
        document.getElementById('txtSearch').value = '';
        //I am getting error here:
        document.getElementById('imgClose').style.display = 'inline';
        listControl1.checked = false;
        listControl2.checked = false;
        listControl3.checked = false;
        fncallUPISearch(3);

        $find('mpeUPIGreetings').show();
    }

Can anyone suggest to solve this problem!!
Posted
Updated 5-Jul-12 19:02pm
v2

1 solution

If by "here" you mean "in next line", the problem is that no element is found by the id="imgClose"; check up spelling and presence of an element with this id.

If the problem is another line, please find it by yourself, understanding that this message mean that you try to use undefined object.

—SA
 
Share this answer
 
v2

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