Loading ...

ImageButton in ASP.NET

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  getting started / general asp.net   » ImageButton in ASP.NET

ImageButton in ASP.NET

Posts under the topic: ImageButton in ASP.NET

Posted: 9/8/2010

Contributor 2237  points  Contributor
  • Joined on: 9/24/2009
  • Posts: 172

Hello Experts,

I have repeater on my page but there is no CS file. I am using custom control.

In my repeter, there is one Imagebutton -

<asp:ImageButton ID="imgbtnDelete" runat="server" CommandName="Delete" OnClientClick="javascript:return confirm('Are you sure you want to delete this ?')"/>


Now I want to set this confirm text 'Are you sure you want to delete this ?' for globalization purpose but I don't have CS file. Can anyone tell me how I can do this?

 

Thanx in advance. 


Posted: 9/8/2010

Guru 16813  points  Guru
  • Joined on: 4/19/2009
  • Posts: 490
  Answered

In ASPX side you can write this:

<script runat="server">
    
    #region Page Load Method
    /// <summary>
    /// Page Load
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    protected void Page_Load(object sender, EventArgs e)
    {
     }
    #endregion

</script>



Page 1 of 1 (2 items)