• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 749
  • Last Modified:

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>
0
troyvw
Asked:
troyvw
1 Solution
 
jijeeshCommented:
Do you have txtNoteFile_OnClick() function in your web page?
Can you send the whole webpage content
0
 
leakim971PluritechnicianCommented:
> txtNoteFile_onclick

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

Try :

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

Open in new window

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

???

Need more information.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
troyvwAuthor Commented:
<input name="NotesPanel$C$txtNoteFile" type="file" id="NotesPanel_C_txtNoteFile" size="4" onclick="return txtNoteFile_onclick()" /></>
0
 
leakim971PluritechnicianCommented:
why  / >< / > ?

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.onclientclick.aspx
<input name="NotesPanel$C$txtNoteFile" type="file" id="NotesPanel_C_txtNoteFile" size="4" onClientClick="return txtNoteFile_onclick()" />

Open in new window

0
 
troyvwAuthor Commented:
ty
0
 
leakim971PluritechnicianCommented:
You're welcome! Thanks for the points!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now