You are on page 1of 3

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"

AllowPaging="true" PageSize="3" PagerSettings-Mode="NextPreviousFirstLas


t"
onpageindexchanging="GridView1_PageIndexChanging" Width="714px"
onselectedindexchanged="GridView1_SelectedIndexChanged"
onrowdatabound="GridView1_RowDataBound" onrowupdating="GridView1_RowUpda
ting"
>
<PagerSettings Mode="NextPreviousFirstLast"></PagerSettings>
<Columns>
<asp:TemplateField >
<ItemTemplate>
<table style="width: 687px; height: 39px;">
<tr>
<td style="height: 31px">
<asp:CheckBox ID="CheckBox1" runat="server" />
</td>
<td style="height: 31px; width: 126px;">
<asp:Label ID="lblUname" runat="server" Text='<%# Eval("SenderName") %>'
></asp:Label>
</td>
<td style="height: 31px; width: 370px;">
&nbsp;Message from: <asp:Label ID="lblsender" runat="server" Text='<%# Ev
al("SenderID") %>'></asp:Label></td>
<td style="height: 31px; width: 262px">
&nbsp;Date:<asp:Label ID="lbldate" runat="server" Text='<%# Eval("DateOFG
ift") %>'></asp:Label></td>
<td style="height: 31px">
<asp:Button ID="btdelete" runat="server" Text="Delete"
onclick="btdelete_Click" />
</td>
</tr>
<%--<asp:Panel ID="Panel1" runat="server">--%>
<tr>
<td></td>
<td colspan="1">
<asp:Image ID="Imggift" Height="100px" Width="100px" runat="server" Image
Url='<%# Eval("GiftImg") %>' />
</td>
<td colspan="3">
<table>
<tr>
<td>
<asp:Label ID="lbltitle" runat="server" Text='<%# Eval("Title") %>'></asp:Lab
el>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lbldesc" runat="server" Text='<%# Eval("WishesDescription") %>
'></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td></td>
<td>
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Cli
ck" >Send This ecard</asp:LinkButton>
<%-- <asp:HyperLink NavigateUrl='<%# Eval("GiftImg", "~/sendgift.aspx?GF={
0}") %>'ID="HyperLink1" runat="server">Send This ecard</asp:HyperLink>--%>
</td>
</tr>
<%--</asp:Panel>--%>
</table>

</ItemTemplate>

</asp:TemplateField>

</Columns>
</asp:GridView>

//protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArg


s e)
//{
// GridView1.PageIndex = e.NewPageIndex;
// GridView1.DataBind();
//}
//protected void btdelete_Click(object sender, EventArgs e)
//{

//}
//protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
//{

//}
//protected void LinkButton1_Click(object sender, EventArgs e)
//{
// Response.Redirect("sendgift.aspx? imagename1='" + imgname + "'");
//}
//protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs
e)
//{
//}
//protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArg
s e)
//{
// int i = e.RowIndex;
// Image img = (Image)GridView1.Rows[i].Cells[0].FindControl("Imggift");
// imgname = img.ImageUrl.ToString();
//}