a.aspx:
<td align="right">
<a οnclick="popupNews('<%=GetType()%>',0)">Add</a>
</td>
a.aspx.cs:
protected string GetType()
{
try
{
return ddlType.Text.ToString().Trim();
}
catch (Exception ex)
{
return "";
}
}