473,395 Members | 1,987 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.

ASP.NET 2 Beta 2 JavaScript bad rendering

Hi. I was handling key events nicely using some Javascript on my apps using
something like this:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which && event.which
== 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;");

that code rendered javascript to the client OK. Now that I upgraded to
ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients are
getting this instead:

if((event.which && event.which == 13)||(event.keyCode &&
event.keyCode == 13)){document.Form1.cmdLogin.click();return false;}else
return true;

Please HELP!!

Thanks,

Alejandro Penate-Diaz.
Nov 19 '05 #1
6 1472
Can you show how you render the script to the client? IOW, do you use Page.ClientScriptRegisterClientScriptBlock
or something else?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi. I was handling key events nicely using some Javascript on my apps
using something like this:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&
event.which == 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return
true;");

that code rendered javascript to the client OK. Now that I upgraded to
ASP.NET 2 Beta 2 it is rendering && instead of &&, so clients
are getting this instead:

if((event.which && event.which == 13)||(event.keyCode
&& event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;

Please HELP!!

Thanks,

Alejandro Penate-Diaz.


Nov 19 '05 #2
using something like this in my Page_Load method.:

this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&event.which
== 13)||(event.keyCode && event.keyCode
==13)){document.Form1.cmdLogin.click();return false;}else return true;");


"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:79**********************@msnews.microsoft.com ...
Can you show how you render the script to the client? IOW, do you use
Page.ClientScriptRegisterClientScriptBlock or something else?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi. I was handling key events nicely using some Javascript on my apps
using something like this:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&
event.which == 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return
true;");

that code rendered javascript to the client OK. Now that I upgraded to
ASP.NET 2 Beta 2 it is rendering &amp;&amp; instead of &&, so clients
are getting this instead:

if((event.which &amp;&amp; event.which == 13)||(event.keyCode
&amp;&amp; event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;

Please HELP!!

Thanks,

Alejandro Penate-Diaz.


Nov 19 '05 #3
do you think this would work?
<system.web>
<!-- other elements here -->
<XHTML11Conformance
enableObsoleteRendering="true" />
</system.web>


"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:79**********************@msnews.microsoft.com ...
Can you show how you render the script to the client? IOW, do you use
Page.ClientScriptRegisterClientScriptBlock or something else?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi. I was handling key events nicely using some Javascript on my apps
using something like this:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&
event.which == 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return
true;");

that code rendered javascript to the client OK. Now that I upgraded to
ASP.NET 2 Beta 2 it is rendering &amp;&amp; instead of &&, so clients
are getting this instead:

if((event.which &amp;&amp; event.which == 13)||(event.keyCode
&amp;&amp; event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;

Please HELP!!

Thanks,

Alejandro Penate-Diaz.


Nov 19 '05 #4
that didnt work, when I build the app I get an error like:
Error 1 Unrecognized configuration section XHTML11Conformance.
c:\inetpub\wwwroot\qman\Web.config 9


"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:79**********************@msnews.microsoft.com ...
Can you show how you render the script to the client? IOW, do you use
Page.ClientScriptRegisterClientScriptBlock or something else?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi. I was handling key events nicely using some Javascript on my apps
using something like this:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&
event.which == 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return
true;");

that code rendered javascript to the client OK. Now that I upgraded to
ASP.NET 2 Beta 2 it is rendering &amp;&amp; instead of &&, so clients
are getting this instead:

if((event.which &amp;&amp; event.which == 13)||(event.keyCode
&amp;&amp; event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;

Please HELP!!

Thanks,

Alejandro Penate-Diaz.


Nov 19 '05 #5
Well, I see the &amp; that it's rendering, but the code executes properly.
Does your javascript work?

-Brock
DevelopMentor
http://staff.develop.com/ballen
using something like this in my Page_Load method.:

this.txtUserName.Attributes.Add("onkeydown","if((e vent.which
&&event.which == 13)||(event.keyCode && event.keyCode
==13)){document.Form1.cmdLogin.click();return false;}else return
true;");

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:79**********************@msnews.microsoft.com ...
Can you show how you render the script to the client? IOW, do you use
Page.ClientScriptRegisterClientScriptBlock or something else?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi. I was handling key events nicely using some Javascript on my
apps using something like this:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&
event.which == 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return
true;");

that code rendered javascript to the client OK. Now that I upgraded
to ASP.NET 2 Beta 2 it is rendering &amp;&amp; instead of &&, so
clients are getting this instead:

if((event.which &amp;&amp; event.which == 13)||(event.keyCode
&amp;&amp; event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;

Please HELP!!

Thanks,

Alejandro Penate-Diaz.


Nov 19 '05 #6
It doesn't work
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:81**********************@msnews.microsoft.com ...
Well, I see the &amp; that it's rendering, but the code executes properly.
Does your javascript work?

-Brock
DevelopMentor
http://staff.develop.com/ballen
using something like this in my Page_Load method.:

this.txtUserName.Attributes.Add("onkeydown","if((e vent.which
&&event.which == 13)||(event.keyCode && event.keyCode
==13)){document.Form1.cmdLogin.click();return false;}else return
true;");

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:79**********************@msnews.microsoft.com ...
Can you show how you render the script to the client? IOW, do you use
Page.ClientScriptRegisterClientScriptBlock or something else?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi. I was handling key events nicely using some Javascript on my
apps using something like this:
this.txtUserName.Attributes.Add("onkeydown","if((e vent.which &&
event.which == 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return
true;");

that code rendered javascript to the client OK. Now that I upgraded
to ASP.NET 2 Beta 2 it is rendering &amp;&amp; instead of &&, so
clients are getting this instead:

if((event.which &amp;&amp; event.which == 13)||(event.keyCode
&amp;&amp; event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;

Please HELP!!

Thanks,

Alejandro Penate-Diaz.


Nov 19 '05 #7

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

Similar topics

4
by: somebody | last post by:
Hello all, I created a function which gets the position of the mouse. This works fine untill I insert a doctype declaration in the file. The properties 'scrollLeft' and 'scrollTop' in IE will...
15
by: binnyva | last post by:
Hello Everyone, I have just compleated a JavaScript tutorial and publishing the draft(or the beta version, as I like to call it) for review. This is not open to public yet. The Tutorial is...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
12
by: Jeff S | last post by:
In a VB.NET code behind module, I build a string for a link that points to a JavaScript function. The two lines of code below show what is relevant. PopupLink = "javascript:PopUpWindow(" &...
8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
3
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review...
8
by: Peter Michaux | last post by:
Hi, I'm sure many here have already noticed this but it seems that the development of the browser world is paralleling the development of the computer world. However, the browser world is about...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
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: 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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.