D
Dmitry Duginov
I have a FormView and a HyperLink on the page.
If I use the following code behind (hooked up to Hyperlink's OnLoad event),
it renders fine
protected void link_Load(object sender, EventArgs e)
{
link.NavigateUrl = String.Format("~/Carrier/AddNew.aspx?Id={0}",
FormView1.DataKey.Value);
}
However, I was not able to achieve the same goal declaratively, just using
<%# ... %> syntax in .aspx
Where's the catch?
Dmitry
If I use the following code behind (hooked up to Hyperlink's OnLoad event),
it renders fine
protected void link_Load(object sender, EventArgs e)
{
link.NavigateUrl = String.Format("~/Carrier/AddNew.aspx?Id={0}",
FormView1.DataKey.Value);
}
However, I was not able to achieve the same goal declaratively, just using
<%# ... %> syntax in .aspx
Where's the catch?
Dmitry