본문 바로가기

Web Program/Asp.net Lecture41

GridView 에 전체선택 checkbox 를 넣자. GridView 로 리스트를 구성하면 전체선택 Checkbox 구성이 까다롭다.. 기본 제공된 걸로 사용할 수 없다.. 구글을 통해 체크박스를 헤더에 생성해주는 GridView Class 를 보기도 했는데.. 약간의 문제점이 있다. 약간의 팁으로 이를 구성할 수 있다. 와 같이 하면.. 전체 선택이 구현된다.. 너무 편하다~~ 2009. 9. 24.
Gridview image 동적 추가 GridView 에 동적으로 Image 를 넣어보자 aspx 코드 aspx.cs protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { int intNo = 0; intNo = e.Row.RowIndex + 1; e.Row.Cells[0].Text = intNo.ToString(); string strLink; strLink = e.Row.Cells[4].Text.ToString() + "/" + e.Row.Cells[5].Text.ToString(); if (strLink != "") { Image image = e.Row.Fi.. 2009. 8. 26.
Converting CMYK Jpegs to RBG format, Resizing Graphics, & Correcting Resolution. Converting CMYK Jpegs to RBG format, Resizing Graphics, & Correcting Resolution. I was recently building a Photo Upload form for the classifieds section of a clients website. Although the form had the proper validation regarding image type allowed I was hesitant to check for (more on this later) and deny upload of CMYK jpegs. As you may know, they don't show on web browsers. I was hoping to prog.. 2009. 8. 4.
GridView 와 confirm() 함수 연동 삭제 처리 MessageBox.Show() 를 이용해서 Confirm() 를 구성했었다.. 서버에서 메세지가 뜰줄이야.. C# 개념이 복잡하다~~ GridView 에 템플릿 필드를 생성한다. aspx 파일 gridview 내의 필드 항목 aspx.cs 파일 실제 삭제 처리하는곳의 처리는 string strID = e.CommandArgument.ToString(); if (strID != "") { //... 실제 삭제 처리 } 와 같이 처리하면 됩니다. 이렇게 ID 값을 움직이지 않을 경우는 CommandArgument 에 Row Index 값을 넣어주고 cs 에서는 RowIndex 을 가지고 여러 값을 처리 할수 있겠다. 2009. 7. 6.