.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 16th, 2012, 03:51 PM
tacticalts tacticalts is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Posts: 10 tacticalts User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 21 sec
Reputation Power: 0
Question InnerHTML issue

I've got a div tag in my .aspx file and I'm trying to populate it from within my .aspx.cs file when a button is pressed.

Here is my .aspx code
Code:
 <tr>                     <td colspan="7"></td>                 </tr>                 <tr>                     <td colspan="7" align="center">                         <div  id="VisifireChart0" runat="server"></div>                     </td>                 </tr>


Here is my .aspx.cs code
Code:
var innerHTML = "<script type='text/javascript'> " +
                                 "// Create Visifire object" +
                                 "var vChart = new Visifire('Visifire/SL.Visifire.Charts.xap', 'MyChart', 500, 300);" +
                                 "// Set Chart XAML by passing query string to Data.aspx page" +
                                 chartXaml +
                                 "// Render Chart" +
                                 "vChart.render('VisifireChart0');" +
                              "</script>";
VisifireChart0.InnerHTML = innerHTML;


but the error I get is
C:\inetpub\wwwroot\TacticalTrading\graphSetupVisi.aspx.cs(2166,24): error CS1061: 'System.Web.UI.HtmlControls.HtmlGenericControl' does not contain a definition for 'InnerHTML' and no extension method 'InnerHTML' accepting a first argument of type 'System.Web.UI.HtmlControls.HtmlGenericControl' could be found (are you missing a using directive or an assembly reference?)

Can someone tell me what I'm doing wrong.

Thanks
Bob

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > InnerHTML issue

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap