小编Dil*_*n87的帖子

如何在页面加载时使用codebehind将html代码部分插入特定位置

我有一个aspx页面,我需要检查并在页面上显示错误消息page_load.错误消息如下:

<div class="errorMessage">The user ID or password you entered does not match our records. Please try again. <br /> 
        You may also securely recover your <a href="#">User ID</a> or reset your <a href="#">Password</a> online. 
    </div>
Run Code Online (Sandbox Code Playgroud)

在解决了一些条件之后,应该将这个代码块添加到页面中......并且该部分和其他一些函数在代码中实现了behide函数 page_load()

我如何只使用page_load()函数中的代码后面而不在aspx文件中内联编写?

html c# asp.net codeblocks code-behind

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

asp.net ×1

c# ×1

code-behind ×1

codeblocks ×1

html ×1