Play Dynamically Generated WAV File On Client Click?

Dec 30, 2010

I'm trying to play a WAV file that I generate dynamically in a HTTP handler and setting the NavigateUrl property of HyperLink control:

<asp:HyperLink runat="server" NavigateUrl="~/ServeAudio.ashx" Text="Play Sound" ImageUrl="~/images/speaker_louder_32.png"
ToolTip="Play Sound"></asp:HyperLink>

But when I click on that link, it opens Windows Media Player - I don't want that. I just want the sound to play.

I have also tried using a few of the jQuery plugins and they seem to work if I have have a fixed URL to a WAV file but they don't work if I set the URL to my HTTP handler.

View 1 Replies


Similar Messages:

Web Forms :: Client ID Of A Dynamically Generated Control?

Feb 23, 2010

I've recently added a Master Page to my site,but realized that it's caused some problems in my existing JavaScript setup.I am able to use the following code in most places without any issue to get the ClientID: '<%=myControl.ClientID%>'

The problem I have encountere is that I have several pages that add controls dynamically,and then execute events based on an ID that's passed in,where I can't use this line,because I won't know the ID of the control I'm trying to access until the Javascript executes.Here's a simplified version of the problem:

When the page runs,it creates n textboxes dynamically,and appends a relevant ID from the database to the end of the ID.Let's say the page has added 3 textboxes with the following IDs:

myTextBox1

myTextBox7

myTextBox115

Later,a javascript event fires,and I need to be able to access the control through JavaScript like this:

myJavaScriptFunction (controlID)

{
myvar = document.getElementById('myTextBox' + controlID);
}

View 1 Replies

Web Forms :: Click On NewButton Does Not Validated Dynamically Generated Textboxes?

Jun 15, 2010

I have created a page with a textbox and a button, when you enter a number in textbox and click on button, the onCommand event generates dynamic textboxes with dynamic requiredFieldValidators in the placeHolder and a newbutton. Now when I click on newButton, it does not validated dynamically generated textboxes, it does postback and every dynamic object disappear. The sample code is provided below.

[Code]....

View 3 Replies

Dynamically Generated Buttons In GridView - OnRowCreated And Button.Click Options

Feb 28, 2010

I have a GridView control bound to an AccessDataSource. After selecting a row I'm creating a table inside the selected row. I'm adding Buttons to this table. Their Click event never gets fired.I read similar problems' solutions involving recreating the buttons and stuff

View 7 Replies

Save The File Automatically After The File Is Dynamically Generated

Jan 28, 2011

I have converting some pages into the PDF/Documents.

My requirement

1)Generate dynaimaclly document (Done already)

2)Save the file (Not done)

3)Mail the saved files as an Email to the user (Not done)

View 3 Replies

Use A Dynamically Generated File As ConfigSource In Web.config?

Jan 4, 2010

Is there a way to use a generated file as a configSource for a web.config section?

In web.config, I tried a simple:

<webParts configSource="webpartsConfig.aspx" />

where webpartsConfig.aspx just spits out XML when accessed normally, but not as a configSource. (The literal source code is included as-is, giving an error.)

Motivation for this solution: I have different configuration variables locally and online, and I don't want to juggle multiple config files.

View 1 Replies

Making A Dynamically Generated File Available For Download?

Jan 1, 2011

My goal is to take some form inputs and prompt the user to download a summary of everything once a certain button is clicked. I have no need for the file once it is downloaded and so I'd like to have a solution where the data is streamed directly to the user. My current solution doesn't even prompt the user for a download. Can anyone point out what I'm doing wrong?

I've got it wrapped as a webmethod and so I needed to add a definition of the _Default page class so I could access certain things.

[Code]....

this wasn't mentioned earlier but the webmethod is being called by an AJAX request!

View 2 Replies

AJAX Download Manager / Bunch Of Dynamically Generated Links To Zip File?

Jan 25, 2011

I currently have an asp.net page which a loggd in user goes to and theres a bunch of dynamically generated links to zip files that he or she owns and can downloads.Currently they click download and I have no way of knowing if it completes succesfully etc so can't log it. I do log the attempt.Is there are good download manager or solution I can use so they will have progress bars on the site, they can queue multiple ones up and most importantly I can track failed and successful downloads.

View 1 Replies

Forms Data Controls :: Create Zip File Of Dynamically Generated Excel Sheet In C#?

Sep 8, 2010

I want to give product details in excel sheet but that excel sheet should be zipped and then pass it to user.

I know how to create excel sheet from database but how to pass that excel sheet into folder and then zip that folder..?

View 1 Replies

Visual Studio :: How To Play Sound At Client Machine

Jun 30, 2010

i use vs 2008 ,

i have timer in my web page,at first i use this code to play the sound(i use this

method in other function):

[Code]....

the problem is that sound file is repeated every one second with my timer.

but this problem did not happen if i use cod(NO1)

View 3 Replies

Web Forms :: How To Play Flash Video In Tag Dynamically

Jan 29, 2010

i have one confusion. i have added following code to my aspx page for playing video:

[code]....

now here i have one cofusion. i want to play video dynamically. how i can set "../Downloads/Videos/Video2_Part3" Dynamically??

can i do with this approarch, or i have to go for some alternative??

View 6 Replies

Web Forms :: Play Sound On Button Click?

Feb 8, 2010

Is there any good way of playing a sound when clicking a button on my web page?? It works great on my local mashine but won't work on the server! I don't want any windows media player or any other window to pop up! Just to play a wav sound!

This is the code that works on my local mashine!

[Code]....

View 5 Replies

AJAX :: Whenever User Input Data In Form And Click On Submit Then There Play Animation Please Wait?

May 4, 2010

want animation that whenever user input data in form and click on submit then there play animation please wait

View 2 Replies

Play A .wav File?

Mar 11, 2010

how i can play a .wav file in my web application. i am using asp.net mvc with c#. i am very new to using mvc and i need some guidence for the use of views and controllers.

View 4 Replies

Embed Video Without Play Buttons And Infinitive Play

Jul 2, 2011

I would like also to know the way to have an embedded video in my site that will not have the play buttons and play again and again. Is there a way to do that??

View 2 Replies

Mvc Client Side Validation - List All Generated Errors In The Same Div?

Sep 8, 2010

How do I list all generated errors in the same div?

Something like this:

<div id="errors">
<ul>
<li>Email is invalid</li>
<li>Firstname is required</li>
</ul>
</div>

View 1 Replies

Selector For Dynamically Generated ID?

Jan 25, 2011

I have a series of div where the id is tagged with the conventional:

<div id="result<%=order.ID %>">

The handler that submits the form can find out what order.ID is via:

fromInput.split(",")[1]

So how do i get that element concatenated with the static part of the DIV id?

[code]....

View 1 Replies

How To Play Audio File

Mar 5, 2011

I already have my audio file in database (which is in varbinary(max) data type) and I could retrieve said music as byte(). But the problem is I don't know how to play it..

View 3 Replies

Play .swf File In Web Page

Aug 19, 2010

I have created a web-page where I have to paly .swf file. My code is working fine and swf file is played perfectly in Internet Explorer but not in mozilla firefox. Below is my code :-

[Code]....

View 3 Replies

Jquery - Play Ad Before Flv File?

Feb 4, 2011

i am using jw player to play an flv file including captions. this seems to work fine. but now i need to play a ad before my flv file starts playing?or can we play flv files one aftre the another using jquery

View 1 Replies

Play A Wmv File In Webpage?

Mar 8, 2011

Is there a way to play a wmv file in my asp.net webpage? Will an end use need install some control when he access the webpage?

View 5 Replies

Web Forms :: Dynamically Generated DropDownLists?

Jun 30, 2010

I have a dropdownlist on my page which has autopostback set to true. On postback I populate a runat server div with a bunch of other DropDownLists. I then have a button which does another postback to save the selections. Because the second set of dropdownlists are dynamically generated I cannot for the life of me figure out how to get their selected values?

1st DropDownList

[Code]....

Then when I try get the dropdownlists using a foreach on the div that I added the control to it does not work. They are populating fine, its just on the button click. I have tried EnableViewState = true on the dropdownlists and my code is correct because if I code them into the aspx then it works, its something to do with the state.

View 8 Replies

ImageButton Generated Dynamically - Get Name Of Image

May 11, 2010

i have imagebutton which is generated dynamically. say i have 20images, if user clicks i need to get the name of the image.

View 5 Replies

Dynamically Generated HTML In C# To Be Formatted?

Oct 31, 2010

I have an ASP.NET web forms site with a rather large menu. The HTML for the menu is dynamically generated via a method in the C# as a string. I.e., what is being returned is something like this:

<ul><li><a href='default.aspx?param=1&anotherparam=2'>LINK</a></li></ul>

Except it is a lot bigger, and the lists are nested up to 4 deep.

This is written to the page via a code block.

However, instead of returning a flat string from the method I would like to return it as formatted HTML, so when rendered it looks like this:

<ul>
<li>
<a href='default.aspx?param=1&anotherparam=2'>LINK</a>
</li>
</ul>

I thought about loading the html into an XmlDocument but it doesn't like the & character found in the query strings.

View 4 Replies

Web Forms :: How To Add A Confirmation Message On Client Click When Click A Button

Oct 25, 2010

i want to add a confirmation msg when click a button to delete my record, i cannot add the on client click msg on design page, due to i need do the checking for the checkbox before pop up the confirmation onclientclick msg.

[Code]....

View 5 Replies







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