How to connect strings in HTML?

  • Thread starter Thread starter Liu Xuesong
  • Start date Start date
L

Liu Xuesong

<asp:HyperLink ID="DeleteLink" NavigateUrl="ChapterManger.aspx?CourseID=" + '<%# DataBinder.Eval(Container, "DataItem.course_id") %>' Runat=server>Delete</asp:HyperLink>

I want to connect the strings with blue, but failed, How to do?
 
Hi,

NavigateUrl='<%# "ChapterManger.aspx?CourseID=" + DataBinder.Eval(Container, "DataItem.course_id").ToString() %>'

Good Luck
Adnan

<asp:HyperLink ID="DeleteLink" NavigateUrl="ChapterManger.aspx?CourseID=" + '<%# DataBinder.Eval(Container, "DataItem.course_id") %>' Runat=server>Delete</asp:HyperLink>

I want to connect the strings with blue, but failed, How to do?
 
Back
Top