472,981 Members | 1,241 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,981 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 1457
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.