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


Similar Messages:

Passing Page Title Through Parameter

Aug 23, 2010

I am new to ASP.NET, and was wondering how to pass a Page title through a parameter. In classic ASP I could just use something like:

<title><%=Pagetitle%></title> but I cannot seem to get this to work in ASP.NET.

View 3 Replies

Web Forms :: Passing Parameter From One Page To Other

Mar 17, 2011

I am opening one page and sending parameter from one asppage to other using winodow.open method

var retVal = window.showModalDialog("PopupWindow.aspx?SQL=" + document.getElementById(SUCName.concat("txtRetVal")).value +
"&Curr_Date=" + d , null,"dialogLeft=" + XPos + ";dialogTop=" + YPos +
";center=no;status=no;dialogHeight:430px;dialogWidth:420px;resizable=no;help=no");
in my document.getElementById(SUCName.concat("txtRetVal")).value contains:
SELECT ResourceID, ResourceName FROM ResourceMaster WHERE AREA LIKE '%CALICUT%'

but when it access this on PopupWindow.aspx using Request.QueryString("SQL") then first 3 character in LIKE clause gets convert to some ascii character and my query becomes

SELECT ResourceID, ResourceName FROM ResourceMaster WHERE AREA LIKE '�LICUT%'

what is solution to this?

View 7 Replies

MVC :: Passing Parameter From One Page To Another Using Href

Jan 28, 2010

How to pass parameters from one page to another pages using a href.

<a href="#">

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

Passing Parameter To Page Doesn't Work

Apr 23, 2010

The follwoing statement does nto work.

document.all.oFrame.src =
"/mmm/xyz/hello.aspx?ConceptID="&vConceptID&"&ShortName="&vShortName

I have given alert.

alert(
"/mmm/xyz/hello.aspx?ConceptID="&vConceptID&"&ShortName="&vShortName)

IT GIVES 0 AS OUTPUT.

View 4 Replies

DataSource Controls :: Passing Parameter From Web Page

Mar 16, 2010

I'm experimenting with an example of code that I found in a book. Here is the HTML:

[Code]....

This looks fine in DesignView.

Here is the VB:

[Code]....

The page loads when I hit F5. I enter initials for a state and click the button and get this error message: 'The connectionstring property has not been initialized'. This line is green:

objConnection.Open()

I'm highly confident that the connection srting is correct. Do I need to Dim another variable or something?

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

Crystal Reports :: Parameter Passing From Previous Page?

Nov 26, 2010

I have 2 asp.net pages first page (PaySlipForm.aspx) contains ui elements for getting values from user, second page shows the report depending on the parameters passed from first page. The problem is first time the report shows correctly but when I go back on first page by clicking the back button of browser and changes the selection the report is shown empty only labels are shown.

First Page PaySlipForm.aspx
<asp:DropDownList ID="ddlAllEmployees" runat="server" style="margin-left: 7px"
Height="20px" Width="174px"> </asp:DropDownList>
<br />
<asp:DropDownList ID="ddlMonth" runat="server" Height="23px">
</asp:DropDownList>
<br />
<asp:DropDownList ID="ddlYear" runat="server" style="margin-left: 18px"
Height="23px" Width="77px">
<asp:ListItem>2010</asp:ListItem>
<asp:ListItem>2011</asp:ListItem>
<asp:ListItem>2012</asp:ListItem>
</asp:DropDownList>
<br />
<asp:Button ID="btnShow" runat="server" Text="Show" PostBackUrl="~/Reports/PaySlipViewForm.aspx"/>
Second page is PaySlipViewForm.aspx that has the code
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="True" EnableDatabaseLogonPrompt="False" Height="50px"
ReportSourceID="CrystalReportSource1" Width="350px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="../Reports/PaySlip.rpt">
</Report>
</CR:CrystalReportSource>
---------------------
if (!IsPostBack)
{
int employeeID = Convert.ToInt32((((DropDownList)Page.PreviousPage.FindControl("ddlAllEmployees")).SelectedValue));
int monthID = Convert.ToInt32((((DropDownList)Page.PreviousPage.FindControl("ddlMonth")).SelectedValue));
int year = Convert.ToInt32((((DropDownList)Page.PreviousPage.FindControl("ddlYear")).SelectedValue));
CrystalReportViewer1.SelectionFormula = "{Payroll.EmployeeID} = " + employeeID + " And {Payroll.Month} = " + monthID + " And {Payroll.Year} = " + year;
}

View 4 Replies

Web Forms :: Passing Control Parameter Values From One Aspx Page To A Second

Apr 7, 2010

I have a web form that has drop down controls. These controls are data bound to a database. Now, I would like the results of the selected values to be shown on a new aspx page in a gridview or detailsview.

View 3 Replies

Forms Data Controls :: How To Passing Dropdownlist Value As Parameter To Another Page

Nov 25, 2010

how to passing dropdownlist value as parameter to another page?

View 3 Replies

Web Forms :: Call Popup With Passing Parameter Without Page Refresh

Jun 15, 2010

I am using VS 2005 (asp.net 2.0). Currently i am facing a problem everytime onclick button call the popup it will refresh the page. Below is my code, Any suggestion or better idea can do it without refresh

[Code]....

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

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

MVC :: Passing Id In Parameter?

Aug 26, 2010

I am using url in my mvc application like /product/edit/5, should change it because users can

change id parameter and access different product as this Id directly refer to Id in product table, I have validation there for user to access product.

should I continue with it or should I change it as application has many users

View 2 Replies

Passing A Parameter To Stored Procedure In C#?

Mar 23, 2011

When I try the following:

[Code]....

I get an error saying No overload for Add method takes 2 arguments. HOw would i pass the PaycheckID in then as a paramter?

View 2 Replies

Passing A Parameter To Action Method?

Sep 8, 2010

public ActionResult RenderMyThing(IList<String> strings)
{
return View("RenderMyView");
}

How do I pass in strings?

routes.MapRoute("MyRoute", "RenderMyThing.aspx", new { controller = "My", action = "RenderMyThing" });

Is there a way I could pass in strings here?

Secondly, how does ASP.NET MVC know that action is my action, and controller is my controller. Like I saw this in samples, and it does work, but isn't it just an anonymous object with no type?

View 1 Replies

SQL Server :: Passing One Input Parameter To The SP?

Sep 7, 2010

im passing one input parameter to the SP, based on that parameter i have written the code like below create procedure SP1(@inpName varchar(10))

declare @where varchar(20);
if @inpName = 'ABCD'
@where = 'A';
else if @inpName = '1234'
@where = '1';
else if @inpName = 'AB12'
@where = 'A,B';

SELECT * FROM TABLE1 WHERE COLUMN1 IN(@where);

Now the above query was fine if its 'ABCD' or '1234', but if its 'AB12' then query failed.
How to resolve this issue.?

View 2 Replies

Web Forms :: Passing Parameter While Routing?

Feb 12, 2011

i am doign url routing and it is working fine with url like followwing:-when ever i click on HOME/SEARCH i get redirected to ~/SEARCH1.aspx page.

[Code]....

BUT IF I REPLACE THE ABOVE URL WITH "~/SEARCH1.ASPX?ID=2"I GOT FOLLOWING ERROR:'~/search1.aspx?id=2' is not a valid virtual path. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Web.HttpException: '~/search1.aspx?id=2' is not a valid virtual path.i have to pass id to the search1.aspx page.what is the way out.

View 5 Replies

MVC :: Passing A List As A Parameter With BeginForm()?

Mar 2, 2011

I am using HTML.BeginForm to create a form on my page. I need to pass a list of classes I created as a parameter. It's done like this:

<%
using ( Html.BeginForm("DisplayCompanions", "CCDReviewController", new { CompanionList = Model.CompanionList} ) )
{ %>

When I click a "Continue" button (enclosed in the form tag), the "DisplayCompanions" method on my Controller ("CCDReviewController") should be called, as I've set a breakpoint on it. But it's not being called.

Note that Model.CompanionList is a generic list of classes that I created.

View 3 Replies

Web Forms :: Parameter Passing Between Web Pages?

Jan 20, 2011

Developing in C#.I have a home page and couple of other aspx pages.In the home page in a summary box I have names of projects. When the user clcks on a given project I will pass the projectID to the Project.aspx page.I then retrieve this ProjectID and display the project details in text boxes. Code is given below.

[Code]....

View 3 Replies

Passing Parameter From One User Control To Another User Control In An Aspx Page?

Jun 3, 2010

have two user controls on one aspx page. UC1 has a grid which contains a link button column which user clicks. Based on the value of clicked cell, I need to show some data into UC2.How do I pass data from UC1 to UC2? How do I invoke a function of UC2 from UC1?

View 2 Replies

Web Forms :: Passing Eval() As Parameter In Javascript

Oct 22, 2010

I have got a drop down list in a gridview and would like to pass eval() as parameter to javascript..

<asp:DropDownList ID="ddl_grprowcutter" runat="server" onchange='<%# "fn_ddl(" &#43;Eval("Order_No") &#43; " );" %>'

View 15 Replies

Passing A String Parameter In A JavaScript Function On MVC

Jun 17, 2010

I tried to pass a string value into a JavaScript function like below: <%= "'" + prop.property_description + "'") %>) But it does not seems to be the best option, is there a better way to do the above without concatenate the string values with "'"?

View 2 Replies







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