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

  • Home
  • SEARCH
  • 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 6811947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:23:25+00:00 2026-05-26T20:23:25+00:00

i am using MS asp.net 3.5 chart control (Pyramid) and on the click of

  • 0

i am using MS asp.net 3.5 chart control (Pyramid) and on the click of the series/datapoint i need to open a URL in a new window, something like javascript window.open.

Now i have tried a hell lot but that doesn’t work. I am not able to give javascript to the datapoint.

Secondly i got to know that MapAreaAttributes could be given to Series as mentioned below if a new window needs to be open

series.MapAreaAttributes= "target='_blank'";

But even this doesn’t works????

Guide me! Thanks

  • 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-05-26T20:23:26+00:00Added an answer on May 26, 2026 at 8:23 pm

    I had your same problem just now.

    Here is the solutions and it works:

    Notice in your code that you’re using the single quotation (‘). It seems that this is not allowed by the chart control or something. Let me give you an example that might help you understand:

    Let’s assume you have a JavaScript function that opens a window showing some data when the user clicks on a column (point) in your data (series). You can do it like this:

    Chart1.Series["MySeries"].Points[0].Url = "javascript:void(0)"; //this is just to tell the browser not follow a URL, since you will control this with your javascript
    
    Chart1.Series["MySeries"].Points[0].MapAreaAttributes = "onclick=\"OpenWindow();\""; //this is to set the onclick attribute to fire your javascript function when the user clicks your column.
    

    In the above example in the second line of code, notice that I have used double quotation instead of single ones. If you wrote it like this :

    "onclick=\'OpenWindow();\'"; 
    

    it will never work! You have to use double quotations…

    Also, since I am a C# developer, you have to use the \” code to write double quotations otherwise, you will get compiler error.

    I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an asp.net chart control to display a pie chart, image below. http://i39.tinypic.com/ndtzx1.png
I am trying to generate a chart using the MS Chart Control in ASP.NET
I've got a basic ASP.NET Charting control set to a pie chart, using the
I'm using the asp.net Chart control to present a stacked bars chart. I can
I was perusing the asp.net chart control's sample website, and came across something in
I'm creating a website with ASP.NET and i'm using the stock Chart control to
Is there any example for a Real Time Chart using the DexExpress in ASP.Net?
Using asp.net 3.5 Gridview control, visual studio 2008. I have played with all the
Using ASP.NET MVC + jQuery : I need to use some values owned by
Using ASP.Net, I have a server control for which i would like to add

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.