C# - How To Add Silverlight XAP File To An Existing Webpage

Aug 26, 2010

I've added a new silverlight application to my project. It works fine by itself.

I even have a ClientBin folder in my ASP.NET Web Application with the XAP file of my Silverlight project.

So how I embed that Silverlight project into my existing ASP.NET web application?

View 1 Replies


Similar Messages:

C# - Using Silverlight With Existing Application?

May 5, 2010

This seems like a very basic question but I couldn't find any help on web. If you could provide some link or steps to do this.I have created few basic Silverlight applications which are working fine standalone. I also have a basic ASP.NET application with a solution with around 10 Class Library Projects and 1 website. I want to create a small popup which will have some funtionality using Silverlight.How should I go about creating this application and how to integrate it with my existing application for it to show as a link. I would not want that link to open another application/site.

View 2 Replies

How To Implement Existing Business Layer To A SilverLight 4.0 Application

Sep 20, 2010

Lets assume that I have my own business layer containing my business objects and my business services. And I have decided to create a "SilverLight Business Application" (with SL v 4.0) and I want to use my already used Business Layer from the SL application I plan to develop.

I know that I cannot include a project which is not a SL project.

View 2 Replies

Add More Than One Silverlight Application In Single Webpage?

Apr 22, 2010

I am very new to silverlight application. I have to create silverlight based website . Each page contains each silverlight application. Let me know how to do that. How to integrate on single webpage.

View 2 Replies

Embedding Silverlight App Into .net Webpage For Smoother Transition?

Sep 23, 2010

I have a pure silverlight website with navigation. Im worried about the customers that are hitting the website and are leaving straight away because they are have to have the SL plugin installed and they also have to wait for the 1.5 meg xap file to download.

The first page of the silverlight application is the login/registration page where the user must login or register to proceed to any other page in the site. Im thinking about swapping this page out for an ASP.net MVC webpage. So when the user hits the site the first page loads up automatically (since it will be the ASP.net MVC part of the site) and as they are signing up or logging in, the silverlight app is downloading in the background, or if they dont have the plugin than i will handle it a bit more gracefully. Once they log in it will pass them over to the silverlight app.

View 3 Replies

Can Embed A Silverlight Sketchflow Player In Webpage

May 12, 2010

I'm new to silverlight and sketchflow. I'm getting on great with creating prototypes and can export to Word etc.

I would really like to embed a prototype in another web page - is this possible and how would I go about it?

View 1 Replies

Web Forms :: Use A Masterpage In Already Existing Webpage?

Dec 14, 2010

how could i use a master page in a already existing web page...

View 8 Replies

Web Forms :: File Upload Control Does Not Replace Overwrite Existing File?

Jun 13, 2012

I hv a file upload control which save files in folder upload_html. When I upload file of same name which already exists upload_html folder it does't replace that file.........

I want that file to be replaced from that folder.............

View 1 Replies

Web Forms :: Add A File Upload Progress Bar To The Existing File Uploader?

Jan 10, 2010

Is there a way to add a file upload progress bar to the existing .net file uploader? I have an uploader on my site that has all kinds of things tied to it that I can't change to use an AJAX uploader. Or as far as I know I can't. So I was wondering if anyone knew how to add the progress bar to the asp.net uploader.

View 4 Replies

Web Forms :: How To Replace Existing File With Confirmation When Uploading File

Nov 20, 2013

In my asp.net project i have a folder (folder name  "Data").

I upload .pdf file and save the .pdf file in My Data folder.

In same day if i upload same name file then the previous file is overwrite without any message.

So I would like to know, how can i show a message like ("same name file is exit ,Do u want to replace it").

View 1 Replies

Download Existing File From IIS Results In File Does Not Exists (404)?

Mar 25, 2010

I have a full working web site that i ported to a new hosting company. In some pages i have links to PDF on the server (they do exist!) On the old server no problem. On the new one when user clicks on the link : error 404 file does not exist.. Should i look in the web.config ? i don't know where to start

View 3 Replies

Uploading File(s) To Webserver In Silverlight (C#)?

Jan 26, 2010

Alright, so i have a silverlight application,

it opens a filedialog, gets the selected file, transfers it to asp.net which saves it to the server, but i want to know how to implement a progress bar for it. for big files, and multiple file uploads, i will need to know the progress of the file upload to the server, is this possible?

View 1 Replies

C# - Silverlight 4 : Uploading File To Server?

Sep 15, 2010

Here is an easy one:I need a stable simple file uploader with a progress bar, I have found lots of fancy ones from the search. However, I need the community opinion on which ones to go with? Tutorial links would be appreciated.BOUNTY: I have a FileStream which I would like to upload to a server, below is a sample server server URL:string uploadUri;string SavedFileName = "testXRay.jpg"
uploadUri = @"http://localhost/MyApplication/Upload/Images/" + SavedFileName;I am adding a bounty in hope to get a working solution which I could use from my SL application. MyApplication is hosted in IIS.

View 3 Replies

VS 2010 - Reading Local File With Silverlight?

Mar 29, 2011

it may not have to do with silverlight as such, but a "security" issue. I appologize if that was wrong.

I´m having a go at silverlight...

I want to display large amount of data in good looking charts. Ideally, I would use a web service. However none of the tutorials I´ve watched works. There´s always some component or class missing.

So I figured I´d do it the "ugly" way, creating a xml file from a dataset, and then reading it in the silverlight app.

Now when debugging, I use a local file, which is apparently not permitted

But there must be a way around it right?

View 2 Replies

Silverlight - Optimize Loading An XAP File With A Website?

Jun 10, 2010

I've been developing a game using Silverlight 4 and silversprite (http://silversprite.codeplex.com/)

This game is HEAVILY content dependent, using a lot of audio and images. My content folder is around 90 mbs worth of stuff. And because of that, my XAP file is around 60 MB, and takes 5 minutes to download from the website before any user can start playing.

I am using Visual Web Developer 2010 to create my site and load the XAP. Is there a way where I can take content out of my XAP and put it in my ASP.net site project? Or perhaps upload my content files to the site's storage?

This would make my XAP file much quicker to download.

View 2 Replies

C# - Display File Type Icon In Silverlight?

Mar 29, 2011

I have this situation where I need to display a bunch of files pulled from a Sharepoint site in a Silverlight application. I use a WCF service to get the data from the Sharepoint site.

So what I have is file names with their corresponding extensions. What I need to do is, display the files in the Silverlight application with their corresponding file type icon and file name. The following is the Heirarchical data template I use to display the files in the Silverlight application.

<sdk:HierarchicalDataTemplate x:Key="FileTemplate">
<StackPanel Orientation="Vertical">
<Image x:Name="imgFile" Source="{Binding FileImage}" Height="35" ></Image>
<TextBlock x:Name="txtFile" Text="{Binding FileName}"></TextBlock>
</StackPanel>
</sdk:HierarchicalDataTemplate>

Where FileImage and FileName are strings.

PS: The reason I don't have file type and size is because I using Sharepoint web services and XMLReader to get the information about the files.

View 1 Replies

Web Forms :: Embed Silverlight App In Aspx File?

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

C# - Automatically Open File After Downloading In Silverlight 4?

Dec 9, 2010

I am creating an excel spreadsheet server side and downloading to the client via a Silverlight front-end. It is started by the user clicking a button and being presented with a SaveFileDialog. Once the user enters a file name then silverlight starts an asynchronous call to a web service and when finished returns a byte array which is written to wherever the user requested to save it. This all works fine.How do I then automatically open this file on the client's PC?

View 1 Replies

Hosting Silverlight Xap File - Only White Screen Displayed

Feb 17, 2010

I have a SL 3.0 xap I want to host in a ASP.NET website, I have access to the XAP file and I have created a HTML page to host the SL component.

When I access the page all I see is a white screen where the SL component should be, SL is loaded but the component is not displayed.

This is the HTML code for the SL div.

<body>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="http://lonmw32795/SliverlightRESTfulWebservice.Web/ClientBin/SliverlightRESTfulWebservice.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>
</form>

View 3 Replies

Silverlight 3 Or 4 Multiple File Upload And Resize Control

Sep 1, 2010

Where can I find a silverlight 3 or 4 user control that contains multiple file upload and resize capability?

UPDATE:This will be used for uploading images. We'd like to resize the images prior to posting up to the server.

View 2 Replies

C# - PlatformNotSupportedException When Saving A File From Silverlight Through A Generic Handler

Jul 30, 2010

I have a Silverlight application hosted in an ASP.NET site, through which I'm starting an HttpWebRequest to a Generic Handler in order to save a CSV file to the user's machine.

From the Silverlight app, a Uri is constructed with parameters to make the CSV file server-side. A button is clicked which triggers the following:

string httpHandlerName = "HttpDownloadHandler.ashx";
// CustomUri handles making it an absolute Uri wherever we move the handler.
string uploadUrl = new CustomUri(httpHandlerName).ToString();
UriBuilder httpHandlerUrlBuilder = new UriBuilder(uploadUrl);
httpHandlerUrlBuilder.Query = string.Format("{3}startdate={0}&enddate={1}&partnerId={2}", startDate, endDate, partnerId, string.IsNullOrEmpty(httpHandlerUrlBuilder.Query) ? "" : httpHandlerUrlBuilder.Query.Remove(0, 1) + "&");
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(httpHandlerUrlBuilder.Uri);
webRequest.Method = "POST";
webRequest.BeginGetResponse(new AsyncCallback(GetResponseCallback), webRequest);

Now here is the ProcessRequest code from the HttpDownloadHandler.ashx

public void ProcessRequest(HttpContext context)
{
_httpContext = context;
string partnerId = _httpContext.Request.QueryString["partnerId"];
string startDate = _httpContext.Request.QueryString["startDate"];
string endDate = _httpContext.Request.QueryString["endDate"];
ExportCsvReport exportCsv = new ExportCsvReport();
_csvReport = exportCsv.ExportMemberRegistrationReport(partnerId, startDate, endDate);
context.Response.Clear();
context.Response.AddHeader("content-disposition", "attachment; filename=Report.csv");
context.Response.ContentType = "text/csv";
context.Response.Write(_csvReport);
}

Here is the HttpResponse header information that comes back when the Save File Dialogue refuses to appear:

{System.Web.HttpResponse}
Buffer: true
BufferOutput: true
Cache: {System.Web.HttpCachePolicy}
CacheControl: "private"
Charset: "utf-8"
ContentEncoding: {System.Text.UTF8Encoding}
ContentType: "text/csv"
Cookies: {System.Web.HttpCookieCollection}
Expires: 0
ExpiresAbsolute: {1/1/0001 12:00:00 AM}
Filter: {System.Web.HttpResponseStreamFilterSink}
HeaderEncoding: {System.Text.UTF8Encoding}
Headers: 'context.Response.Headers' threw an exception of type 'System.PlatformNotSupportedException'
IsClientConnected: true
IsRequestBeingRedirected: false
Output: {System.Web.HttpWriter}
OutputStream: {System.Web.HttpResponseStream}
RedirectLocation: null
Status: "200 OK"
StatusCode: 200
StatusDescription: "OK"
SubStatusCode: 'context.Response.SubStatusCode' threw an exception of type 'System.PlatformNotSupportedException'
SuppressContent: false
TrySkipIisCustomErrors: false

When I navigate to localhost/HttpDownloadHandler.ashx while the site is up, without initiating it from within the Silverlight app - the Save File Dialogue appears just fine, it seems to be a case where Silverlight is not accepting the response header properly.

View 2 Replies

C# - How To Overwrite Existing Log File

Jun 21, 2010

How to "overwrite existing log file" ??? I have tried to set attribute property <appendToFile value="false" />. but still log file is not getting overwrite. My config file setting is as follow:

<log4net>
root>
<level value="DEBUG" />
<appender-ref ref="LogFileAppender" />
</root>
[code]...

View 3 Replies

Possible To Map A New File Extension To An Existing Handler

May 18, 2010

I have a scenario where my application is going to be publishing services that are consumed by both PC's and mobile devices, and I have a HTTPModule that I want to only perform work on only the mobile requests. So I thought the best way of doing this was to point the mobile requests to a different file extension and have the HTTPModule decide to process only if the request targets this new extension.

I don't need a custom HTTPHandler for the new extension; I want to program the services like a normal .ASMX service, just with a different extension.

First, can I do this? If so, how do I do it so that requests to my new extension are handled just like .ASMX requests?

Second, is this the right approach? Am I going about separating and managing the mobile vs. PC requests the wrong way?

View 1 Replies

Stamp The Existing Pdf File And Save It Again?

Dec 7, 2010

I want to stamp first page of any existing pdf file with any text enter by the user and save it again or overwrite the file. I found some article about it on google but all are either create a new pdf file or save the stamped file in new pdf file. I want to save the stamping in existing file.

View 1 Replies

Check What Is In The Fileupload Is A Proper And Existing File?

Jul 15, 2010

I have on my page a fileUpload control. -

<asp:FileUpload ID="FileUpload1" runat="server" />

and a save button.

When I browse and pick a file and press save the code works fine. However if I manually type rubbish into the fileupload and press save nothing happens.How can I get the save button to work so that I can check what is in the fileupload is a proper and existing file?

View 12 Replies







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