A Collection of JavaScript Gotchas

Js & Css 2011. 5. 23. 10:02 posted by 무명시인

Summarize C# Control Excel Skills

.Net 2011. 5. 20. 10:33 posted by 무명시인
C#으로 Excel 를 처리하는 방법들을 정리 한 내용입니다.    


http://www.codeproject.com/KB/cs/csharpexcel.aspx


Stored Procedure - 저장프로시져의 내용검색

About DataBase 2011. 4. 25. 10:19 posted by 무명시인
SELECT distinct(OBJECT_NAME(id)) AS SpNm 
FROM syscomments WHERE text like '%문자열%'
MS-SQL 의 저장 프로시져의 내용 중 
원하는 문자열을 포함한 저장 프로시져를 찾는다.       


http://www.codeproject.com/Tips/184495/Find-paricular-word-or-text-from-all-the-stored-pr.aspx


HTML5 Tutorial - W3schools.com

Js & Css 2011. 4. 21. 15:43 posted by 무명시인



HTML5 Tutorial을 볼 수 있는 사이트!
       
HTML5 Tutorial 뿐만이 아니라
       
각 항목(Tag, Form, Reference)가 있는 사이트.      

http://www.w3schools.com/html5/default.asp


10 Best jQuery Menu Plugins

Js & Css/jQuery 2011. 4. 20. 13:59 posted by 무명시인


jquery plugin 중에서 메뉴플러그인 10가지를 소개합니다.

사용하기 편리하더군요 .       

http://www.ajaxline.com/10-best-jquery-menu-plugins

Web Page Layout Without Tables

.Net 2011. 4. 12. 15:10 posted by 무명시인



Table 태그를 사용하지 않고 Layout 을 설정하는 방법을 소개합니다.
        



http://www.codeproject.com/KB/HTML/webpage_layout_no_tables.aspx


엑셀을 출력하는 5가지 방법

Js & Css 2011. 4. 12. 11:31 posted by 무명시인
Solution 1, Export all HTML data to Excel  

Solution 2, Export Data from DataGrid to Excel 

Solution 3, Export Data to Excel without Automation

Solution 4, Export Data from DataSet to Excel

Solution 5, Export Data from Dataview to Excel  
        



http://www.codeproject.com/KB/aspnet/coolcode2_aspx.aspx


내 아이피 알아보기

雜物 2011. 4. 1. 11:01 posted by 무명시인

http://www.whatismyip.com/


내 아이피가 어찌 되는지 !!
알여 줍니다!       

DataTable Excel 출력

.Net 2011. 3. 24. 14:03 posted by 무명시인
DataTable 을 Excel 로 출력할때 쓰는 함수 입니다.
간단하게 작성해봤습니다.
        


public static void ExportExcel(DataTable dt)
{
    StringBuilder sb = new StringBuilder();

    sb.Append("");

    // head
    sb.Append("");

    for (int i = 0; i < dt.Columns.Count; i++)
    {
        sb.AppendFormat("", dt.Columns[i].ColumnName);
    }
    sb.Append("");

    // body
    foreach (DataRow dr in dt.Rows)
    {
        sb.Append("");

        for (int j = 0; j < dt.Columns.Count; j++) sb.AppendFormat("", dr[j]);

        sb.Append("");
    }

    sb.Append("
{0}
{0}
"); string name = string.Format("엑셀_{0}", DateTime.Now.Ticks.ToString()); HttpContext.Current.Response.ContentType = "application/vnd.msexcel"; HttpContext.Current.Response.AddHeader("content", "text/html; charset=utf-8"); HttpContext.Current.Response.AddHeader("content-disposition", string.Format("attachment;filename={0}.xls", HttpUtility.UrlEncode(name))); HttpContext.Current.Response.Write(sb.ToString()); HttpContext.Current.Response.Flush(); HttpContext.Current.Response.Close(); HttpContext.Current.Response.End(); }
1) Set debug=false under compilation as follows:

2) Use Server.Transfer instead of Response.Redirect.

3) Always check Page.IsValid when using Validator Controls

4) Use Foreach loop instead of For loop for String Iteration.

5) Use Client-Side Validation. (but not all the time you have to validate even on the server side)

...
        



http://www.codeproject.com/Tips/49971/While-developing-any-web-site-one-should-keep-some.aspx