Web Forms :: How To Call Silverlight Testpage.aspx In Usercontrol
Sep 10, 2010I used usercontrol in asp.net I want show silverlight control in that usercontrol .How I do it I cannot understand?
View 3 RepliesI used usercontrol in asp.net I want show silverlight control in that usercontrol .How I do it I cannot understand?
View 3 RepliesI have MainLayout.master that has UC_Menu.ascx on it.
I have a page named Customer.aspx that uses MainLayout.master. Customer.aspx also contains a UserControl named UC_Details.ascx.
How can I have UC_Menu.ascx call a function that is in UC_Details.ascx with this scenario?
I've seen a few similar examples, but none that match this type of layout.
i have an button click event on the aspx page, the same aspx page load event i have hide the user control if the Session["Userid"] is empty, now the user can login from the same page, so after his successsfull login i show the usercontrol(in this user control i'm just show a Welcome message and logout button -in this user control also im checking if the userid is not found then hide the welcome message), but there is no data because while page load there is no data on session, so how to reload the usercontrol.
View 6 RepliesHow to call usercontrol's code behind method in aspx.cs
View 1 RepliesI have created the usercontrol. There is event :
public event System.EventHandler MemberSelectionChanged;
I have called this event in aspx page like this(given below). It working fine. Is there any other way to call the user control event in aspx page.
this.ucMemberList.MemberSelectionChanged += new EventHandler(MemberList_MemberSelectionChanged);
How can I call aspx content page methods from usercontrol?
View 2 RepliesI am playing around and trying to learn silverlight4. I have an existing asp.net page with and area of 600 * 400px available for my silverlight form.
My silverlight application has 2 usercontrols. The 1st usercontrol contains a listview of some data, when a user clicks on a list item I display the 2nd usercontrol.
Is it possible from the 2nd usercontrol to call a clientside function within the page so I can have a similar effect as a modal popup?
I just started learning silverlight by creating a silverlight application in Visual Web Developer 2008. I have a public property defined in the user control. How do I access this property value in the aspx codebehind page?
View 2 RepliesHow 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 RepliesI'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>
I have the following Silverlight control defined:
[Code]....
I have exposed the following method in my Silverlight control (Page.xaml.cs) to be accessible to Javascript:
[ScriptableMember]
public bool HasPendingUpdates()
{
return btnSave.IsEnabled;
}
I then have a Javascript test function in my aspx page that is trying to do something with it:
var imageViewer = $("#objImageViewer")[0];
if (imageViewer.Content.Page.HasPendingUpdates())
{
alert("Pending Changes Exist!");
}
else
{
alert("NO Pending Changes Exist!");
}
Problem is that it fails after the Content object. I have tested the following:
var imageViewer = $("#objImageViewer")[0];
imageViewer // Valid
imageViewer.Content // Valid
imageViewer.Content.Page // Invalid
imageViewer.Content.HasPendingUpdates() // Invalid
So I am not sure what I am doing wrong. How do I get to the function within Content?
I am using IE8, Silverlight 3, ASP.NET. The silverlight control is created with the object tag as I don't think the control is an option in Silverlight 3+.
what i have is a web form with a number of input fields . But some of the fields have the magnifying glass search image so that the user can click and up pops some results to pick from.
So what i have is like the following
Item Code {image here}
Supplier Name
Supplier Code {image here}
and so on ..
so what i want to do is create a user control that i can call from any web page that has the image on it and the name of the label can be passed .
So the control would be a probably label with an image to the right of it and in the markup when the it is called , a label name is passed in order to display it on the page .. also label id and a click event on the magnifying glass because each label might have a different id and the click event on the magnifying glass for each is different .
eg: <uc1: id="SearchControl" Text="SupplierCode" runat="server">
and this would output
Supplier Code {image here}
I have a UserControl that is on a masterpage... I have created the following property for the userControl in the codebehind:
[Code]....
Now I need to access this control and change that property from an aspx page that uses the masterpage with the control. I'm stuck I cannot seem to find the controls property. I can find the control and make it visible or not but I cannot find the property to modify control...
i have user controls inherits from base user control like this:
[Code]....
How do i insert CustomerSendMail & UserSendMail into aspx page?
Note: The derived user controls having the same control layout as the base user control. Making copies of ascx page for CustomerSendMail & UserSendMail is not good idea, because if i modify the base's ascx page, the old CustomerSendMail & UserSendMail 's ascx page should be replace with the new one.
I have this public property in the codefile of an aspx page:
[Code]....
Then in that aspx page I have a usercontrol (.ascx), how can I access the above public property form its codebehind?
I have got 3 aspx page and a usercontrol on each page have an email placeholder in it. What I want to acheive is when the customer
click on the usercontrol email placeholder, certain method on a particular page should trigger. See below for the code:
[Code]....
i added css and skin file path inside a usercontrol
if register this u.control to a aspx page
is css will apply to aspx page ? ,if i not apply any style sheept to aspx page
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?
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
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 RepliesI 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
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?
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 RepliesI have a problem with calling a method on a aspx page from a usercontrol.
The case is: I have 1 main page with 5 usercontrols, when something goes wrong in the code I want to display the error message in a Modalpopup Extender. I can create for each usercontrol a different modalpopup extender but isn't much easier when I make 1 popup in the aspx page. But the problem is: How should I call a method in the aspx page that open the popup?
I have search several hours on the internet but can't find anything useful.
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..