분류 전체보기590 ntext 필드 update 로 string 붙이기 CREATE TABLE test (text_test ntext) UPDATE dbo.test SET text_test = 'TEST_' + CONVERT(VARCHAR(1000),text_test) 2009. 5. 12. 팝업에서 처리후 부모창 새로고침 .net 에서 팝업을 뜨우고 팝업에서 DB 처리후 부모창을 reload() 하면 팝업이 다시 뜬다.. Ispostback 을 처리해서 이것 저것 막기가 귀찮을 때가 많다.. 팝업에서 DB 실행후 부모창을 새로고침을 이렇게 하니 편하다. ClientScript.RegisterStartupScript(this.GetType(), "Popup", ""); 2009. 5. 11. gridview 에서 엑셀로 export GridView 의 데이타를 엑셀로 Export 할경우 다음과 같은 코드를 사용한다. Response.AddHeader("content-disposition", "attachment;filename=FileName.xls"); Response.Charset = String.Empty; Response.ContentType = "application/vnd.xls"; System.IO.StringWriter sw = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter hw = new HtmlTextWriter(sw); GridView1.RenderControl(hw); Response.Write(sw.ToString()); Response.End(); .. 2009. 5. 4. ajax extention 설치후 web.config 설정 Ajax 를 사용하려 해도 Sys.Application.initialize() 스크립트 에러가 발생된다. Ajax 를 사용하기 위해 web.config 에 추가 해야 한다. 2009. 4. 29. 이전 1 ··· 52 53 54 55 56 57 58 ··· 148 다음