ASP.net page without a code behind

前端 未结 6 1848
小鲜肉
小鲜肉 2020-12-13 11:48

I have an ASP.Net page with a C# code behind.

However, I\'ve been asked to not use a code behind - so that it will be easier to deploy in SharePoint.

Is the

6条回答
  •  执念已碎
    2020-12-13 12:40

    yes on your aspx page include a script tag with runat=server

    
    

    You can also use classic ASP Syntax

    <% if (this.MyTextBox.Visible) { %>
    Only show when myTextBox is visible
    <% } %>
    

提交回复
热议问题