G
Guest
Hi,
I am building a Ecommerce site using usercontrols. I built a search control that uses the Ontextchaged event.
The control was place manually on the page- not dynamiclly. All was working fine then it just stopped working.
So I tried placing a simple button on the form & same result - no go.
I do have other user controls that contain webmenues & such and they fire, even have Pay Pal shopping cart that works fine.
but when I go to place a button on the page no fire. I'v been searching for the answer for a couple of days & have tried numerous fixes with no luck.
Here is a bit of what I'm up to. Hope somebody can help with this.
<form id="Form1" method="post" runat="server"><asp:Button id="Button1" runat="server" Text="Button" OnClick="Button1_Click" ></asp:Button></form>
Imports System
Imports System.Web.UI.WebControls
Public Class Index
'Inherits System.Web.UI.Page
Inherits BasePage
Protected WithEvents Table1 As System.Web.UI.WebControls.Table
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents pageContentsCell As System.Web.UI.WebControls.TableCell
Public Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
'Response.Redirect("home.aspx?Search=" + txtSearch.Text + _
' "&AllWords=" + cxbxallwords.Checked.ToString())
End Sub
I thank you in advance of your efforts
I am building a Ecommerce site using usercontrols. I built a search control that uses the Ontextchaged event.
The control was place manually on the page- not dynamiclly. All was working fine then it just stopped working.
So I tried placing a simple button on the form & same result - no go.
I do have other user controls that contain webmenues & such and they fire, even have Pay Pal shopping cart that works fine.
but when I go to place a button on the page no fire. I'v been searching for the answer for a couple of days & have tried numerous fixes with no luck.
Here is a bit of what I'm up to. Hope somebody can help with this.
<form id="Form1" method="post" runat="server"><asp:Button id="Button1" runat="server" Text="Button" OnClick="Button1_Click" ></asp:Button></form>
Imports System
Imports System.Web.UI.WebControls
Public Class Index
'Inherits System.Web.UI.Page
Inherits BasePage
Protected WithEvents Table1 As System.Web.UI.WebControls.Table
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents pageContentsCell As System.Web.UI.WebControls.TableCell
Public Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
'Response.Redirect("home.aspx?Search=" + txtSearch.Text + _
' "&AllWords=" + cxbxallwords.Checked.ToString())
End Sub
I thank you in advance of your efforts