help me to see where is wrong?!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: help me to see where is wrong?!

  1. #1
    ] Guest

    help me to see where is wrong?!

    <html>

    <body ms_positioning="GridLayout">
    <table height=150 cellspacing=0 cellpadding=0 width=355 border=0
    ms_2d_layout="TRUE">
    <tr valign=top>
    <td width=10 height=15></td>
    <td width=277></td>
    <td width=1></td>
    <td width=4></td>
    <td width=63></td></tr>
    <tr valign=top>
    <td height=28></td>
    <td colspan=4>

    <script language="vb" runat="server" ID=Script1>
    Sub bt_click(sender as object, e as EventArgs)
    If chk1.checked=true then
    Label1.text="checkBox is checked"
    Else
    Label1.text="Checkbox is not checked"
    end if
    end sub
    </script>

    <form method="post" runat="server"></form>
    </td></tr>
    <tr valign=top>
    <td colspan=2 height=36></td>
    <td colspan=3>
    <asp:CheckBox id=chk1 runat="server"
    Text="163.net"></asp:CheckBox></td></tr>
    <tr valign=top>
    <td colspan=3 height=51></td>
    <td colspan=2>
    <asp:Button id=Button1 runat="server" Text="Button"
    Onclick="bt_click"></asp:Button></td></tr>
    <tr valign=top>
    <td colspan=4 height=20></td>
    <td>
    <asp:Label id=Label1
    runat="server">Label</asp:Label></td></tr></table></TABLE>


    </body></html>



    when i click "submit"button,label1 button has not any effect!

    why?

    first,thanks your help!




  2. #2
    c2i - Richard Clark Guest

    Re: help me to see where is wrong?!

    you're </form> must be at the end of your file


    --
    Richard Clark - rc@c2i.fr
    ______________________________________________
    NOUVEAU : Liste de diffusion sur MS.NET
    Inscription en envoyant un mail :
    ----------------------------------------------
    dotnetfrance-subscribe@yahoogroups.com
    ----------------------------------------------
    http://www.c2i.fr - Le portail francophone
    Visual Basic,VB.NET,ASP, ASP.NET
    + de 517 aides disponibles (15/02)
    ______________________________________________
    "]" <xuxl@abaca.com.hk> wrote in message news:3ac17d01@news.devx.com...
    > <html>
    >
    > <body ms_positioning="GridLayout">
    > <table height=150 cellspacing=0 cellpadding=0 width=355 border=0
    > ms_2d_layout="TRUE">
    > <tr valign=top>
    > <td width=10 height=15></td>
    > <td width=277></td>
    > <td width=1></td>
    > <td width=4></td>
    > <td width=63></td></tr>
    > <tr valign=top>
    > <td height=28></td>
    > <td colspan=4>
    >
    > <script language="vb" runat="server" ID=Script1>
    > Sub bt_click(sender as object, e as EventArgs)
    > If chk1.checked=true then
    > Label1.text="checkBox is checked"
    > Else
    > Label1.text="Checkbox is not checked"
    > end if
    > end sub
    > </script>
    >
    > <form method="post" runat="server"></form>
    > </td></tr>
    > <tr valign=top>
    > <td colspan=2 height=36></td>
    > <td colspan=3>
    > <asp:CheckBox id=chk1 runat="server"
    > Text="163.net"></asp:CheckBox></td></tr>
    > <tr valign=top>
    > <td colspan=3 height=51></td>
    > <td colspan=2>
    > <asp:Button id=Button1 runat="server" Text="Button"
    > Onclick="bt_click"></asp:Button></td></tr>
    > <tr valign=top>
    > <td colspan=4 height=20></td>
    > <td>
    > <asp:Label id=Label1
    > runat="server">Label</asp:Label></td></tr></table></TABLE>
    >
    >
    > </body></html>
    >
    >
    >
    > when i click "submit"button,label1 button has not any effect!
    >
    > why?
    >
    > first,thanks your help!
    >
    >
    >




  3. #3
    Xu Xiaoning Guest

    Re: help me to see where is wrong?!

    thanks your help!

    i had fix the bug!


    "c2i - Richard Clark" <rc@c2i.fr> wrote in message
    news:3ac2dfe8@news.devx.com...
    > you're </form> must be at the end of your file
    >
    >
    > --
    > Richard Clark - rc@c2i.fr
    > ______________________________________________
    > NOUVEAU : Liste de diffusion sur MS.NET
    > Inscription en envoyant un mail ?:
    > ----------------------------------------------
    > dotnetfrance-subscribe@yahoogroups.com
    > ----------------------------------------------
    > http://www.c2i.fr - Le portail francophone
    > Visual Basic,VB.NET,ASP, ASP.NET
    > + de 517 aides disponibles (15/02)
    > ______________________________________________
    > "]" <xuxl@abaca.com.hk> wrote in message news:3ac17d01@news.devx.com...
    > > <html>
    > >
    > > <body ms_positioning="GridLayout">
    > > <table height=150 cellspacing=0 cellpadding=0 width=355 border=0
    > > ms_2d_layout="TRUE">
    > > <tr valign=top>
    > > <td width=10 height=15></td>
    > > <td width=277></td>
    > > <td width=1></td>
    > > <td width=4></td>
    > > <td width=63></td></tr>
    > > <tr valign=top>
    > > <td height=28></td>
    > > <td colspan=4>
    > >
    > > <script language="vb" runat="server" ID=Script1>
    > > Sub bt_click(sender as object, e as EventArgs)
    > > If chk1.checked=true then
    > > Label1.text="checkBox is checked"
    > > Else
    > > Label1.text="Checkbox is not checked"
    > > end if
    > > end sub
    > > </script>
    > >
    > > <form method="post" runat="server"></form>
    > > </td></tr>
    > > <tr valign=top>
    > > <td colspan=2 height=36></td>
    > > <td colspan=3>
    > > <asp:CheckBox id=chk1 runat="server"
    > > Text="163.net"></asp:CheckBox></td></tr>
    > > <tr valign=top>
    > > <td colspan=3 height=51></td>
    > > <td colspan=2>
    > > <asp:Button id=Button1 runat="server" Text="Button"
    > > Onclick="bt_click"></asp:Button></td></tr>
    > > <tr valign=top>
    > > <td colspan=4 height=20></td>
    > > <td>
    > > <asp:Label id=Label1
    > > runat="server">Label</asp:Label></td></tr></table></TABLE>
    > >
    > >
    > > </body></html>
    > >
    > >
    > >
    > > when i click "submit"button,label1 button has not any effect!
    > >
    > > why?
    > >
    > > first,thanks your help!
    > >
    > >
    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center