none
How to use Object Tag RRS feed

Answers

  • Following is the simple way by which you can use object tag.

     protected override void Render(HtmlTextWriter writer)
        {
            string objectTagID = "outputObject_" + base.UniqueID;
            writer.AddAttribute(HtmlTextWriterAttribute.Id, objectTagID);
            writer.AddAttribute(HtmlTextWriterAttribute.Name, objectTagID);
            writer.AddAttribute(HtmlTextWriterAttribute.Width, "100%");
            writer.AddAttribute(HtmlTextWriterAttribute.Height, "100%");
            writer.AddAttribute(HtmlTextWriterAttribute.Type, "text/html");
            writer.AddAttribute("data", "http://localhost:60634/Jquery/Default.aspx");
            writer.RenderBeginTag(HtmlTextWriterTag.Object);
            writer.RenderEndTag();
        }


    Suyog Mahindrakar

    Friday, October 5, 2012 6:01 AM

All replies

  • Following is the simple way by which you can use object tag.

     protected override void Render(HtmlTextWriter writer)
        {
            string objectTagID = "outputObject_" + base.UniqueID;
            writer.AddAttribute(HtmlTextWriterAttribute.Id, objectTagID);
            writer.AddAttribute(HtmlTextWriterAttribute.Name, objectTagID);
            writer.AddAttribute(HtmlTextWriterAttribute.Width, "100%");
            writer.AddAttribute(HtmlTextWriterAttribute.Height, "100%");
            writer.AddAttribute(HtmlTextWriterAttribute.Type, "text/html");
            writer.AddAttribute("data", "http://localhost:60634/Jquery/Default.aspx");
            writer.RenderBeginTag(HtmlTextWriterTag.Object);
            writer.RenderEndTag();
        }


    Suyog Mahindrakar

    Friday, October 5, 2012 6:01 AM
  • Hi Suyog,

    Thank you very much.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, October 8, 2012 6:56 AM
    Moderator