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


Similar Messages:

HttpHandlers / Modules :: Entry Type Of IIS Custom Modules?

Jan 26, 2010

After adding a custom module, Module list is showing MyModule "Entry Type" as "Local".

and Entry Type of all other modules is "Inherited".

what is Entry Type and difference between "Local" and "Inherited"?

View 4 Replies

HttpHandlers / Modules :: Regarding Http Modules Execution?

Jun 8, 2010

is httpmodules executed each and every time in request and response cycle ?? if Yes is it possible to disable a specific http module ??

View 3 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

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

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

Httphandlers And Http Modules?

Feb 7, 2011

How do we findout the whether the application is using any HTTPModules and httphandler in the applicaion?Is there anyway to findout from the url without checking the web.config file?

View 1 Replies

HttpHandlers / Modules :: Url To A Subdomain Is That Possible

Jul 2, 2010

I got a website [URL] and I want to redirect http://www.example.com/folder to http://folder.example.com so if
folder has a page called example1.aspx [URL]

It should be called in this way:

http://folder.example.com/example1.aspx Is that possible that using IIS 7 and asp.net 4.

View 2 Replies

User Authenticated Or Not In Other Modules

Mar 2, 2010

protected void Login1_LoggedIn(object sender, EventArgs e)
{
{
User.SetUser(Login1.UserName // and what is user ID ?

and how to check in other module if user authenticated or not?

View 1 Replies

HttpHandlers / Modules :: What Is Httphandler In .net

Mar 3, 2010

what is httphandler?what is the use ?

View 7 Replies

HttpHandlers / Modules :: URL Rewriting On IIS 7.0?

Apr 1, 2010

I have a HttpModule that rewrites the url:

eg: Folder/StaticPage.aspx?PageName=TestPage is re-written as

Folder/TestPage

This works fine on my local dev. machine on the Cassini server. But when its hosted in IIS (5.1 & 7.0) it fails to work, with the error as 404 Page Not Found.

View 3 Replies

Add Modules To Aspx Page?

Sep 12, 2010

I'm looking for a right way adding different modules into my cms. For example: The user will have an ability to add some modules like contact form, text editor and etc... But in different places of a webpage.

I thought about panels using, I need to place them beforehand in my wanted places of a webpage and I think that will be ok, but I don't know how to let a user a possibility to change the panels between them, something like Igoogle, maybe without ajax. and also to give a possibility to align the panels right, left or middle of the page.

View 3 Replies

HttpHandlers / Modules :: HttpModule Is Not Working

Jan 24, 2010

I have written simple http module just to print Hello. but it is not working.

View 10 Replies

HttpHandlers / Modules :: HTTPHandler -> Session_End

Oct 19, 2010

I am using Httphandler to access my pages. Have Loginstatus Control on the master pages.

OnLoggingOut for the Loginstatus control I am doing a Session.abandon()... But My session_end

does not get called in the Gobal.asax.I tried link button and everything. but when I take out the httphandler the Session_end gets executed in global.asax

I can handle the full session end on my own but is there any way to call Session_end in global.asax?

View 2 Replies

C# - Best Way To Get The Proper Modules Section From The Web.config?

Jan 19, 2011

The code I've used to get the HTTP Modules is basically

HttpModulesSection modules = ((SystemWebSectionGroup)config.GetSectionGroup("system.web")).HttpModules;
// Depending on what we need to do...
//modules.Modules.Add(CreateSomeModule());
//modules.Modules.Remove("SomeOtherModule");

This worked fine up until IIS7. The migration command %SystemRoot%system32inetsrvappcmd migrate config "website/" moves the modules into system.webServer, so my code is now updating the wrong section. Is there a built in way to get the proper module section that should be modified? Or do I have to add a check for the Request.ServerVariables["SERVER_SOFTWARE"] and return system.web/system.webServer depending on the string I get back?

View 1 Replies







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