<%@ Page Language="C#" %>
<html>
<head>
   <script runat="server">
      void ImageButton_Click(object Source, ImageClickEventArgs e) 
      {
         Label1.Text="You clicked the ImageButton control at the " +
                     "Coordinates: (" + e.X.ToString() + ", " +
                     e.Y.ToString() + ")";
      }
   </script>
</head>
<body>
   <form runat="server">
      <h3>ImageButton Sample</h3>
      Click anywhere on the image.<br><br>
      <asp:ImageButton id="imagebutton1"
           AlternateText="ImageButton 1"
           ImageAlign="left"
           ImageUrl="images\pict.jpg"
           OnClick="ImageButton_Click"
           runat="server"/>
      <br><br>
      <asp:Label id="Label1" 
           runat="server"/>
   </form>
</body>
</html>

解决方案 »

  1.   

    Asp.net里有<asp:ImageButton id=ImageButton1 runat="server" Width="144px" ImageUrl="images/submit.gif" Height="33px" TOOLTIP="登录技术论坛"></asp:ImageButton>
      

  2.   

    在.aspx文件中,添加:
    <asp:ImageButton id="ImageButton1" style="Z-INDEX: 103; LEFT: 168px; POSITION: absolute; TOP: 208px" runat="server" ImageUrl="images/submit.gif"></asp:ImageButton>在.aspx.cs文件中,添加:protected System.Web.UI.WebControls.ImageButton ImageButton1;//按钮点击事件
    private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
    {
    //此处写上你的登录事件
    }
      

  3.   

    更正一下,
    去掉: style="Z-INDEX: 103; LEFT: 168px; POSITION: absolute; TOP: 208px"
    即为:
    <asp:ImageButton id="ImageButton1" runat="server" ImageUrl="images/submit.gif"></asp:ImageButton>
      

  4.   

    同意楼上,因为登录的逻辑比较复杂,直接写在页面上不好,所以一般放在后台,怎样实现按
     qiuji(忆秋季) 老兄的方法去做就好了
      

  5.   

    同意 qiuji(忆秋季)写法!UPUPUP!!!