C# - .Net / Flex / Read Partial Results From URLRequest?

Mar 17, 2011

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]....

View 1 Replies


Similar Messages:

Data Controls :: Search Database Using Partial Text And Display Results In GridView?

Mar 23, 2013

I need a query to fetch records from data from database based on partial text entered in textbox like search data from College table based on College Name entered in text box. I want that all record containing that College name displayed in grid view.

View 1 Replies

Web Forms :: Read And Import CSV File On ASPX Page And Display Results In HTML Table

Jan 24, 2016

Why do i get an error for the loop ? This piece of a script is in a asp file for reading my csv .

it needs to read all my rows in the csv ,, like now it gives me expected loop error 

if i put it under arrRows = split   it gives me only the last entry of the csv..

Do Until oInStream.AtEndOfStream
sRows = oInStream.readLine
arrRows = Split(sRows,",")
%>
<td><div align="center"><%=arrRows(0)%><br></div></td>
<td><div align="center"><%=arrRows(1)%></td>

[Code] ....

View 1 Replies

Asp.net - Get Flex Modules From ASP MVC?

Aug 18, 2010

We 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 Replies

Database Connection With Flex And C#

Feb 4, 2010

I'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 Replies

Put Flex Charts In Application?

Jan 29, 2010

Is it possible to put flex charts in a asp.net application?

Any other easy to use chart controls, but fancy looking ?

View 2 Replies

How To Write Php Script In Flex Application

Aug 5, 2010

How can write php script in flex application ? . at the same time this script can be asp.net,javascript ...

View 2 Replies

Way To Pass The Root Url To The Flex Application?

Feb 21, 2011

I 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?

View 3 Replies

File Upload From FLEX Or ActionScript 3?

Jul 12, 2010

I 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 Replies

Programmatically Upload Larger Files In Flex?

Mar 10, 2010

I 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?

View 1 Replies

Passing Parameter From Page To Flex Application

Apr 22, 2010

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 Replies

Flex - Updating An IFrame Without A Page Refresh Using Actionscript 3?

Jan 10, 2010

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");
}

View 2 Replies

Creating A Framework For Web Forms Similar To Flex States?

Apr 13, 2010

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]...

View 1 Replies

C# - POST Data To A Flex/Flash (mxml) Application?

Feb 19, 2010

I 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.

View 2 Replies

AJAX :: Flex Desktop App With Embedded Browser Incompatible With .net ToolkitScriptManager?

Feb 4, 2010

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.

View 1 Replies

Flex HttpService POST Limited To 543 Byte Per Form Field?

Mar 12, 2010

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.

View 1 Replies

C# - .NET MVC Partial Views And Routing - Using Ajax Calls To Trigger A New Request But Non Of The Partial Views Are Refreshed

Mar 9, 2010

I have an MVC view that contains a number of partial views. These partial views are populated using partial requests so the controller for the view itself doesn't pass any data to them. Is it possible to reload the data in one of those partial views if an action was triggered in another? For example, one partial view has a jqGrid and I want to refresh the data in another partial view when a user selects a new row in this grid. Is there a code example for this scenario (in C#) that I can look at to see what am I doing wrong? I am using ajax calls to trigger a new request but non of the partial views are refreshed so I am not sure if the issue is with the routing, the controller,

View 1 Replies

Visual Studio :: Duplicate Results In "find Results 1" Window?

Jan 26, 2011

In VS2010, when I "find in files", I often get doubled results in my find window.

View 5 Replies

Web Forms :: Read Receipt And Read Outlook Inbox For The Same

Jul 21, 2010

Read Receipt And Read Outlook Inbox for the same

View 2 Replies

Partial Views / How To Implement Partial Views

Jun 16, 2010

i want to implement partial views in asp.net

View 1 Replies

How To Use Partial Views

Jun 17, 2010

I have done partial views in ASP.NET MVC but now I want to convert it to ASP.NET. I have used AJAX and JavaScript. How can I convert the following:

<a href="#" onclick="LoadPartialView('#MainContentDiv', '<%=Url.Action("AdminHome", "Admin")%>')">Home</a> ,
<input type="button" value="Submit" onclick="LoadPartialViewPost('#MainContentDiv', '<%=Url.Action("ViewPage", "Controller")%>', $('form').serialize())" />

to ASP.NET, or in other words, how can I load a partial view in ASP.NET?

View 1 Replies

How To Display Results From A Url

Feb 3, 2011

In my asp.net project I need to call another url with a parameter and display what the url returns in a label. What is the easiest way to do this?

View 2 Replies

MVC :: HttpStatusCodeResult Results?

Nov 17, 2010

Is it possible to return json data or content when using the HttpStatusCodeResult?I see it is possible to return a result description, but the ability to return an error object would be fantastic!

View 5 Replies

MVC :: Concatenate SQL Results?

Mar 23, 2011

I am working on an application that requires a lot of data sets being sent to the client when application starts. To avoid multiple trips to the server I want to combine all the data together and send it as one piece. I cannot build one single SQL statement, it's going to be many. Should I just put SQL results together like strings?

View 14 Replies

ADO.NET :: Get Results That Are Not Linked By Many To Many?

Dec 11, 2010

I have 2 tables with a many to many relationship directory and website, they are linked by the table dw, the dw table has extra filds that are relivant to the link it is not simply 2 forain keys. So in my entity diagram i can see all 3 tables.

What I want to do is select all websites that are not linked to a given directory.

Here is my best attempt so far but it does not return any records

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved