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\">" );
}
}
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\">" );
}
}