Hi,
Using vs2008 and c#.
In my development enironment I have 2 website with identical folder structure. And my master pages for
both website are almost similar.
In both the application I have some javascript referenced for counting the number of characters entered as follows:
<script type="text/javascript" src='<%# Page.ResolveUrl("~/Javascript/textcounter.js") %>'> </script>
It works perfectly fine in one website. However in the other website onkeypress it was trying the javascript function
and it gives the following error.
Microsoft JScript runtime error: Object expected
I am not sure why it is working on one website and not on the other.
Both VS2008 and the 2 website are all on the same machines.
Looks like it is something specific to a website.
This happens when debugging application using IE. When I ran in Chrome it is not displaying the error.
Is there any issues in webconfig files? All my reference are ok.
It is was working ok 2 days ago and I did not install anything.
Any input is appreciated.
Sure
Our community of experts have been thoroughly vetted for their expertise and industry experience.