Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7839569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:28:29+00:00 2026-06-02T15:28:29+00:00

I have defined my OpenWin() function to handle opening the new window and pass

  • 0

I have defined my OpenWin() function to handle opening the new window and pass params to it but when I compile it it says it is not defined.

>     <script type="text/javascript">
>         function OpenWin()
>             {
>                 var
> 
>                     Parms = document.getElementById('PassParmString').value;
> 
> 
>                 window.open("ViewerPane.aspx?prm=" + Parms,"_blank","left=20,top=20,width=1000,height=1140,toolbar=0,resizable=1")
>             }
>     </script>

And further down is the button script …

>             <asp:Button ID="btnAuthenticate" OnClick="OpenWin()" runat="server" Height="44px" Style="z-index: 108;
>                 left: 716px; position: absolute; top: 243px" Text="Authenticate" Width="97px" />

Message:…

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: BC30456: ‘OpenWin’ is not a member of
‘ASP.default_aspx’.

Source Error:

Line 38:
top: 243px” Text=”UserName :”> Line 40:
Line 42:

Source File: C:\projects\Centauri_0.01\ASPXRPT\Default.aspx Line:
40

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:28:30+00:00Added an answer on June 2, 2026 at 3:28 pm

    OnClick refers to server side events.
    Change it to OnClientClick for javascript functions.

    For more information, you should read http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.onclientclick.aspx

    EDIT : As far as opening of the window is concerned try changing _blank with '' like :

    window.open("ViewerPane.aspx?prm=" + Parms,"","left=20,top=20,width=1000,height=1140,toolbar=0,resizable=1")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined this Entity class, but it does not seem to save the
I have defined a php function: function my_function($text = '', $relative = false, $icon
I have defined a new dialog and its controls in an already existing resource
I have defined a boolean Jess function that accepts a lambda, as follows: (deffunction
I have defined new member in my class protected COMObject.Call call_ = null; This
I have defined a schema.ini file for a CSV file, but I have multiple
I have defined a function called login that should return a token. The token
I have defined a BitmapButtonField in Blackberry. But the default grey color background does
I have defined one Thickness resource in Window's resources collection which is set to
I have defined different states in my lexer, which change not depending on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.