[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Help spotting the error: CS1026 ) expected

Posted on 2004-03-30
5
Medium Priority
?
3,595 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 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

834 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