Click here to Skip to main content
15,905,566 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have label within the update panel.
In that label, I have a pie chart, which do not have a hover effect.
Response.Write(mychartdata.getImageMap("imgMap3")); does the hovering effect, but it stops dropdown onselected event.
C#
lblReferedByBelow.Text = "<img border='0' usemap='#imgMap3' src='pieChartServer.aspx?Legends=(" + strHeading + ")&Vals=(" + strValues +
                    ")&Expload=(" + strExpload +
                   ")&fontface=" + "verdana" +
                   "&fontsize=" + "8" +
                   "&LS=" + "10" +
                    "&RS=" + "10" +
                    "&TS=" + "10" +
                    "&BS=" + "10" +
                    "&pieRatio=" + "70" +
                   "&bar3dratio=" + "8" +
                   "&EoffSet=" + "35" +
                    "&imgFormat=" + 0 +
                    "&pieDia=" + 200 + "'>";
Response.Write(mychartdata.getImageMap("imgMap3"));
Posted
v3
Comments
Sumit_Kumar_Sinha 6-Nov-12 0:36am    
explain the problem properly.......
satpal 2 6-Nov-12 1:09am    
I have label within the update panel,in that label i putted a pie chart
that not have a hover effect.Response.Write(mychartdata.getImageMap("imgMap3")); do this work for making hover. but it stop drop down onselected event

lblReferedByBelow.Text = "<img border='0' usemap='#imgMap3' src='pieChartServer.aspx?Legends=(" + strHeading + ")&Vals=(" + strValues +
")&Expload=(" + strExpload +
")&fontface=" + "verdana" +
"&fontsize=" + "8" +
"&LS=" + "10" +
"&RS=" + "10" +
"&TS=" + "10" +
"&BS=" + "10" +
"&pieRatio=" + "70" +
"&bar3dratio=" + "8" +
"&EoffSet=" + "35" +
"&imgFormat=" + 0 +
"&pieDia=" + 200 + "'>";
Response.Write(mychartdata.getImageMap("imgMap3"));
manognya kota 6-Nov-12 0:39am    
What are you trying to acheive and what is not working?
satpal 2 6-Nov-12 1:10am    
I have label within the update panel,in that label i putted a pie chart
that not have a hover effect.Response.Write(mychartdata.getImageMap("imgMap3")); do this work for making hover. but it stop drop down onselected event

lblReferedByBelow.Text = "<img border='0' usemap='#imgMap3' src='pieChartServer.aspx?Legends=(" + strHeading + ")&Vals=(" + strValues +
")&Expload=(" + strExpload +
")&fontface=" + "verdana" +
"&fontsize=" + "8" +
"&LS=" + "10" +
"&RS=" + "10" +
"&TS=" + "10" +
"&BS=" + "10" +
"&pieRatio=" + "70" +
"&bar3dratio=" + "8" +
"&EoffSet=" + "35" +
"&imgFormat=" + 0 +
"&pieDia=" + 200 + "'>";
Response.Write(mychartdata.getImageMap("imgMap3"));
manognya kota 6-Nov-12 2:00am    
Did you give autopostback=true for dropdown?

1 solution

Response.Write never works properly when UpdatePanels are used.

To resolve this, move the result you wish to achieve from the Response.Write into its own control on the page, and place it inside an update panel.

Then in code behind, instead of Response.Write, perform the steps you need to get the data, then call UpdatePanel.Update(). Ensure the new update panel attribute "UpdateMode" is "Conditional".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900