Accessing Username In Silverlight Application From Aspx?
Apr 2, 2011
I need to access signed in username and pass, which are saved in session variable,
from silverlight page
i remember something of accesing session variables from silverlight but cannot get the code
cannot remember the name of the video, which shows how to interaction between aspx page and silverlight plugin
View 1 Replies
Similar Messages:
Jul 29, 2010
I am new to silverlight and I am wondering if it is possible to access silverlight object data from the aspx page that host it. Or have silverlight write to a hidden field on the page on client side.
What I am trying to do is to use silverlight to upload file via WCF (client to WCF Service directly instead of posting data back to the web server then forwarded to WCF service). When uploading a large file, user can still do some data entry etc. And once the upload is done have it write some data return by the WCF service to the aspx's hidden field and postback to the server on submit.
View 1 Replies
Jan 21, 2010
We have an ASP.Net 2.x web site. We want to migrate it to Silverlight full frame application. However, there is no way we can go away in a corner and redo every web page in SL right off the bat.
What I would like to do is build the chrome of the app (main page, dashboard, login, common system/config screens, main menu) in SL and be able to open existing .aspx pages in the main content SL frame.
From what I see there is no way to do this. I thought the Webbrowser control in SL4 would be the answer, but apparently that only works if your app is run out of browser.
So, what is my best recourse? It seems like I will have to create some type of .aspx page that hosts the .XAP and pass in the page I want it to load?
View 1 Replies
Sep 2, 2010
I want to send data from my silverlight application to a aspx page. But i don't want to pass parameter in the url when calling the aspx page.
So i figure the best way is to do a POST. But i'm not too sure how to do it..
View 1 Replies
Oct 6, 2010
I want to add a button to my user control in SilverLight 4.0 application which will open a new browser window with an aspx in it when it is clicked.
Additionaly, can I lock the SL application until this new window is closed (Alike a modal dialog)?
View 2 Replies
Aug 2, 2010
I have an aspx page and I want to access an application on the client after seeking user permission. Both the windows application and the website are to be made in VB.NET.
EDIT: Here is the problem. From my .aspx webpage in vb.net, a visitor clicks on a link on my site, and if my winform is not already loaded on their desktop, it is then loaded with the users permission. This application should auto-load on the user's site at boot up time and always be in the background running. Make it an extremely thin client, taking the least cpu and bandwidth from the user, and running as a silent background process until needed.
Whenever the user visits one of my many websites, IN ANY BROWSER, somehow - the app running in the background communicates with the .aspx on one of my sites, and exchanges a silent username password identifying client winform app to the online .aspx app on my website.
Then the .aspx on my site PASSES a url such as "www.somewebsite.com" to the app running in the background, the background app then does a http request from the client's computer, not from my .aspx server, so the client's cookies and ip are visible to "www.somewebsite.com" server. The client collects the html for that page, stores it as a string, and also saves the ascii of that webpage as another string.
Both strings then are PASSED BACK to my .aspx website that the client is visiting, and the .aspx app then stores these results in a database.
View 2 Replies
Feb 10, 2010
I am able to access the controls of ".aspx" file in ".aspx.cs" directly without any declaration in ".aspx.cs" or in designer.cs. How is this possible? This is happeing only if I open website as using File System.
Create a new ASP.NET web site application with Visual Studio 2008. So following three files will be created automatically
[code]...
How btnSave is being recognized by .cs file without defining it anywhere as an object of System.Web.UI.WebControls.Button?
View 3 Replies
Dec 1, 2010
I am working on a website where when the user logs in, I select their database based on their username. Currently I have a list of all databases in the web.config and I select the Database ID from the username and then read the database string from web.config. What is the most optimal way to implement this scenario?
currently I:
- store the Database ID in the session object
- the Session object expires after like 5 minutes so i have to read the Database ID from the online database based on the username and regenerate the Session["DatabaseID"] again.
- there are some security issues with the Session ID, so I started clearing the Session in !(Page.IsPostBack) and I generate the Database string again.
Where shall I store the DatabaseID and the database connection string so I can easily reuse it once the user has logged in?
View 8 Replies
Aug 26, 2010
Currently I am storing my username and password (passwordFormat="SHA1") credientails in my web.config. I would like to figure out how to access them in an xml file that I have stored in my App_Data directory rather than the web.config file because I do not want my application restarting everytime I manually add a user (small list of 5 authorized users for the CMS section).
Here is what my web.config section looks like:
<authentication mode="Forms">
<forms name=".Administration"
loginUrl="~/SiteAdmin/Default.aspx"
defaultUrl="~/SiteAdmin/Administration/Default.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
enableCrossAppRedirects="false"
cookieless="UseDeviceProfile"
domain="">
<credentials passwordFormat="SHA1">
<user name="username" password="474BA67XXXXXX3B36DFD8A7BED6C85B04943" />
</credentials>
</forms>
</authentication>
View 1 Replies
Aug 15, 2010
i have a asp.net page using c#.
1. My asp.net page has a login page.
2. i created a list of user in database who has the access in my asp page.
3. but i want to use their SAME username and password (active directory) to use as their login name and password to my asp page.
4. how can i access the active directory username and password and connect to my list of user database.
View 2 Replies
Aug 7, 2010
If I need to build a silverlight application and have it work under my asp.net application!
Does that mean I have to create two different vs projects?
One for silverlight the other my asp.net application? Or I can have one in 1? What do I do?
View 3 Replies
Oct 9, 2010
I have a Silverlight application hosted inside an asp.net website. In my silverlight applicaiton, if I select a theme. Then, theme changes will gets fired. I want to get notified in asp.net web page, when the theme changed event is fired inside the silverlight application. Note: Also, I don't want to use a data base to maintain the state of the application.
View 1 Replies
Feb 21, 2010
How to embed silverlight xap into aspx page. I have created students database. I want to keep search option to find student name. It should be done in silverlight. I want to embed that silverlight in aspx page.
View 6 Replies
Oct 6, 2010
I have two frames in a Silverlight application.
One frame contains a TreeView control. When a user clicks on one of the TreeView's items then I want an ASPX page to be loaded into the next frame.
How can I achieve this?
View 1 Replies
Dec 28, 2010
First, we are constrained to using an existing web framework that handles authentication and authorization. The web project uses forms authentication and writes to an encrypted cookie. The user information is exposed to the aspx pages as a property:
LoggedInUser.Current
This has several properties including the userId and role list.
I've looked at using initParams, but haven't been very successful there (edit: I couldn't do it dynamically originally). I've created a simple POCO entity with a [Key] attribute, but I need to at least be able to pass the userId from the aspx page to the imbedded silverlight.
What is the easiest way to pass a dynamic object from aspx to silverlight 4?
[Code]....
Then used Slugster's example to use the values on the Silverlight side.
Warning: Passing user information via init params exposes the info as plain text to the user viewing the page (they just have to view the source). We ended up using an authentication domain service and using the same user object as the aspx
View 2 Replies
Feb 15, 2011
i have made a user control carrying a grid which is showing different uploaded images , description etc. I am putting this in another aspx page and want to fetch the values of the silverlight grid. I have made a class file for that but unable to get the grid collection.
View 1 Replies
Feb 14, 2010
I've created a silverlight application, MainPage.xaml has silverlight controls. The code behind of it will be definately in MainPage.xaml.cs file. When creating a silverlight app, I've selected a default web project wherein this silverlight app will be hosted and run. After all my work in MainPage.xaml.cs file, I want to integrate it in my default.aspx file. As i understand, I need to give reference to xap file in this aspx file. I tried accessing
<asp:Silverlight ID="xx" runat="Server.. />
tag but had no luck. This tag does not come up, Am i missing to add reference to any silverlight dll to my web application. Or is this tag applicable for Silverlight 2.0 and not 3.0 which I'm using:
<object data="SilverlightEmployeeExampleTestPage.aspx" width="100%" height="100%">
<param name="source" value="../ClientBin/SilverlightEmployeeExample.xap" />
</object>
View 2 Replies
Jul 23, 2010
We have a silverlight/asp.net application which communicates with WCF to fetch data. Now we are facing a problem where in the silverlight component is taking some time to initialize after the asp.net page life cycle is completed.We have tried tracing all the events and found that there is a time lapse between the aspx page unload event and silverlight initialize event. This we have tried with even a simple application (hello world) but still have found the same result.There is nearly 3-4 seconds delay i.e the silverlight component initialization starts 3-4 seconds after the page unload event ends.
View 1 Replies
Sep 10, 2010
I used usercontrol in asp.net I want show silverlight control in that usercontrol .How I do it I cannot understand?
View 3 Replies
Jul 15, 2010
I'm calling a silverlight component in my aspx page like this
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="silverlightControlHost" > [code]...
I would like to modify my page aspx so it takes the parameter itself. Today I'm calling the page
Config.aspx and I would like to do something like this call it
Config.aspx?ConfiguredCarId=11
How do I modify the above code to reflect the change?
View 1 Replies
Aug 23, 2010
I have an aspx masterpage that I would like to use in Sketchflow in ExpressionBlend as a Silverlight project. I am totally out of my comfort zone here and am not even sure how to ask this question. This masterpage has a Header and a Footer and the middle section will contain the Content - which will actually be Silverlight. Is there some easy method to bring the design (aspx) into Sketchflow to use?
View 1 Replies
Apr 26, 2010
I'm developing a web site, and i'm using infragistics for web, but I want to use in some pages silverlight controls (Infragistics too). Is there a way to access a silverlight control's properties and methods from an aspx page?
View 3 Replies
Nov 15, 2010
How to Dispaly the username on all aspx pages....?
am thinking that by using "session object" we can able to do this...bt am not sure
Can any send the code or links
View 3 Replies
Feb 15, 2010
I'm developing an three layer ASP.NET application with C# and Visual Studio 2008 SP1. I'm using WebForms.
I'm wondering to convert that application to a Silverlight application. Maybe I can reuse a lot of code of ASP.NET layer.
View 3 Replies
Nov 16, 2010
I developed Registration Page like this.
[Code]....
View 4 Replies