HyperLink
<a href="datalist.aspx?sid=" + <%# Eval("CategoryID")%>> 這個好像不行
NavigateUrl='<%#"~/trace/pic_view.aspx?annex_oid=" + Eval("annex_oid")%>'
<asp:LinkButton ID="LinkButton1" runat="server"
CommandArgument='<%# Eval("annex_oid") %>' onclick="LinkButton1_Click"><%# Eval("annex_name") %></asp:LinkButton>
LinkButton:
<asp:LinkButton
runat="server"
PostBackUrl='<%# string.Format("~/News.aspx?id={0}", Eval("id")) %>'
Text="Click"
/>
<asp:ImageButton ImageAlign="Middle" ID="ImageButton2" runat="server" ImageUrl="~/sysimpage/sharp/movies.jpg" PostBackUrl="<%# "xxx.aspx?moviedid=" & Eval("movies") %>" />
<asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/App_Themes/Default/images/Icon/IconAdd.gif" NavigateUrl=<%#GetUrlString(Eval("temp_code").ToString(),Eval("funcid").ToString()) %>></asp:HyperLink>
<asp:HyperLink ID= "HyperLink1"
NavigateUrl='<%#"About.aspx?ID="+DataBinder.Eval(Container.DataItem,"產品ID")+"&Name="+DataBinder.Eval(Container.DataItem,"產品價格")%>'
<asp:HyperLink ID="PP_a" runat="server"
NavigateUrl='<%#"~/Products.aspx?id="+Eval("id") %>'> //這個ok
沒有留言:
張貼留言