Append at End of .aspx Module

T

Thom Little

The following radio button event handler does toggle the background music on
and off. The only problem is that it adds the two statements at the
beginning of the .aspx module and this shifts everything down when it is
rendered.

How can I append these statements at the END of the .aspx module?

What was the source of your information?

private void rbMusic_SelectedIndexChanged(object sender, System.EventArgs
e )
{
if ( rbMusic.SelectedValue == "Play" )
{
Response.Write( "<embed autostart=true height=\"0\"
src=\"/soundspacific.mid\" width=\"0\">" );
Response.Write( "<bgsound autostart=true height=\"0\"
loop=\"infinite\" src=\"/sounds/pacific.mid\" width=\"0\">" );
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top