Instead of writing out your embed tag and then inserting the actual file name you should look at using a
Literal[
^] and then just output the desired embed tag to the Text property and set the Mode to PassThrough.
So something like this:
<asp:literal id="MyLit" mode="PassThrough"></asp:literal>
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(DropDownList1.SelectedValue){
myLit.Text = "<embed src="\"/Programblade/\"" dropdownlist1.selectedvalue="" width="\"750\"" height="\"550\""></embed>";
}
}
Please note this was written directly into the browser so it probably wont compile.