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.
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.
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.
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.
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.............
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.
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
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?
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.
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
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.
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.
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:
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?
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
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.
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:
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?
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.
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?