Solved

Help spotting the error: CS1026 ) expected

Posted on 2004-03-30
5
3,584 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

736 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