I am converting my enterprise solution from VS 2003 (.NET v1.1.4322) to VS
2005 (.NET v2.0.50727). The entire solution uses serveral technologies -
Windows Server 2003 (AD, SQL Server 2000, IIS, ASP.NET, ASP.NET Mobile)
Windows Mobile 2003 (Pocket IE)
I have completed a portion of the conversion (ASP.NET Mobile pages for PIE,
and some of the ASP.NET-bases web services), and while
testing I have a runtime error that did not exist in the 1.1 version.
It is associated with a Windows Mobile ObjectList (mobile:ObjectL ist )
When debugging on the desktop in IE 6.0 (I have *not* yet started conversion
testing with PIE on the PDA), I click on a linkbutton in the object list and
now receive a JavaScript error -
WebForm_PostBac kOptions is undefined.
I am not using Javascript explicitly in my code, the error is caused by
ASP.NET 2.0-generated Javascript.
My .aspx code for LinkButtons in the ObjectList looks like -
(<asp:LinkButto n ID="lbnTask" CommandName="de tails" Runat="server"> <%#
((ObjectListIte m)Container)["name"] %></asp:LinkButton> )
ASP.NET 2.0 generates javascript for the browser that looks like -
<TD><a id="olstTask__c tl1_lbnTask"
href="javascrip t:WebForm_DoPos tBackWithOption s(new
WebForm_PostBac kOptions("olstT ask:_ctl1:lbnTa sk", "", true, "", "", false,
true))">medicat e patient</a></TD>
Previously, ASP.NET 1.1 generated javascript for the browser that looks very
similar -
<TD><a id="olstTask__c tl1_lbnTask"
href="javascrip t:WebForm_DoPos tBackWithOption s(new
WebForm_PostBac kOptions("olstT ask:_ctl1:lbnTa sk", "", true, "", "", false,
true))">medicat e patient</a></TD>
I know there is JavaScript embedded in System.Web.dll, for example -
function WebForm_PostBac kOptions(eventT arget, eventArgument, validation,
validationGroup , actionUrl, trackFocus, clientSubmit)
My C# code behind already has "using System.Web;", and I tried adding "<%@
Import Namespace="Syst em.Web" %>" to the 2.0 .aspx file, but it did not help
with
this issue.
Is there a configuration step I am missing as part of the "port" to 2.0?
2005 (.NET v2.0.50727). The entire solution uses serveral technologies -
Windows Server 2003 (AD, SQL Server 2000, IIS, ASP.NET, ASP.NET Mobile)
Windows Mobile 2003 (Pocket IE)
I have completed a portion of the conversion (ASP.NET Mobile pages for PIE,
and some of the ASP.NET-bases web services), and while
testing I have a runtime error that did not exist in the 1.1 version.
It is associated with a Windows Mobile ObjectList (mobile:ObjectL ist )
When debugging on the desktop in IE 6.0 (I have *not* yet started conversion
testing with PIE on the PDA), I click on a linkbutton in the object list and
now receive a JavaScript error -
WebForm_PostBac kOptions is undefined.
I am not using Javascript explicitly in my code, the error is caused by
ASP.NET 2.0-generated Javascript.
My .aspx code for LinkButtons in the ObjectList looks like -
(<asp:LinkButto n ID="lbnTask" CommandName="de tails" Runat="server"> <%#
((ObjectListIte m)Container)["name"] %></asp:LinkButton> )
ASP.NET 2.0 generates javascript for the browser that looks like -
<TD><a id="olstTask__c tl1_lbnTask"
href="javascrip t:WebForm_DoPos tBackWithOption s(new
WebForm_PostBac kOptions("olstT ask:_ctl1:lbnTa sk", "", true, "", "", false,
true))">medicat e patient</a></TD>
Previously, ASP.NET 1.1 generated javascript for the browser that looks very
similar -
<TD><a id="olstTask__c tl1_lbnTask"
href="javascrip t:WebForm_DoPos tBackWithOption s(new
WebForm_PostBac kOptions("olstT ask:_ctl1:lbnTa sk", "", true, "", "", false,
true))">medicat e patient</a></TD>
I know there is JavaScript embedded in System.Web.dll, for example -
function WebForm_PostBac kOptions(eventT arget, eventArgument, validation,
validationGroup , actionUrl, trackFocus, clientSubmit)
My C# code behind already has "using System.Web;", and I tried adding "<%@
Import Namespace="Syst em.Web" %>" to the 2.0 .aspx file, but it did not help
with
this issue.
Is there a configuration step I am missing as part of the "port" to 2.0?
Comment