Put Flex Charts In Application?
Jan 29, 2010Is it possible to put flex charts in a asp.net application?
Any other easy to use chart controls, but fancy looking ?
Is it possible to put flex charts in a asp.net application?
Any other easy to use chart controls, but fancy looking ?
How can write php script in flex application ? . at the same time this script can be asp.net,javascript ...
View 2 RepliesI am working on a project that is primarily ASP.NET based. The main project is meant to be deployed to multiple locations for different clients, so one client might be located at website.com/client1 and another at website.com/client2. Within the application, we regularly use the application root operator ~ to get the path to a resource.We also have a bunch of Flex applications that get deployed in there, and many rely on web services within the ASP.NET application. What I'm after is a way to reference the services relative to the application root. Here's an example of the location of some files for two client deployments:
Client A
website.com/clientA/swf/FlexApplication.swf
website.com/clientA/services/webService.asmx
Client B
website.com/clientB/swf/FlexApplication.swf
website.com/clientB/services/webService.asmx
FlexApplication and webService are both exactly the same, so what I want to do is something like this in the Flex code:
var myService:CustomService = new CustomService(~/services/webService.asmx);
myService.callMethod("Test");
I would like to avoid using relative paths for the usual reasons. Is there a good way to do this or a good way to pass the root url to the flex application from ASP.NET?
I have an asp.net page where I get the user_id from who's logged in. Now I need to pass this user_id to a flex application that runs in an asp.net page as a .swf. How can I get this user_id in a variable in my flex application. Or what is the best way to get the user_id into flex.
View 2 RepliesI have Flex application requiring to filter users depending on there database groups. Depending on which group they are, the're is a config.xml file that is use to populate the swf.
Here is how I figure how to do this :
1. The client comes to a .aspx page with a form requiring a username and a password.
2. On the server side I confirm the user credential
3. Once the username/password is valid I redirect to the mxml file with the config.xml file in the html headers (post).
My problem comes when I need to get the post data from the http request. Let's say I have this code :
<mx:Application initialize="init()">
<mx:Script>
<![CDATA[
[code]...
How do I get the post data on the init() function.
I wanted to build visually stunning graphs and charts ( with some animation, drill-down and interactivity in it) in an existing asp.net application.
The application is build using vs 2008.
Which version of Silverlight will be best suited for this (v3 or v4) ?
What is the best option to create Charts and Graphs and embed it within the existing asp.net application ?
I need to create a website that analyze a SQL database with Chart; I have some application that modify the database, and i want to show the changes in another application using a Chart.
View 2 RepliesWe re developing an ASP MVC application witch the View (aspx) has a Flex embed. This aspx/flex view is composed by a flex application and several modules.So, when we call the application url (http://localhost:9090/MyProject/Flex/Index),the server invoke the method the will return the ActionResult that represents this action, in this case the ~/Views/Flex/Index.aspx (with the Flex app). However when the ModuleLoader,in the Flex application, try to load a module an error occurs. The problem is that the Flex application canīt directly access the modules folder (~/Views/Flex/modules/module.swf)Are there any way to get the module through an ASP MVC action? Or the best approach is to allow the access to this folder through web.config?
View 1 RepliesI've started with Flex recently, I've noticed that some plugin for Visual Studio exist, instead of buying a licence for another program (Flex Builder). I was wondering how I could manage to remotely connect to my database with a Flash/Flex application with the help of C#/Asp.Net. If I've correctly understood what I've read in the last few days, there is basically no way to 'query' to a database with Flex 3. So I suppose there is another way by using a webservice in C# on the database server that would respond to the Http query from Flex. Am I right or totally of the track?
View 3 RepliesI would like to know how to upload a file from ActionScript 3 (From a FLEX Application) to a Dot Net Back End, maybe to an ASHX file, an ASPX file or similar and using C# as core backend language.
View 1 RepliesI created an application as part of an ASP.NET site. I would like to receive error notifications in my inbox whenever something goes wrong with that flash application.
As I do not have control over our mail server (which has a different domain name), I cannot establish a cross domain policy allowing me to send error emails to my inbox.
Instead, thought I'd send a request to an ASP.NET handler that sends an email on behalf of the flash app.
Now the problem: the error report should include a screenshot of the flash application at the time the error occurred. The FileReference class however only allows file uploads with user interaction (browse dialog) and cannot be used programmatically to send the screenshot to my ASP.NET handler. The plain old POST back only allows files up to ~200K.
Am I missing something or is there no alternative to :
using POST w/ a compressed or resized screenshot or forcing the user to first save a screenshot and then select it for upload?
I'm working on a batch process script that's executed from Flex. The batch script is in a .aspx Page and returns partial results through the following class:
public class ResponseLogger
{
private HttpResponse _response;
public ResponseLogger(HttpResponse response)
{
this._response = response;
}
public void Start()
[Code]....
I would like to have a FLEX SWF Menu in .NET that is animated, and use button clicks to update an iFrame in an .NET 2.0 Ajax enabled application without a page update or refresh. If I use URLVaribles in Flex, The only way I've gotten to them to ASP.NET is via URL Page Navigation which always refreshes the screen. There is a LOADVARS function but I have not gotten it to work. Is there any suggestion on how one would do this??
Do I need to look into using JSON for Flex??? Or WebOrb???
This works fine... but with a page refresh (which is not cool)...
navigateToURL( new URLRequest( "http://localhost:50294/WEBAPP/Default.aspx?P=2&H=500" ), "_self" );
This does NOT work fine... (in fact it just loads the whole page .NET page in FLEX, not what I am looking for)
var variables:URLVariables = new URLVariables();
variables.P="1";
variables.H="400";
var request:URLRequest = new URLRequest();
request.url = "http://localhost:50294/Timber2/Default.aspx?";
request.method = URLRequestMethod.POST;
request.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, uploadComplete);
try
{
loader.load(request);
}
catch (error:Error)
{
trace("Unable to load URL");
}
I really enjoy the flex states framework. You define a few states for your control, and then can set child controls to only appear in certain states. Check out this code:
<s:states>
<s:State name="signin"/>
<s:State name="register"/>
[code]...
I have a website that's developed in ASP.NET and uses the AJAX Toolkit (asp:ToolkitScriptManager) for a couple of extenders. The AJAX effects (e.g. ) work perfectly across IE 7, IE8, FF3.5, Safari, and Chrome. However, I embedded my site in a desktop Flex-AdobeAir application using the component which is able to run the entire site including javascript except where the AJAX is used.
I narrowed the source of the problem down to the difference between using asp:ToolkitScriptManager and asp:ScriptManager. Here's an example page that will display "Safari" in the embedded flex browser as the result of document.write(Sys.Browser.name):
<%@ Page Language="C#" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[code]...
However, if you change
<asp:ScriptManager ID="TheScriptManager" runat="server"></asp:ScriptManager>
to
<asp:ToolkitScriptManager ID="TheScriptManager" runat="server"></asp:ToolkitScriptManager>
it suddenly does not display anything on the flex browser.
I am getting a FaultEvent when trying to send form fields through HTTPService that contain more than 542 chars.
Initializing the HttpService:
httpServ = new HTTPService();
httpServ.method = 'POST';
httpServ.url = ENDPOINT_URL; //http://localhost:3001/ReportError.aspx
httpServ.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
httpServ.contentType = HTTPService.CONTENT_TYPE_FORM;
httpServ.addEventListener(ResultEvent.RESULT, OnErrorSent);
httpServ.addEventListener(FaultEvent.FAULT, OnFault);
Sending the request:
var params:Object = {};
//params["stack"] = e.stackTrace.slice(0, 542); //length 542 = works
//params["stack2"] = e.stackTrace.slice(1, 543); //length 542 = works (just to show that it's not about the content itself)
params["stack3"] = e.stackTrace.slice(0, 543); //length 543 = fails
I also seem to be able to create many form fields (with 542 length) so that it's not a limit of the request itself but of the form field:
var params:Object = {};
params["stack"] = e.stackTrace.slice(0, 542); //length 542
params["stack2"] = e.stackTrace.slice(1, 543); //length 542
params["stack3"] = e.stackTrace.slice(2, 544); //length 542
// Length > 1600 chars
The receiving party is an ASP.NET 4 site on the same domain and port.
I hope someone already came across a similar restrictions or has some general advice on how to trace this problem down further.
I need to export a few (could be just one or more than one) Microsoft Charts to a PDF and Excel. It needs to happen on a button click and the charts should be directly exported to a PDF without getting rendered onto a web page.
Environment used: ASP.NET
Question: Anybody has experience with ZedGraph / MS-Chart controls ?
I am thinking about which to use ?
Basically, I have a tendency to ZedGraph, because I need .NET framework 2.0 while MS-Chart is 3.5 (and I don't know how well a 3.5 assembly works on 2.0) and because I could use it privately, too (I use Linux privately).
But I don't know if MS-Charts offers more. Does ZedGraph for example offer reasonable quality 3d piecharts ?
And reasonable color design, like gradient colors ? And if it does, is it as simple (or nearly as simple) as MS-Chart controls ? And does ZedGraph offer databinding, e.g. a datatable from a database ?
how to display survey questions Chart?
View 1 RepliesZoom option in azax line chart control.
View 1 Replies I wanna know if it's possible to make dynamic charts with Reports (not crystal reports) of VS2005 in asp.net+vb.net. My boss want me to make a chart within a report and be able to click a bar and go to another report or subreport of that particular bar of the chart.
Right now I know how to make a chart with the report but it's static.
How to create charts of MIS using vs20005 and sql2005?
View 9 RepliesI'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?
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 RepliesI 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.