Click here to Skip to main content
15,885,104 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi,

In aspx page i add a link using .Then it's onclick event call
a javascript function.The javascript file use in aspx through external link.
it give error as,

Microsoft JScript runtime error: Object expected. But it working fine when i use

javscript in same page inside <scirpt> tag.

what is the error?
plz help..
Posted
Comments
Zoltán Zörgő 15-Oct-12 0:46am    
What is the code?
Arunprasath Natarajan 15-Oct-12 0:52am    
Provide your code.
n.podbielski 15-Oct-12 4:04am    
I do not understand what are you asking? Am I only one?
Unareshraju 15-Oct-12 8:38am    
can u provide your source code? we will see where the function being called .
Ambesha 15-Oct-12 8:43am    
please share your code dear :)

Change the order of link for Javascript file on that page.
 
Share this answer
 
hi


it might be because of few things


1. you might be using the aspx control

and binding its onclick then you have to run it on the aspx page if you want to access it's id from external js

please make use of

id.ClientID

2. the order of js may cause it

if A is dependent on B
then A must load before B
so order is
A
B
i can help you more if you add the code
 
Share this answer
 

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