input losing src

前端 未结 4 1772
野性不改
野性不改 2021-01-24 23:17

If I use the following code without runat=\"server\" the input\'s src works fine and I see the image coming through.

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-25 00:01

    if jQuery is an option than you could try this:

    
    ...
    

    Update: Another option is to create a HttpHandler with processing like this

    public void ProcessRequest(HttpContext context)
    {
      var testButtonImageUrl = "https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamic-image";
      context.Response.Redirect(testButtonImageUrl);
    }
    

    add in web.config path to handle image.img or whatever and update aspx

提交回复
热议问题