Why Wouldn't An Embedded Silverlight Control Work In A Page
May 19, 2010
I have a silverlight application project in my solution. The other project is a web application project that has a .xap file in ClientBin.
When I created the silverlight project, it asked if I wanted the asp.net application to host it (and I said yes).
In the root directory, there is a test page for the silverlight control. That loads the control.
In another directory, I insert the SAME asp markup to get the silverlight control to launch again.
Nothing happens.
Why would the silverlight launch on one page and not on the other? how to documentation about dependencies that I might not know about?
I've put a reference to Silverlight.js on the page as well.
Here's the markup:
[code]....
View 1 Replies
Similar Messages:
Feb 23, 2010
I know Silverlight controls can be embedded in an ASP.NET page but is it possible to do the same for a WPF control? The reason I am asking is because we have Infragistics which has a datagrid that can be flipped to have the columns on the left with the rows of data going down vertically. This is only in their WPF package though and I am trying to figure out a way to plug this in to an ASP.NET page.
View 2 Replies
Jan 9, 2011
I've written a web user control which I want to be able to drop into the markup for either aspx pages or other web user controls.I need my user control to be able to easily and efficiently work out if its inside another user control or an aspx page. My initial idea is to do it recursively with checks on the Parent property - continue looking up the nesting hierarchy until I find either a web form or a user control - but I'm not sure this the best way of going about this.
View 3 Replies
Jan 17, 2011
With embedded Javascript in an html page, I would use the following to get the ID of a control.
[Code]....
View 4 Replies
Mar 15, 2010
I have a drop down list embedded in a menu panel in my master page. This ddl fetches it's list items from my SQL Server. They are:
1. Select a type --appended during page load
2. Green type -- fetched from SQL server via a datasource
3. Red type -- fetched from SQL server via a datasource
4. User Manual -- appended during page load
For the sake of simplicity my website has 4 pages. When the 'Select a type' list item is selected - the user should be taken to a general 'Introduction' page. When the 'Green type' - the user should be taken to a 'Green' page - and etc.
View 1 Replies
Mar 1, 2010
Can any body tell me how to add silverlight 3.0 control in master page in asp.net 3.5 (ide VS2008)?
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 21, 2010
I know silverlight page doesn't make postback itself but does event fired from silverlight control postback whole asp.net page If this silverlight,control embedded in aspx page?
View 2 Replies
Mar 31, 2010
When Bing map control loads for first time on any browser all pushpin on map are visible.
Bing map control renders perfectly.
Then I refresh browser it create rendering issue some custom pushpin on map gets disappeared. This behavior continues with pushpin. Pushpin are (.png) images and I am not using default bing map thumbtacks.
May be it is issue of browser caching content or Bing map control rendering issues on various browsers.
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
Feb 10, 2010
I have a Radtreeview that sits inside a RadGrid. For some reason the expand/collapse buttons of the Treeview are not working. I can expand the Treeview initially, however the NodeExpand event never fires.(a postback does occur to the server, and I have several buttons on the treeview node that work.) Once the node has been expanded, the collapse button doesn't work, and clicking on it does nothing.(no postback to server). I have the ExpandMode set to ServerSide. However, if I change the Expandmode to Clientside it works properly.
I really need the control to work with ExpandMode set to serverside, to reduce the loading for large Tree's.
Im not sure if this matters. But I am adding the Events to the RadTreeview when the event RadGrid_ItemDataBound is fired.I am noticing one strange behavior, that I cannot explain either, if I do not attach an event to NodeExpand It fails to open or close. Also the NodeDataBound event fires successfully and the data is loading fine into the tree.
RadTreeView tree = (RadTreeView)e.Item.FindControl("RadTreeView1");
tree.NodeDataBound += new RadTreeViewEventHandler(RadTreeView1_NodeDataBound);
tree.NodeExpand += new RadTreeViewEventHandler(RadTreeView1_NodeExpand);
tree.NodeCollapse += new RadTreeViewEventHandler(tree_NodeCollapse);
Here is the decleration of the Treeview in the ascx file
<DetailTables>
<telerik:GridTableView Name="Detail Table" ShowHeader="false">
<Columns>
<telerik:GridTemplateColumn UniqueName="FooTreeview">
<ItemTemplate>
<telerik:RadTreeView ID="RadTreeView1" runat="server" DataValueField="CommunicationID"
LoadingStatusPosition="BelowNodeText" style="white-space: normal;">
<NodeTemplate>
<uc1:FooControl ID="r1" runat="server" FooBindings='<%#DataBinder.Eval(Container,"DataItem") %>' />
</NodeTemplate>
</telerik:RadTreeView>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
View 1 Replies
May 19, 2010
Platform: VS 2010, .NET 3.5, ASP.NET, Silverlight
I am working on an ASP.NET app that uses a Master Page. The master page uses the "blendTrans" attribute to prevent flicker between page loads during navigation.
Here is a code snippet:
<head id="Head1" runat="server">
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
....
</head>
In one of the content pages I create a Silverlight 3 app. Here is the code:
<asp:content>
<div id="silverlightControlHost" style="height:100%; width:100%; text-align:center;">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/DataMapperCtrl.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40818.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
</div>
</asp:content>
The Silverlight app works fine, but since adding the Silverlight app the navigation between the main pages on the app is very slow and gray is displayed between the page loads.
Has anybody else had this problem?
View 1 Replies
Dec 20, 2010
I have a SL app that can be run in-browser or out-of-browser. I want the browser to:
Cache the xap file Load the xap from the cache if it has not changed or re-download it if it has changed.
More details
Setting a future expires header obviously solves the caching problem but then I cannot force the user to download the latest version. Normally I would just add a querystring to the url (eg url?v=1) but I cannot do this as this breaks the out-of-browser functionality. eg the app thinks it is not installed when in fact it is.
no cache
If I set Cache-Control to no-cache, Chrome and Firefox correctly send a request to the server for the xap but use the cache if a 304 is returned. IE8 just downloads the file again as does Safari.
must-revalidate
Setting Cache-Control to must-revalidate again works correctly in Chrome and Firefox but Safari always downloads the xap again while IE8 always uses the cache.
View 1 Replies
Apr 27, 2010
I have a .aspx page in c#. There is an ajax control that shows the data company names from the xml file when the city is selected.
There is also a bing search control on the page.
The issue is that the Ajax control stops populating the data when the search control is present on the page.
The ajax control works absolutely fine when the search control is removed
View 5 Replies
Oct 13, 2010
I have a text box that is intended for an Email address. I am using a Regular eExppression validation control to validate the email address. When I place the following lines of code in a blank web Form, the validator works properly.
<asp:TextBox ID="Email" runat="server" CssClass="DefaultTextBox TextboxWidth" MaxLength="80"></asp:TextBox>
<asp:RegularExpressionValidator ID="valEmail" runat="server" ControlToValidate="Email" ErrorMessage="Invalid Email address" SetFocusOnError="True" ToolTip="Invalid Email address" ValidationExpression="w+([-+.']w+)*@w+([-.]w+)*.w+([-.]w+)*">*</asp:RegularExpressionValidator`>
However, when I use the validation control within a CreateUserWizard control, it does not seem to fire but other validation controls (Required and Custom validators) do fire, but not the regular expression validator above for validating the address. The following is my complete web page. The two controls above appear unchanged in the code below, they are simply embedded into the wizard control mentioned.
<%@ Page Title="" Language="VB" MasterPageFile="~/Master Pages/MasterPage.master" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="Login" %>
<%@ MasterType VirtualPath="~/Master Pages/MasterPage.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
.TextboxWidth
{
width: 200px;
}
.Heading
{
font-weight: bold;
font-size: 12pt;
color: rgb(44, 68, 105);
}
.StdFrameWidth...............
View 1 Replies
Jul 29, 2010
I have a Silverlight site hosted in an asp page, it has been developed using vs2010 using .net 3.5 framework and silverlight 4. It all works on my dev box. However when I publish the site and get it deployed I get the error:
Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I have checked that the ISS asp setting are using 2.0.50727, and that all my references are using that runtime also.
I am not sure what to do to work out what the missing dependencies are at this point (I don't have access to the deployment box, I will have to go and sit with a system admin).
View 2 Replies
Jan 3, 2010
Question: I have an annoying problem with nhibernate.The problem is I cannot get any example I find on the web to work... I've now tried for two days...
The first problem was it wouldn't read the config file, so I had to move it into app.config / web.config.
The second problem is that whatever I do, I always get an error:
No persister for: NHibernate.Examples.QuickStart.User
I've searched google and I did change the mapping to embeded ressource, and I did add the mapping to the config file, but nothing helps...
The example is from this page:
https://www.hibernate.org/362.html
I've uploaded my Visual Studio 2005 project to
http://daniel-steiger.ch/exchange/NhibernateCrap.rar
View 2 Replies
Oct 28, 2010
i would like to write a streaming programming which will keep updated or query the database. I would like to use a connection instead of open and close connection on each transaction. But the streaming programming would not end, running at all the time. So, is it any effect if i am using only one connection (within a long period). Such as performance, timeout issue, or others exception.
View 1 Replies
Dec 13, 2010
In Crystal Reports Viewer (2008) for ASP.Net, when you click on the Export button, the Export dialog shows up with File Format options:Crystal Reports (RPT) PDF Microsoft Excel(97-2003) Microsoft Excel(97-2003) Data-Only Microsoft Word (97-2003) Microsoft Word (97-2003) Editable Rich Text Format (RTF) XMLhow to remove some of these options so that end users wouldn't see it?
View 1 Replies
Oct 5, 2010
I have use embedded code to assign the value to label's text property.But the assign value is not rendering.Here is my code sample,
<%lblProposedYear.Text="Hello"%>
I can not display the text "hello" at the time of page load.
View 2 Replies
Aug 4, 2010
i have a problem with autocomplete control i used in my page, but it does not works so, i do not know how to debug it for finding some problem i tried also to create new page and insert only textbox and autocomplete control...again does not works.... which is wrong?
[Code]....
[Code]....
View 3 Replies
Mar 10, 2011
I have created an asp.net usercontrol that should list users in a number of applications. For that purpose, the control renders a repeater (foreach application) which in turn renders a gridview (with users for that application).
The control renders fine, except the fact that columns in the gridview are not sortable. Nothing happens (no postback) when clicking the headers. Apparently, no JavaScript is rendered to perform the postback when clicking the header.
This is the code:
[code]....
View 1 Replies
Aug 12, 2010
How to use image in Custom Server Control ?
View 1 Replies
Dec 26, 2010
I have a main silverlight control named MainPage.xaml in an asp.net web site.
I want to dynamically add and remove control at run time.
So, I have created another control Top10.xaml and added to selected canvas area on MainPage.xaml as described on this page(Click Me):
Now i need to modify Top10 visibility in MainPage.xaml dynamically when a button is clicked on MainPage.xaml using C# code in MainPage.xaml.cs.
View 1 Replies
Nov 15, 2010
I have a simple page createuser.aspx
on that page is a custom control userdetails.ascx
[code]....
But is the use of a control if i have to place the methods in every page, might as well copy paste the whole this.
From this i assume that it can be done differently, properly.
View 1 Replies