473,395 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

vs 2005 migration problems

DS
I am trying to migrate a vs 2003 asp.net application to vs 2005 and am
having many problems. After dealing with 300+ compile errors after
conversion now I have many run time error. I lot of them seem to be
related to client script problems. Does vs 2005 handle client script
differently than 2003?

One of my problems is that some of my control events are not being
called. For example I have a textbox control:
<asp:textbox id=txtDate tabIndex="3" runat="server" Height="19px"
CssClass="textboxreadonly" Width="130px" MaxLength="10"
ReadOnly="True">

In client script I have this sub that is no longer being called after
the conversion:
sub txtDate_OnChange
document.frmTaskDetails.hDueDateChanged.Value =
document.frmTaskDetails.txtDate.value
EnableCmdSave()
end sub

I then tried to add this to my asp:textbox tag:
onChange="txtDate_OnChange"

And it's still will not working.
Any help would be greatly appreciated.
Thanks in advance for all help!!!!
Deidre

Apr 5 '06 #1
4 1124
Well you know you have runat="server" so your onchange is going to run
server side.

Apr 5 '06 #2
DS
I want it to do both. In vs 2003 it did both. First it check for client
events then server events.
It seems to be working for some of my other textboxes. It seems to have
something to do with this textbox not being manually entered by the
user. It has a calendar popup that is passing back a data that I am
using to value the textbox in this client sub:
sub SetDateNHidePopUp (dtDate)
document.all.ifrmCalendar.style.visibility = "hidden"
if IsDate(dtDate) then
Select Case miDateField
Case enuDUEDATE
document.frmTaskDetails.txtDate.value = dtDate

Case enuCLOSEDATE
document.frmTaskDetails.txtClosedDate.value = dtDate
End Select

end sub

Apr 5 '06 #3
DS
I figured it out. I had to change my textbox readonly property from
true to false and handle my readonly on client events. Apparently if
you make a textbox in vs2005 readonly it does return changes to the
server or call client script on events.
Hope this helps someone else.
Deidre

Apr 5 '06 #4
DS
Now I have another problem. Now that I changed the textbox to
readonly=false. I added script to the client onpaste, onchange,
onkeypress to window.event.keycode = 0. But it's still allowing me to
delete and paste in the textbox. I tried setting enabled property to
true but I don't like that it makes the text gray. Is there any way to
override that or a client script to stop the delete and pasting?
Thanks for helping.
Deidre

Apr 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a...
1
by: Henry Reardon | last post by:
I'm having some migration problems. On Friday, I upgraded from DB2 7.2 (FP9) to DB2 8.2 (FP7), then applied Fixpack 8. I'm running Windows XP. My migrations did not work and I am trying to fix...
4
by: Spurry Moses | last post by:
I know it's in Beta 2, but I can't report any good experiences with upgrading a project form 2003 to 2005. I tried to upgrade a 2003 project to C# Express 2005. My application has hardly...
1
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by...
11
by: Rob R. Ainscough | last post by:
Trying to get more info on this, anyone?? http://msdn.microsoft.com/vstudio/support/servicing/sp1_vs05/default.aspx Has anyone seen "a more detailed schedule of external interim...
7
by: Coleen | last post by:
Does anyone have any good detailed information on the conversion process? We are in the process of converting 2 projects from 2003 to 2005 and have some conversion errors that I can not find...
4
by: tootsuite | last post by:
Help. I have been tasked with upgrading a 2000 instance to 2005. I have actually done this before, but it was a long time ago, and I didn't do it alone. Now, the sitation is little different, and...
7
by: Jeroen | last post by:
We converted our decently large (13 projects, compiled about 12 mb) VStudio 2003/.Net1.1 project to VStudio 2005/.Net2. My two colleagues have no problem starting the new solution, but I get an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.