Call code behind method from aspx page

前端 未结 4 1211
一向
一向 2021-01-13 06:55

i have an image tag like

\' /> 

and in

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 07:57

    the <%# .. %> is applied only during data binding. One solution is to manually call DataBind()

    Try

    protected void Page_Load(object sender, EventArgs e)
    {
            ImgProduct.DataBind();
    }
    

提交回复
热议问题