Link to home
Start Free TrialLog in
Avatar of troyvw
troyvwFlag for United States of America

asked on

Microsoft JScript runtime error Object expected

Why do i get the error :

Microsoft JScript runtime error Object expected

when this line of code is run

onclick="return txtNoteFile_onclick()" /> </input>
Avatar of jijeesh
jijeesh
Flag of India image

Do you have txtNoteFile_OnClick() function in your web page?
Can you send the whole webpage content
Avatar of leakim971
> txtNoteFile_onclick

Seems you're calling client side function from server side.

Try :

<asp:Button
 onClientClick="return txtNoteFile_onclick()" />

Open in new window

Avatar of g3k0
g3k0

Do you mean
<asp:Button
 onClientClick="txtNoteFile_onclick()" />

???

Need more information.
Avatar of troyvw

ASKER

<input name="NotesPanel$C$txtNoteFile" type="file" id="NotesPanel_C_txtNoteFile" size="4" onclick="return txtNoteFile_onclick()" /></>
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of troyvw

ASKER

ty
You're welcome! Thanks for the points!