Page view counter

event

Last post 07-03-2008 2:54 AM by SoftwareEngineer2008. 4 replies.

Sort Posts:

  • event

    07-03-2008, 12:32 AM
    test
    Filed under:
  • Re: Text box Changed event

    07-03-2008, 1:59 AM
    • Loading...
    • niharnayak2003
    • Joined on 11-22-2007, 4:59 AM
    • Chennai
    • Posts 192
    • Points 1,030

    Is the Header file is a User Control ? any way you need to write a event handler in your header file like

    public event SomeEventName

    Add

    {

    }

    Remove

    {

    }

    }

    See this for create a event handler

    http://www.eggheadcafe.com/articles/20050710.asp

    http://forums.asp.net/p/1281975/2452657.aspx 

    http://www.15seconds.com/issue/031023.htm

     

    or use this

    <%@ Page Language="C#" %>
    <script runat="server">
        protected void txtSearch_TextChanged(object sender, EventArgs e)
        {
            lblSearchResults.Text = "Search for: " + txtSearch.Text;
        }
    </script>
    <html>
    <head>
        <title>TextBox AutoPostBack</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        
        <asp:Label
            id="lblSearch"
            Text="Search:"
            Runat="server" />
        <asp:TextBox
            id="txtSearch"
            AutoPostBack="true"
            OnTextChanged="txtSearch_TextChanged"
            Runat="server" />

        <hr />
        
        <asp:Label
            id="lblSearchResults"
            Runat="server" />
        
        </div>
        </form>
    </body>
    </html>

     

     

    Nihar ranjan Nayak
    Microsoft certified Professional
    niharnmayak2003@yahoo.co.uk
    www.webnihar.com
  • Re: Text box Changed event

    07-03-2008, 2:29 AM
    No Its not a usercontrol.Its an Aspx file.It is linked in the master file.Master)
  • Re: Text box Changed event

    07-03-2008, 2:44 AM
    • Loading...
    • blurearc
    • Joined on 04-25-2008, 11:15 AM
    • Mumbai India
    • Posts 537
    • Points 3,068

    send you code so we can help you out..

    "Mark as answered if you feel this helps you"
    "Curiosity is Bliss"
    Regards,

    Ravi Kant Srivastava
    (Sr. Consultant I)
    Neudesic
    Hyd'bad
    INDIA
  • Re: Text box Changed event

    07-03-2008, 2:54 AM

     

    thanks
Page 1 of 1 (5 items)