Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

html databind

The Code is working

with page load

{

HyperLink2.NavigateUrl = "ShowForum.aspx?FrmId=" + strForum_Id;

}

but why its not working for

{

page.DataBind();

}

.html as

NavigateUrl="ShowForum.aspx?FrmId=<%# strForum_Id %>"
[313 byte] By [syedwna] at [2007-11-11 10:31:24]
# 1 Re: html databind
hi,

check out this one,

<asp:HyperLink id="HyperLink1" runat="server" NavigateUrl='<%# mywebpage.aspx?CustomerId=" + EmpList.Text %>'> Link </asp:HyperLink>
<asp:TextBox id="EmpList" runat="server" AutoPostBack="True"></asp:TextBox>

and in the code behind,

private void Page_Load(object sender, System.EventArgs e)
{
Page.DataBind();
}

wish you the best,
remya.george at 2007-11-11 23:11:41 >