<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="player" style="position:absolute; top: 195px; left: 802px; height: 300px; width: 450px;"> <param name="url" value="<%=mySrc %>" /> <param name="src" value="<%=mySrc %>" /> <param name="showcontrols" value="true" /> <param name="autostart" value="true" /> <!--[if !IE]>--> <object type="video/x-ms-wmv" data="<%=mySrc %>" width="450" height="300"> <param name="src" value="<%=mySrc %>" /> <param name="autostart" value="true" /> <param name="controller" value="true" /> </object> <!--<![endif]--> </object>
public string mySrc; protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { string filename; DataTable dtable = mes.select(GridView1.DataKeys[e.NewSelectedIndex].Values[0].ToString()); if (dtable.Rows.Count > 0) { filename = dtable.Rows[0].ItemArray[2].ToString(); mySrc =Server.MapPath("~/messages/" + filename.ToString()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)