Solved

Help spotting the error: CS1026 ) expected

Posted on 2004-03-30
5
3,585 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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