-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: ravipillala
Message 1 in Discussion
Hi All,
I need help in ASP.NET datagrid
My problem is
i need to display a three columns in the datagrid, first column is a hyperlink column
,second is to display some text and the third column i need to display a delete image.
on click of that image i need to call a javascript function for the confirmation to
delete. if user confirms the delete then the page is to be submit.
<asp:datagrid id="grdLeaveStatus" style="Z-INDEX: 104; LEFT: 108px; POSITION:
absolute; TOP: 129px" runat="server" Height="77px" Width="679px" AllowSorting="True"
Font-Size="Small" Font-Names="Verdana" AutoGenerateColumns="False" CellPadding="0">
<AlternatingItemStyle BackColor="#E0E0E0"></AlternatingItemStyle>
<ItemStyle Font-Size="X-Small" Font-Names="Verdana"></ItemStyle>
<HeaderStyle Font-Size="14px" Font-Names="Verdana" Font-Bold="True"
Height="20px" BackColor="#99CCFF"></HeaderStyle>
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="DataNavigateUrlField"
DataTextField="STATUS_DESC" SortExpression="STATUS_DESC"
HeaderText="STATUS_DESC"></asp:HyperLinkColumn>
<asp:BoundColumn DataField="PHONE_TXT" SortExpression="PHONE_TXT"
HeaderText="Phone #"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Image">
<ItemTemplate>
<asp:hyperlink runat="server" text="Simply awesome"
imageurl="Images/delete.gif" navigateurl=<%# DataBinder.Eval(Container.DataItem,
"STATUS_ID") %> ID="Hyperlink1" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
please help me how to call a javascript function on click of that delete button? for
that javascript function i need to pass STATUS_ID as parameter.
Thanks in adv
Ravi
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]