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

CS1026 error

jib
I am trying to set up a OnLoad javascript for a Textbox using the following
script:

<asp:TextBox id="Tbx_AssignedTo" runat="server" Width="184px"
OnLoad="javascript:doTypeSelect(document.activeEle ment.id)">
</asp:TextBox>

However, this gives me a "CS1026: ) expected" error. I haven't got the
foggiest as to what this means. Can anyone shed some light on this?

Thanks!

Jib
Nov 18 '05 #1
1 3202
Remember that you have a different syntax for a web control element than you
do for an HTML element. In order to render the HTML "onload='...'" you need
to use Tbx_AssignedTo.Attributes.Add("onload", "..."). The TextBox is an
object that is processed on the server. OnLoad is a method of that object
which invokes some action on the server, and isn't just rendered to the
client as you type it. Your ASPX code is declaratively writing code that the
server generates and compiles - it's a lot more than authoring a DHTML page.
If you don't need the features of a textbox, you can also use <input
type="text" runat="server" ... /> and spare the more verbose syntax needed
to render client side behavior.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"jib" <ji***@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
I am trying to set up a OnLoad javascript for a Textbox using the following
script:

<asp:TextBox id="Tbx_AssignedTo" runat="server" Width="184px"
OnLoad="javascript:doTypeSelect(document.activeEle ment.id)">
</asp:TextBox>

However, this gives me a "CS1026: ) expected" error. I haven't got the
foggiest as to what this means. Can anyone shed some light on this?

Thanks!

Jib

Nov 18 '05 #2

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

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
1
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
0
by: Rey | last post by:
Howdy all. Using VS.Net 2003 on an XP Pro SP2 box, I'm geting an err: CS1026: ) expected Project is just a simple report w/data from an access mdb to see how it works on a web form using C#....
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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.