WebMatrix :: How To Display Several Charts In One Page
Feb 10, 2011
I am curious how to display many charts in one aspx file or cshtml or html file. like I use one aspx file to make one chart. and then i have lots of such aspx files which give me many charts. how can I combine them in one page?
View 4 Replies
Similar Messages:
Feb 10, 2011
SqlConnection myConnection = new SqlConnection("user id=wanjames; password=2011Janu; Trusted_Connection=yes; Data Source=WMBCEXEQTW703Z7\SQLEXPRESS; Database=PreTradeAnalysis");
View 1 Replies
Mar 22, 2010
I have to display text values dynamically on Y-axis of a bar graph in Dunda charts.
Like Region 1, Region2 .....................
how can I do that?
View 3 Replies
Mar 8, 2011
I need to send a request-I did it and got a reply
[Code]....
[Code]....
View 8 Replies
Feb 7, 2011
I'm using the Microsoft Chart control to put a couple of charts on a web page. If you render 2 charts, the resulting HTML is something like this (the table is mine, the img and map are from the MS Chart):
<table id="chart">
<tr>
<td id="rolling">
<img src="/ChartImg.axd?i=chart_45ec7063132a47d9bf08ce377f4d6030_0.png&g=d82064ecb0cf459dbda23039ae0c3f70" alt="" usemap="#ImageMap" style="height:200px;width:250px;border-width:0px;" />
<map name="ImageMap" id="ImageMap">
<area shape="rect" coords="190,112,242,132" title="$321.01" alt="" />
<area shape="rect" coords="59,69,111,132" title="$1,017.92" alt="" />
<area shape="rect" coords="138,104,190,132" title="$449.04" alt="" />
<area shape="rect" coords="7,25,59,132" title="$1,714.59" alt="" />
</map>
</td>
<td id="highrisk">
<img src="/ChartImg.axd?i=chart_45ec7063132a47d9bf08ce377f4d6030_1.png&g=6f876c9016cd4b72b5ba60609b9d05ec" alt="" usemap="#ImageMap" style="height:200px;width:250px;border-width:0px;" />
<map name="ImageMap" id="ImageMap">
<area shape="rect" coords="190,128,242,132" title="41" alt="" />
<area shape="rect" coords="59,131,111,132" title="6" alt="" />
<area shape="rect" coords="138,25,190,132" title="922" alt="" />
<area shape="rect" coords="7,121,59,132" title="100" alt="" />
</map>
</td>
</tr>
</table>
Note that both charts use the same name for the image map for each chart - "ImageMap" - and it uses the coords from the first chart on the subsequent charts, even though it puts different titles on each element.
Am I doing something wrong in trying to render 2 charts on 1 page? Is there a workaround for this?
View 1 Replies
Mar 28, 2011
I have a view ..
[code]....
in "GetChartData" method which is in controller.. I set data in sessions.. for example..
[code].....
then when I load page.. I get all the same chart for each row. i think may be the last chart is overlapping all the previous charts.
View 1 Replies
Dec 1, 2010
I have 20 Charts in 20 Crystal Reports and I want to show them all in a web page in ASP.net 2.0. If I take a crystal report viewer ,it shows only 1 chart in that viewer. I want to show them all .Is it possible.
View 1 Replies
May 7, 2015
This is my aspx code :
<center>
<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</cc1:ToolkitScriptManager>
<cc1:LineChart ID="LineChart1" runat="server" ChartHeight="300" ChartWidth="450"
ChartType="Basic" ChartTitleColor="#0E426C" Visible="false" CategoryAxisLineColor="#D08AD9"
[code]...
but when I added the bar graph, the first chart appears but does not show the lines and the second graph is not displayed at all ... Is it possible to put 2 chart like that ?
View 1 Replies
Mar 4, 2011
I can not get the _PageStart.cshtml to work for my layout senario. I would prefer to use _PageStart to define a layout for all files in each folder. Each folder represents a different app feature that will contain different layouts.
Until I find a work about I had to copy and past the Layout ="~/folder/_PageStart.cshtml into each page of the folder to get the different layouts to work.
_PageStart isn't being recognized at all as the folders page start. Is there a web config setting missing? The docs aren't fully extensive yet for all Razor related info and I couldn't find anyone discussing this problem via search results.
In order to keep close to code once and separation I need to use the _PageStart.cshtml method rather than code a line in each page in the folder.
On win7 using both webmatrix and vs2010 web engines. Neither recognizes _PageStart.cshtml but hard coding into each file works.
View 4 Replies
Nov 9, 2010
I've found a Webmatrix help article that says MS Webmatrix "publishes the (SQL Server or MySQL) database by creating scripts that run in a database that has been created for you by your hosting provider." That is wonderful, except I can't get it to work when I'm trying to publish a MySQL database (backing wordpress) through FTP (my hosting provider does not support 'web deploy'). Again, no problem, since it is already documented that " FTP protocols cannot be used to publish MySQL database. " But this does not excuse Webmatrix from generating MySQL database install scripts for me. During the publishing step, no database install script is generated - at least that I can tell - and there is no manual option to create a database export / backup / install script.
In short, as Webmatrix goes, I'm dead in the water trying to get my database uploaded to my hosting provider. Does anyone know the trick to force Webmatrix to create the MySQL database install scripts on my local box? Once created, I can take-over the upload and install process.
View 1 Replies
Jan 19, 2011
I'm wondering if it is possible to include Microsoft.Data.Entity.CTP.dll reference to WebMatrix site and if the Compact edition of the database would support it? I'd kinda love use something like
code-first development in my WebMatrix project. I think is even easier than writing SQL-s into the code...
View 1 Replies
Oct 25, 2010
I started the Bakery site demo...everything runs fine on my local machine.When I publish the site to production server in w2k8r2+iis7.5 and with .net 4.0 (integrate) pool, my bakery apps not able to connect to the .sdf file.
Error I got is :
Connection string "bakery" was not found. Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Connection string "bakery" was not found.
Source Error:
Line 2: Layout = "_SiteLayout.cshtml";
Line 3:
Line 4: FacebookSocialPlugins.Initialize("[xxx]", "[xxx]","bakery");
Line 5:
Line 6: }
Stack Trace:
[InvalidOperationException: Connection string "bakery" was not found.]
WebMatrix.Data.Database.OpenNamedConnection(String name, IConfigurationManager configurationManager) +132
WebMatrix.Data.Database.Open(String name) +42
System.Web.WebPages.DatabaseConnectionInfo.Connect() +43
System.Web.WebPages.SimpleMembershipProvider.CreateTablesIfNeeded() +42
System.Web.WebPages.WebSecurity.InitializeMembershipProvider(SimpleMembershipProvider sMembership, DatabaseConnectionInfo connect, String userTableName, String userIdColumn, String userNameColumn, Boolean createTables) +70
System.Web.WebPages.WebSecurity.InitializeProviders(DatabaseConnectionInfo connect, String userTableName, String userIdColumn, String userNameColumn, Boolean autoCreateTables) +51
System.Web.WebPages.WebSecurity.InitializeDatabaseConnection(String connectionStringName, String userTableName, String userIdColumn, String userNameColumn, Boolean autoCreateTables) +52
FacebookSocialPlugins.InitializeMembershipProviderIfNeeded() +54
FacebookSocialPlugins.Initialize(String appId, String appSecret, String membershipDbName) +171
ASP._PageStart_cshtml.Execute() in d:xxxakery\_PageStart.cshtml:4
System.Web.WebPages.StartPage.ExecutePageHierarchy() +15
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +33
System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContext context) +207
View 2 Replies
Nov 22, 2010
I know we can use the HTML helpers, but how about the strongly typed one's?
Html.LabelFor()
View 1 Replies
Jan 11, 2011
I struggle with publishing 2 databases from WebMatrix using WebDeploy. On Publish settings screen I specify 2 different connection strings, but on Publish Compatibility screen Database names in both destination connection strings are equal. When I return to settings screen, original value is replaced there as well.
How destination server connection strings are evaluated? Here are connection strings from the root web.config file, which are set by hidden parameters in my parameters.xml:
<connectionStrings>
<add connectionString="Server=(local);Database=xxx;Uid=xxx;Pwd=xxx" name="xxx" providerName="System.Data.SqlClient" />
<add connectionString="Server=(local);Database=xxx2;Uid=xxx;Pwd=xxx" name="xxx" providerName="System.Data.SqlClient" />
</connectionStrings>
View 1 Replies
Jan 26, 2011
If I create two websites using the starter site template logging into one shows me logged into the other.
Here are the steps:
Create starter website called website1 Create starter website called website2 Run both websites in the same browser, firefox Register an account in website1 Log out of website1 Log back into website1 Refresh website2 and it shows my login name from website1 Has anyone else encountered this?
View 1 Replies
Feb 4, 2011
I downloaded WebMatrix thinking I could create a local Intranet page and simply host it from my server. Can I do this with WebMatrix? If so how?
View 1 Replies
Aug 17, 2010
I'm often experiencing that keyboard shortcuts stops working in WebMatrix. This is very annoying as CTRL-S, CTRL-C, CTRL-V, etc. stops working, all of which are heavily used when programming. It's obviously hard to explain how to reproduce this, but I waswondering if someone knows a quick-fix?
View 12 Replies
Feb 15, 2011
There I was, happily coding webpages, when suddenly it wouldn't run them anymore. Now when I click run I get an error message that looks like this: Server Error in '/' Application.This type of page is not served. Description:The type of page you have requested is not served because it has been explicitly forbidden. The extension '.cshtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.
Requested URL: /quiz/intro.cshtml
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
View 3 Replies
Feb 10, 2011
My hosting company states they support .net and razor. However after uploading my website made with webmatrix and razor *.cshtml pages. When i visit my website all i get is 404.17 error messages. As an testcase i decided to add an standard .aspx page. Visiting that page gives the same 404.17 error message :-(
.
According to my webhoster my web.config is wrong. However that one is generated by webmatrix. Besides my *.cshtml *.aspx a lot of files and directories are added to the bin folder. What can i check and what should my hosting provider check. When using the check compatibility the asp.net version is shown as unknown? My hosting provider claims my site is running asp.net 4.0 in integrated mode and that should be enough.
View 5 Replies
Jul 11, 2010
It's unfortunate that Microsoft WebMatrix (beta) doesn't recognize that files has been modified. I suggest you implement a feature similar to Visual Studio, allowing the user to decide what to do if the file has been modified outside WebMatrix. Especially when you have a button to launch the project in Visual Studio, it should have better support for "dual-development", cause at it is now, code can be overwritten by mistake easily.
View 3 Replies
Nov 13, 2010
I got the first beta of WebMatrix, downloaded Drupal, and got a site more or less going. I then tried to move it to two different hosts - first the IIS server running on my own domain controller, then to my hosting service. I dumped the DB with mysqldump, and imported it to the databases running on each server. Then I ftp'd the code and configuration files to both servers, and made appropriate configuration changes (primarily the mysql connect string).On both servers I have the same problem: The site comes up in its home page and looks great, but as soon as I log in as the site admin, I get a 404 (not found) error. Since it looks like virtually everything in Drupal is driven from the database, I really haven't the faintest idea where to start debugging this.
View 3 Replies
Aug 10, 2010
That subject may not do this questions justice.
I am trying to limit what I write on all my .cshtml pages. For example, on everypage I am @using myDLL and "connecting" to sql server.
I write that out like
@using System.myDLL;
@{
myDLL dll = new myDLL();
dll.ConnectionString = "blablabla";
}
How can I remove the need to do that to every single page? I think I can create a web.config and do some funky stuff... can someone show examples?
View 13 Replies
Dec 23, 2010
I am having all sorts of trouble with webmatrix hanging on me and was wondering if someone could test the following to see if it is isolated to me?
If I create a new empty site and add a single php page to it and then try to type the following line webmatrix will hand as soon as I get to the ? after src="
[Code]....
View 4 Replies
Feb 3, 2011
right now I playing around with WebMatrix and I followed the tutorial from http://www.asp.net/WebMatrix. Chapter 6 (displaying data in a grid) described how to use a WebGrid helper very clear, but the data in the example is always retrieved from an SQL DB.I want to use the same XML file from chapter 7 (Displaying data in a chart).Using the code:
...
var DataSet = new DataSet();
dataSet.ReadXmlSchema(Server.MapPath("/App_Data/QCFiler.xsd"));
[code]...
View 3 Replies
Aug 6, 2010
I'm trying to submit form data with jQuery. I'm using ASP.NET WebMatrix. In a .cshtml file I have
@{
// other code
if(IsPost)[code]....
How can I pass values from form to Request.Form object? And how can I than response with json back to html?
View 3 Replies