How to pass URL entered into text box to HTML object data attribute.Code snippet shown below:

<form id="form1" runat="server">
    <div>
<h1 >Enter URL</h1>
        <asp:TextBox ID="URLbox" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
    </div>
    </form>

    <div>
        <object type="text/html" ID="URLreceive" data="PASS URLbox VALUE HERE" style="width:100%; height:800px" runat="server"> </object>

    </div>

Thanks.

Related posts

Recent Viewed