Solved

Help spotting the error: CS1026 ) expected

Posted on 2004-03-30
5
3,578 Views
Last Modified: 2007-12-19
Here's the error page:
************************************************
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1026: ) expected

Source Error:

 

Line 14:                   <DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 800px; POSITION: absolute; TOP: 0px; HEIGHT: 600px"
Line 15:                         ms_positioning="GridLayout"><uc1:generalnotes id="Comments1" runat="server"></uc1:generalnotes>
Line 16:                         <asp:Button id="btnOk" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 576px" runat="server" Text="OK" onclick="javascript:txtHidden.value = window.opener.openwindow4();"></asp:Button>
Line 17:                         <asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 32px; POSITION: absolute; TOP: 576px" runat="server"></asp:TextBox></DIV>
Line 18:                   <INPUT id="txtHidden" style="Z-INDEX: 102; LEFT: 832px; WIDTH: 80px; POSITION: absolute; TOP: 72px; HEIGHT: 22px"
 

Source File: D:\Prj\CorpTool\V5\Comments.aspx    Line: 16
************************************************

Thanks,
weguardyou

0
Comment
Question by:weguardyou
5 Comments
 
LVL 1

Accepted Solution

by:
tifosiv122 earned 500 total points
ID: 10715301
It's an error on line 16. Pull out the onclick="javascript:txtHidden.value = window.opener.openwindow4();" and see if it works, if it does, something is wrong with that line.

Erik
0
 
LVL 14

Expert Comment

by:ptakja
ID: 10715913
On line 16, try putting the window.opener.openwindow4(); in single quotes as shown below:

onclick="javascript:txtHidden.value = 'window.opener.openwindow4();'"
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 10716751
Should that be just 'window.opener.openwindow'?

Bob
0
 
LVL 28

Expert Comment

by:mmarinov
ID: 10721613
the problem is with the "javascript:" in the begining of the client script.
actually if you remove it i think (i'm not sure because i can not test it right now) it will crash again :(
i suggest you to try this
remove onclick="javascript:txtHidden.value = window.opener.openwindow4();" from your aspx page

in your codebehind write this
btnOK.Attributes.Add("onclick", "txtHidden.value = window.opener.openwindow4()" )


HTH
B..M
0
 
LVL 1

Author Comment

by:weguardyou
ID: 10723644
It turns out the first poster was right, it did have to do with line 16. I found out that my openwindow4() had the issue and it had nothing to do with the specific code, the syntax was correct.

Thanks,
weguardyou
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now