protected void OnRowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Desc = (String)DataBinder.Eval(e.Row.DataItem, "Act_Response");
Actid = (int)DataBinder.Eval(e.Row.DataItem, "Actid");
if (Desc != null)
{
if (Desc.Length > 30)
{
Desc = Desc.Substring(0, 30) + "...";
Desc = "<a href='../Activity/viewActivity.asp?ActID="+Actid+"' onclick='javascript:window.open(this.href,'scrollbars,width=650,height=600'); return false'>" + Desc + "</a>";
}
}
}
}
hi window.open is not working in Gridview .
and html is
<asp:TemplateField HeaderText="Description">
<ItemTemplate>
<%#Desc%>
</ItemTemplate>
</asp:TemplateField>
Thank You,
Kiran K.
Remember to click “Mark as Answer” on the post,if it helps you.
Coding Stuffs |
Web Development help Mozilla Labs Projects