<asp:TemplateField HeaderText="Call History">
<ItemStyle HorizontalAlign="left" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
<a onclick="javascript:window.open('PrevCallHistory.aspx?AutoID=<%#DataBinder.Eval(Container.DataItem,"AutoID")%>','CH','top=400,left=300,location=0,status=1,scrollbars=1,width=420,height=300');" href="#" id="a6">Call History</a>
</ItemTemplate>
</asp:TemplateField>
Second Method:
<asp:HyperLinkField DataNavigateUrlFields="AutoID" NavigateUrl="~/Calling.aspx" Text="Consignee Name" DataNavigateUrlFormatString="~/Calling.aspx?AutoID={0}" HeaderText="Consignee Name" DataTextField="Name"></asp:HyperLinkField>
No comments:
Post a Comment