일반적인 경우
string sScript;
sScript = "<script type=\"text/javascript\">";
sScript += " .. ";
sScript += "</script>";
this.ClientScript.RegisterStartupScript(this.GetType(), "setData", sScript );
Ajax Update Pannel 을 사용한 경우
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, this.GetType(), "setData", "javascript: SetData('" + sCode + "');", true);
'asp.net with c#' 카테고리의 다른 글
코드 블록 설정 (0) | 2013.06.19 |
---|---|
스크롤 끝으로 화면 이동하기(ListBox, ListView, TextBox) (0) | 2012.06.19 |
(펌).NET에서 javascript escape,unescape 함수와 같은 역할을 하는 것은? (0) | 2012.02.03 |
c# 연산자 (0) | 2012.02.01 |
DataTable에 PrimaryKey 설정 (0) | 2012.01.10 |