Blog Content

  • Text 박스에서 포커스 숨기는 방법

    Category ASP.NET on 2010. 7. 5. 14:02

    해당 컨트롤 속성에 그대로 입력하자!! onfocus="this.blur()"

    Read more
  • GridView에서 조건에 따라서 해당 컬럼(필드) 숨기는 방법

    Category ASP.NET on 2010. 6. 11. 15:48

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (DropDownList1.SelectedValue != "A") //조건문 A이면 1번 컬럼 숨긴다! { GridView1.HeaderRow.Cells[1].Visible = false; //GridView 지정된 자리 숨김 해드 부분 e.Row.Cells[1].Visible = false; //GridView 지정된 자리 숨김 컬럼(필드) } } }

    Read more
  • 23. ASP.NET 간단한 메모장 만들기 -3-

    Category ASP.NET on 2010. 5. 16. 19:12

    페이지 하나에 작성/목록을 나타낼꺼에요~ 새 프로젝트에서 페이지를 추가해줍니다~ 추가 - 새항목 - WebFrom ( FrmMemo ) 간단하게 디자인 해주세요. 디자인 코드 소스 입니다. %@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmMemo.aspx.cs" Inherits="ASP.NET_Boards.FrmMemo" %> DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Read more
  • 드롭다운리스트에서 선택된값 텍스트로 가져오기

    Category ASP.NET on 2010. 3. 29. 18:03

    switch (ddlList.SelectedValue) { case "드롭다운리스트 선택값": dr["strDdlColum"] = "1"; break; case "드롭다운리스트 선택값": dr["strDdlColum"] = "2"; break; default: dr["strDdlReq"] = ""; break; } 이보다 간단한 방법 기본 메서드 사용 dr["strDdlColum"] = ddlList.SelectedItem.Text;

    Read more
  • 19.jQuery - 메모장 웹서비스 설계

    Category ASP.NET on 2009. 11. 19. 15:00

    웹 서비스를 사용해서 MS-SQL 연결 사용하기 위함입니다. MemoServices.cs using System; using System.Web.Services; using System.Collections.Generic; using System.Data.SqlClient; using System.Web.Configuration; using System.Data; using System.Web; using System.Web.Script.Services; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Web.Script.Services.Scr..

    Read more
  • 18.jQuery - 메모장 Entity 설계

    Category ASP.NET on 2009. 11. 19. 14:46

    웹 서비스를 사용하여 프로그램을 작성합니다. Entity 클래스를 설계합니다. Entity 설계 후 웹 서비스에 코드를 작성하여 MS-SQL에 작성한 저장 프로시저를 사용하기 위함입니다. MemoEntity.cs using System; public class MemoEntity { #region Num : 번호 private int_Num; /// /// Num : 번호 /// public intNum { get { return_Num; } set { _Num = value;} } #endregion #region Name : 작성자 private string_Name; /// /// Name : 작성자 /// public stringName { get { return_Name; } set { _Nam..

    Read more
  • 17.jQuery - 메모장 DB 설계

    Category ASP.NET on 2009. 11. 19. 14:34

    DB설계입니다. MS-SQL로 작업했습니다. 기본 메모장 테이블 설계와 저장 프로시저를 설계하였습니다. Memos 테이블 설계 Create Table dbo.Memos ( Num Int Identity(1, 1) Primary Key, Name VarChar(25) Not Null, Email VarChar(50) Null, Title VarChar(150) Not Null, PostDate DateTime Default(GetDate()), PostIP VarChar(15) Null ) Go 입력 저장 프로시저 : AddMemo Create Proc dbo.AddMemo @Name VarChar(25), @Email VarChar(50), @Title VarChar(150), @PostIP VarCha..

    Read more
  • 11.ASP.NET - C# ASP.NET 에서 FCKeditor 사용하기 [3]

    Category ASP.NET on 2009. 11. 4. 02:08

    테스트! "Your file has been successfully uploaded" 메세지 박스가 뜨고~! 미리보기 화면에서 선택한 그림이 잘 나타납니다! 결과확인!

    Read more
  • 10.ASP.NET - C# ASP.NET 에서 FCKeditor 사용하기 [2]

    Category ASP.NET on 2009. 11. 4. 02:00

    이어서 다운받은 FCKeditor.Net6_2.6.5 폴더안에 fckeditor 폴더가 있습니다. 이 폴더를 솔루션 탐색기-웹 사이트 프로젝트에 추가시킵니다. (폴더 클릭한 상태로 솔루션탐색기로 드래그 앤 드롭) 1. web.config 파일을 열고 코드를 추가합니다. 24번째 줄에서 되어있는데요... 지우고 타이핑! 2. 솔루션탐색기-fckeditor-fckconfig.js파일을 열고 276,277 줄에서 php로 되어있는거 aspx로 변경!! 3. 솔루션탐색기-fckeditor-ediror-filemanager- connectors-aspx-config.ascx를 열고! 42줄에 return false로 되어져 있습니다. return true로 변경! 그리고 끝! 실행하면 화면이 작으니깐 FCKedi..

    Read more
  • 09.ASP.NET - C# ASP.NET 에서 FCKeditor 사용하기 [1]

    Category ASP.NET on 2009. 11. 4. 01:39

    www.ckeditor.com 사이트에 가시면 게시판에 사용되는 컨트롤이 있습니다. 무료입니다! 다운 받으세요. 다운 받아야할 파일 : FCKeditor.Net_2.6.3 , FCKeditor.Net_2.6.5 당연히 ASP.NET으로 받으셔야 합니다! 이제 ASP.NET에서 적용하는 방법을 알려드립니다. 소스를 이해하는것도 아니고 그냥... "이거 이렇게 해서 되는구나" 하는 정도에요... Visual Studio 2008 실행 - 새 프로젝트 - 웹 사이트 추가! - 이름은 FCKeditor로 했습니다. 일단 그림으로 순서를 보여드리고 아래 순서대로 정리했습니다. 1. 도구상자에서 탭을 추가 합니다. (안하셔도 되지만 저는 목록별로 정리하는 습관이 있어서..;;) 2. 추가한 탭(FCKeditor)에..

    Read more
  • 74.C# ASP.NET - 용어정리

    Category ASP.NET on 2009. 10. 29. 18:22

    Response 개체 : 응답(서버:C#)에서 클라이언트(IE:인터넷) - .Write() : 페이지에 문자열 출력 - .Redirect() : 해당 페이지로 이동 - .Expires : 현재 페이지의 새로고침 기능 ㄴ Response.Expires = -1; 응답캐시 지우기 - .Buffer : 버퍼링 사용 설정 ㄴ Response.Buffer = true; 버퍼링 : 끊어서 보여주는것(메뉴,메인등에 사용하기 적합) - .Flush() : 현재 버퍼 내용 출력 - .Clear() : 현재 버퍼의 내용 지우기 - .End() : 현재 페이지 종료 - .WriteFile() : 파일 출력 - .Cookies[] : 쿠키저장 Request 개체 - .QueryString[] : 넘겨져 온 쿼리스트링 값을 반..

    Read more
  • 73.C# ASP.NET - Ajax를 이용한 시간 출력 3

    Category ASP.NET on 2009. 10. 28. 11:25

    Master 페이지에 Ajax 컨트롤을 적용하여 시간을 출력하는 예제입니다. MasterPage.master 현재시간 : MasterPage.master.cs protected void Timer1_Tick(object sender, EventArgs e) { Label1.Text = DateTime.Now.ToLongTimeString(); } Web Form을 추가 하실때 마스터 페이지에 붙여주기 위해서 마스터 페이지 선택을 체크 하신 후에 추가해주세요 FrmScriptManagerProxy.aspx FrmScriptManagerProxy.aspx.cs protected void Button1_Click(object sender, EventArgs e) { Label2.Text = DateTime.N..

    Read more
  • 72.C# ASP.NET - Ajax를 이용한 시간 출력 2

    Category ASP.NET on 2009. 10. 28. 11:12

    Ajax를 이용한 시간을 출력하는 예제입니다. FrmUpdateProgress.aspx function pageLoad() { } 아래에 오래 걸리는 기능을 구현 (3초 걸리는 작업) 로딩중... FrmUpdateProgress.aspx.cs protected void Button1_Click(object sender, EventArgs e) { // 시간 지연 System.Threading.Thread.Sleep(3000); // 3초 지연 this.Label2.Text = DateTime.Now.ToLongTimeString(); } 결과화면

    Read more
  • 71.C# ASP.NET - Ajax를 이용한 시간 출력

    Category ASP.NET on 2009. 10. 28. 11:00

    Ajax를 이용한 시간을 출력하는 예제입니다. FrmTimer.aspx 타이머 컨트롤 현재시간 : FrmTimer.aspx.cs protected void Timer1_Tick(object sender, EventArgs e) { // 지정된 시간마다 현재 이벤트 핸들러 실행 this.Label1.Text = DateTime.Now.ToLongTimeString(); } 결과화면

    Read more
  • 70.C# ASP.NET - Ajax

    Category ASP.NET on 2009. 10. 28. 10:09

    Ajax ( Asynchronous JavaScript and XML ) 특징 - 검색 페이지 자동완성 기능(AutoComplete) - 부분페이지 랜더링(업데이트, 포스트백) 웹에서 이벤트를 실행하게 되면 전체 페이지가 포스트백이 되는데 Ajax를 사용하게 되면 전체 포스트백이 되지 않고 빠르게 결과를 확인 할 수 있으며 리소스 또한 절약됩니다. Ajax를 사용하고자 하는 영역에 컨트롤을 추가시켜줍니다. 도구상자 - Ajax - UpdatePanel 컨트롤 추가 FrmAjaxWebForm.aspx function pageLoad() { } 전체 페이지 포스트 백(다시 게시) : ASP.NET AJAX 적용 전 부분 페이지 포스트 백(다시 게시) : ASP.NET AJAX => Microsoft Ajax..

    Read more
1 2 3 4 5 6 7 ··· 13