现在的位置: 首页 > 综合 > 正文

前台绑定后台方法

2013年09月18日 ⁄ 综合 ⁄ 共 258字 ⁄ 字号 评论关闭

a.aspx:

<td align="right">
<a onclick="popupNews('<%=GetType()%>',0)">Add</a>
</td>

a.aspx.cs:

    protected string GetType()
    {
        try
        {
            return ddlType.Text.ToString().Trim();
        }
        catch (Exception ex)
        {
            return "";
        }
    }

抱歉!评论已关闭.