473,387 Members | 1,721 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,387 software developers and data experts.

asp.net 2.0 adds unwanted semicolons

I've just upgraded an asp.net project from asp.net 1.1 to 2.0. It compiles
and runs. However, on one of the pages, which worked in 1.1, it appears that
..net 2.0 goes into a perfectly good client-side vbscript onclick event and
adds a
semicolon to it. Since the event is vbscript, IE does not appreciate the
semicolon, and gives me a script error.

This application worked in asp.net 1.1 and has been working for over a year,
so it's clear that 2.0 is the source of the problem. I think .net may think
the event is supposed to be a server-side event. This only affects the
onclick event (for radio buttons)--there are several other events, such as
onkeydown, that have no problems.

Any suggestions how to get .net to stop tweaking my client-side script?
Thanks
for any ideas.

--Eachus
Nov 17 '06 #1
1 939
I don't see anything "perfectly good" about using VBScript on the
client-side browser. It only works in IE. Use JavaScript for client-side
scripting.

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

Any experience you can walk away from
is a good one.

"Eachus" <Ea****@discussions.microsoft.comwrote in message
news:43**********************************@microsof t.com...
I've just upgraded an asp.net project from asp.net 1.1 to 2.0. It compiles
and runs. However, on one of the pages, which worked in 1.1, it appears
that
.net 2.0 goes into a perfectly good client-side vbscript onclick event and
adds a
semicolon to it. Since the event is vbscript, IE does not appreciate the
semicolon, and gives me a script error.

This application worked in asp.net 1.1 and has been working for over a
year,
so it's clear that 2.0 is the source of the problem. I think .net may
think
the event is supposed to be a server-side event. This only affects the
onclick event (for radio buttons)--there are several other events, such as
onkeydown, that have no problems.

Any suggestions how to get .net to stop tweaking my client-side script?
Thanks
for any ideas.

--Eachus

Nov 18 '06 #2

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

Similar topics

1
by: Mage | last post by:
Hello, I amafraid of I will stop using semicolons in other languages after one or two months of python. However I see that python simply ignores the semicolons atd the end of the lines. ...
23
by: chris Jangelov | last post by:
It seems that opening a link in a new window isn't considered to be good practise in xhtml 1.1. The w3c validation service does not accept it and I have to downgrade those pages to...
3
by: Brian | last post by:
I have a page with content, navigation, and footer divs, in that order. The nav div has position: absolute, width 8em, on green background. The other divs have an 8em green left border, such that...
1
by: jjbutera | last post by:
How do I escape these? The backslash doesn't seem to be working.
4
by: Prowler | last post by:
In the application we are currently building, we need to write positioning code on-the-fly, based upon the screen offset of the element in the AS/400 application which drives the Web app. The 400,...
27
by: Jeremy Yallop | last post by:
Write a program that takes a C program in source form as input and prints the source code for a program with equivalent behaviour, but without semicolons, on standard output. Please note that...
4
by: David Beck | last post by:
I donwnload some files for processing every day that have unwanted characters in them. In VB6 I use the InputB to read in the text and the StrConv. vLinesFromFile =...
16
by: lovecreatesbeauty | last post by:
/* When should we worry about the unwanted chars in input stream? Can we predicate this kind of behavior and prevent it before debugging and testing? What's the guideline for dealing with it? ...
2
by: watusiboy | last post by:
<TEXTAREA NAME="comments" ROWS="10" COLS="50"> <?php echo $comments; ?> </TEXTAREA> this is a very simple question. the textarea above automatically adds three tab spaces at the beginning. as...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.