常用编程技巧和方法

把一个字符串分割成字符串数组Split( String[] , StringSplitOptions)

//第一种方法
string str = "cj_yuwen,cj_shuxue,cj_wuli,cj_yingyu,cj_huaxue";
string[] strarr = str.Split(',');
//第二种方法
string[] arr_kmname = "cj_yuwen,cj_shuxue,cj_wuli,cj_yingyu,cj_huaxue".Split(',');

单元格跨越

<%--单元格跨越2列--%>
<asp:TableCell ColumnSpan="2"></asp:TableCell>
<td colspan="2"></td>
<%--单元格跨越2行--%>
<asp:TableCell RowSpan="2"></asp:TableCell>
<td rowspan="2"></td>

通过ID获得页面控件

Button button = (Button)FindControl("id");
如:document.getElementById("ID_card");
原文地址:https://www.cnblogs.com/hllive/p/4986579.html