Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
6 Points
5 Posts
Feb 27, 2012 03:00 PM|LINK
hi, i'm new to asp.net and currently working on a project writen in asp.net + c#
the program is working fine under vs2008 development server, but get an error when i deploy it to IIS7 in the same pc.
error message:
Message: Function expected Line: 191 Char: 1 Code: 0
so, i take a look at the source of the page, i found a "1" in the beginning of the line191 which is not expected...
but that part of code is auto-generated (right...?)
I'm not sure if that is related to ajax, i try this thread is just because the function after the "1" is related to ToolkitScriptManager...
please let me know if i get the question into a wrong thread.
any help are welcome.
Thanks in advance.
source:
189: <script type="text/javascript">
190: //<![CDATA[
191: 1(function() {var fn = function() {$get("ctl00_ToolkitScriptManager1_HiddenField").value = '';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();Sys.Application.initialize();
192: Sys.Application.add_init(function() {
193: $create(Sys.UI._Timer, {"enabled":true,"interval":3000,"uniqueID":"ctl00$ContentPlaceHolder1$TimerFindFile"}, null, null, $get("ctl00_ContentPlaceHolder1_TimerFindFile"));
194: });
195: //]]>
196: </script>
stardust0083
Member
6 Points
5 Posts
function expected error
Feb 27, 2012 03:00 PM|LINK
hi, i'm new to asp.net and currently working on a project writen in asp.net + c#
the program is working fine under vs2008 development server, but get an error when i deploy it to IIS7 in the same pc.
error message:
Message: Function expected Line: 191 Char: 1 Code: 0
so, i take a look at the source of the page, i found a "1" in the beginning of the line191 which is not expected...
but that part of code is auto-generated (right...?)
I'm not sure if that is related to ajax, i try this thread is just because the function after the "1" is related to ToolkitScriptManager...
please let me know if i get the question into a wrong thread.
any help are welcome.
Thanks in advance.
source:
189: <script type="text/javascript">
190: //<![CDATA[
191: 1(function() {var fn = function() {$get("ctl00_ToolkitScriptManager1_HiddenField").value = '';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();Sys.Application.initialize();
192: Sys.Application.add_init(function() {
193: $create(Sys.UI._Timer, {"enabled":true,"interval":3000,"uniqueID":"ctl00$ContentPlaceHolder1$TimerFindFile"}, null, null, $get("ctl00_ContentPlaceHolder1_TimerFindFile"));
194: });
195: //]]>
196: </script>