Friday 6 June 2014

iframe src attribute in C#

iframe src attribute in C#:

iFrame src changing c# 


aspx:

   <iframe name="iframeanimfx"  id="iFranmeGame" runat="server"
             scrolling="no" frameborder="no" height="400px" 
             width="750px">
  </iframe>



aspx:cs:

        DataSet ds = new DataSet();
        ds = objDal.PlayGame(GameID);
        if (ds.Tables[0].Rows.Count != 0)
        {
            iFranmeGame.Attributes["src"] = 
                          ds.Tables[0].Rows[0]["Game_Path"].ToString();
        }