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. 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.
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 && 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.
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 && 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.
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 && 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.
Well, I see the & 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 && 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.
It doesn't work
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:81**********************@msnews.microsoft.com ... Well, I see the & 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 && 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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(" &...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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: 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,...
| |