Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Receiving "Invalid character" error on page when control attempts postback after upg to VS 2005

Reply
Thread Tools

Receiving "Invalid character" error on page when control attempts postback after upg to VS 2005

 
 
DCC700
Guest
Posts: n/a
 
      08-09-2006
After upgrading a web application from VS 2003 to 2005 there is a page
where any control event that should cause a postback instead generates
an Invalid character error on the page. For example a drop down list is
set to AutoPostBack, and for OnSelectedIndexChanged should update the
values of other drop down lists. This page works fine in VS 2003, and
the other pages with similar controls are posting back fine in 2005.

Has anyone else encountered this? Does anyone know what is causing it?


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
DCC700
Guest
Posts: n/a
 
      12-14-2006
I resolved a similar error in VS 2003 where I was getting a web page
error 'Expected;' and ddl postbacks were not working. This problem was
due to the fact that I was assigning a client script to one of the ddls
but it was also set to autopostback so the generated onChange included a
call to my function as well as the postback call that .Net includes with
no semicolon separating the two commands. It looked something like:
onChange="myscript()__doPostBack(eventTarget, eventArgument)"

This was resolved by disabling the auto postback for the control.


I haven't gotten back to this issue yet, but I am wondering if the
answer could be similar.


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView bound to a Datatable results in runtime error on attempts topage. Options chike_oji@yahoo.com ASP .Net 2 01-29-2008 09:22 AM
71-621 : UPG: Upgrading your MCDST Certification to MCITP Enterpri Confused in NY MCDST 24 12-27-2006 04:59 AM
Upg. MCSE 2000 to MCSE 2003 Jeppe Schoubye MCSE 7 07-28-2004 09:18 PM
How do I upg. 2620 to handle 4 T1s Christopher J. Hinkle Cisco 7 04-05-2004 05:00 PM
After adding Textboxes to calender control, how to get values after Postback? Andreas Klemt ASP .Net 0 02-01-2004 02:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57