728x90
728x90
asp.net 코드에서 값 변경
-
cs 코드로 html value 변경C#(asp.net | asp.net core) 2021. 11. 12. 08:04
c# cs 코드로 html의 value를 변경시키려면 아래와 같이 하면된다. input 태그와 로 시작하는 태그로 예시를 들어보겠다. input 태그인 경우 runat="server" 속성을 넣어준다. cs 코드 WRITER.Value = "Programmer"; input 태그의 id.value 로 값 변경이 가능하다. asp: ... 인 경우 cs 코드 WRITERLB.Text = "Programmer"; id.Text 로 값 변경이 가능하다