Web Forms :: MediaElement Is Getting End Automatically
Nov 11, 2010
I am trying to play wave file in silverlight using MedeaElement.I forward and backward using the code
me.Position = TimeSpan.FromSeconds(me.Position.TotalSeconds + 2);
me.Position = TimeSpan.FromSeconds(me.Position.TotalSeconds - 2);
while i change the position continuously MediaElement is getting End. For a example i am playing a 5min file i am changing the position some 20 times forward and backward ,the MediaElement is getting End Automatically.
View 1 Replies
Similar Messages:
Nov 18, 2010
I am trying to figure out how to persist the playing of a Silverlight MediaElement playing within a Silverlight User Control embedded in an ASP.NET during postback.
The scenario goes:
Have a media player on a site, press play, continue navigating through site while the music continues playing.
What it does right now:
Obviously the object gets loaded anew on each postback or page redirect (even if it's back to the same page IE: default.aspx).
I've seen samples of how to persist the state of a Control on postback and even complex data through cross-page postback. But nothing that covers my specific case.
Other particulars:
Silverlight 2
ASP.NET
C#
My default.aspx:
[code]....
View 1 Replies
Dec 15, 2010
I am having the hardest time figuring this problem out. I have a Silverlight 4 application that loads audio and video files from URLs. The URLs are the same domain as the application is hosted on and it works great for video.The URLs are actually asp.net mvc controllers that are responsible for reading the file from a shared location on and the server and serving back a filestream. The URLs look something like this:http://localhost:31479/CourseMedia?path=omnisandbox1ILMSShare2Demo-Fire+BehaviormediaDisclaim.wma&encrypted=False&id=00000000-0000-0000-0000-000000000000
If I put the URL directly into the browser the file loads and plays in windows media player just fine, and if I use a separate test silverlight project to load the url it also works, but for the life of me I can not get it to work properly in my main project.This is the routine I use to actually do the source setting:
protected void SetPlayerURL(MediaElement player, string url)
{
if (player != null && url.Length > 0)
[code]...
View 1 Replies
Apr 12, 2010
my requirement is to delete database value automatically on a given date. In my application i am inserting records in database, now admin will give the expiration date for the value inserted in db. On that particular date, the value should be deleted automatically. I want a logic for this in asp.net. I am using SQL 2005 with C#.
View 5 Replies
Jul 14, 2010
I want to use the random numbers ....and it must have to be updated automatically....
View 3 Replies
May 25, 2010
have this "customer" list. i have a page that selects one of them and when i click show report button- it will redirect to a new page with gridviews and labels on it. (its the customer purchases report page).y problem is i want to automatically checks every customer, if he have purchases, it will print automatically to the printer), that i wont select every one of them from the list and clicking show 'report button'
View 5 Replies
Sep 14, 2010
I have asp table in my webpage. whenevr I add any control in my table then this tag "<span style="display: inline-block;">" is added automatically when I run my page. hw can i prevent it?
View 3 Replies
Mar 10, 2010
iam having change password textbox i have written code on textchange so i give autopostback truewhen i give text on change password textboxand i press tabthe textbox is automatically reset why?this is happening
View 8 Replies
Jan 30, 2010
In my application i am saving the worddocuments in a folder,I should delete all the prev date files.can i do it automatically? and i am not using any database for the application
View 21 Replies
Jan 13, 2010
Is there a way to change multiview automaticlly?I mean if i have multiview with 5 view inside is there way to switch between them without button let say 15 second for each view?
View 3 Replies
Jan 11, 2010
In my webform, I have placed several int variables to store values. While debugging the application, I surprised that I am getting the value stored in those variables in Hexadecimal format. I am not sure how this is happening. I didn't change any settings. Is this because of some settings problem?
However I verified the hexadecimal value in the sql server using the following query:
[Code]....
and the return result, 10003, which is correct. But I am not sure how it is converting to hexadecimal. This is not happening earlier.
View 4 Replies
Mar 29, 2011
I keep a label on the master page of my site that indicates when the site was last updated. I wanted to know if there was a quick and easy way to have the system update the date in the label everytime i compile the solution so the last updated field is always correct even if i happen to forget to update it manually.
View 3 Replies
Oct 14, 2010
If the logged in user either exits out of a directory OR closes the browser......I want to automatically log them out. IS this possible and where is it done? What code can be used for these actions?
View 3 Replies
Mar 2, 2011
how to get control over the Massegbox pup Up prompet ..i login withe C# code to webpage and want to dawnload file form there after chosing day parameter the ansews i have get from javascript the dont give me URL just massegbox show up and i have to click ok to donwload it or cancel!!! i want to download the file without showing the Messegbox and clicking ok wiche C# code how can i get it working? i tried:
1- withe webclient but not working idont have URL
2-withe response i got error iwill be happy if any one got agood ansewr for it.
View 5 Replies
Mar 1, 2010
I try to print page automatically on OnLoad by using
[Code]....
[Code]....
View 5 Replies
Aug 18, 2010
I have deployed my application in the test server, and did the settings correctly, but my websites pages are getting refreshed automatically in less than 2 mins.
View 2 Replies
Apr 21, 2010
I am readin information typed by our customer's and creating a database. We then manually take those responses and type them into another database on line. We do this so that we can track the number of request at each location. My question is there any way I can read the database, one record at a time, and auto populate the online fields. I could then manually press submit if needed.
FYI: The online form is supplied by another sister organization and I do not have a way of changing it.
View 3 Replies
Jan 21, 2010
I'm developing an ASP.NET Website locally using Web Developer Express Edition and publish my site via ftp to the remote host. Problem: Locally I'm using path settings to xml files etc. different from the remote paths. So each time before I publish my site I have to set the remote paths explicitely commenting out the specific lines of code.
Sample:
if(local) {
XDocument loaded =
XDocument.Load(@"<localpath>jobitemssample_" + companyId +
".xml");
else{
XDocument loaded =
XDocument.Load(@"<remotepath>datajobitemssample_" + companyId + ".xml");
}
How can I achieve an automatic setting mechanism on deployment. How do I know how to set local?
View 2 Replies
Jan 8, 2011
i have a web application with sql server 2008 i wanna know if its possible to load the data automatically after its been inserted to DB..i have a alerts table which store message and user name to which the alert is to be send i wanna display the alert msg to user after it has been inserted...
View 3 Replies
Apr 15, 2010
I am creating a web app with sql server 05 and visual studio express 08. There is always live data inserted into my sql tables throughout the day infrequently.
I want to create a web page that will show the data in graphs etc. I can currently show the data present in the database on the web page. HOWEVER what i do not know is how to update the page (graphs) with the NEW DATA that has been inserted into the tables.
I guess I will have to use ajax to change the data shown on the web page automatically. I will also need somesort of triggers to tell when new data has arrived.
View 3 Replies
Dec 13, 2010
I need to send an email to notify students that their choices have been approved or disapprove.For example. When a teacher approved or disapprove a particular student choices on the DropDownList in a DetailView it will automatically send the student an email to notify them that the choices had been approved/disapprove. I need to grab the Student Email, ProgramName, student name in the DetailView so the email will be shown like this:
Example:
From: IAP@gmail.com
Subject : <By Default: IAP Choices Notification>
Message:
Hi, <Student_Name>
Your choice for <Program Name> has been approved
Warmest Regards.
How do I start about doing this function?
View 3 Replies
Feb 24, 2010
I have the following problems on the form: Q.11 when I click the yes box the page automatically scrolls to the top.. what can you do so the focus remains in the same place on the page
[Code]....
View 5 Replies
Mar 28, 2011
I Need to make an application that reads an email automatically (when there is an new email) and delete it afterward , those emails have an attachement that i want to use later.
View 2 Replies
Jul 25, 2010
implementing a way in asp.net to call function automatically after every few minutes to perform various actions on website.
View 5 Replies
Jun 15, 2010
How can I auto add links which starts wtih http://
I wanna do this in my review post project !
View 10 Replies