How to show “success” message on submit?

前端 未结 4 742
再見小時候
再見小時候 2020-12-20 20:27

Using C# with ASP.NET, how do I show a \"success\" message when my user submits a form? And at the same time say \"The image has successfully saved\", with a link, so that t

4条回答
  •  佛祖请我去吃肉
    2020-12-20 20:53

    İf you want to show message on client side controls, like alert("saccess"); you can use ajax and webmethod in Why doesn't my jQuery code work in Firefox and Chrome? if you want to show message on server side you can use panel, label or div (runat server and have id) and default setting of them, set visiible false, when you show message you can set visible true via code behind..

提交回复
热议问题