C
csgraham74
Hi guys,
I posted regarding this issue the other day but i still dont have an
answer to my problem.
Basically i have imported asp.net pages from dreamweaver into visual
studio. Ive added a few controls that ive copied in from another
asp.net page that i built within visual studio. The problem is that the
asp:button does not fir an event and therefore my code behind it wont
work. The page load event is firing correctly so i think the issue
relates only to the button.
My button im using is the "btn_SearchNow" button. Can anyone tell me if
im missing any code or if they have a workaround.
Any help appreciated as i cannot seem to find a workaround.
Imports System.IO
Imports System.Data.OleDb
Imports System.Configuration.ConfigurationSettings
Public Class search
Inherits System.Web.UI.Page
Protected WithEvents Label9 As System.Web.UI.WebControls.Label
Protected WithEvents ddl_SPropType As
System.Web.UI.WebControls.DropDownList
Protected WithEvents Label13 As System.Web.UI.WebControls.Label
Protected WithEvents txt_SAddress As
System.Web.UI.WebControls.TextBox
Protected WithEvents lbl_TownCity As
System.Web.UI.WebControls.Label
Protected WithEvents ddl_STown As
System.Web.UI.WebControls.DropDownList
Protected WithEvents lbl_Postcode As
System.Web.UI.WebControls.Label
Protected WithEvents txt_SPostcode As
System.Web.UI.WebControls.TextBox
Protected WithEvents Label14 As System.Web.UI.WebControls.Label
Protected WithEvents ddl_SRentBuy As
System.Web.UI.WebControls.DropDownList
Protected WithEvents lbl_SPropertyOfTheWeek As
System.Web.UI.WebControls.Label
Protected WithEvents ddl_SPropertyOfTheWeek As
System.Web.UI.WebControls.DropDownList
Protected WithEvents dg_Properties As
System.Web.UI.WebControls.DataGrid
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents Label6 As System.Web.UI.WebControls.Label
'*********************************************
Protected WithEvents btn_Searchnow As
System.Web.UI.HtmlControls.HtmlInputImage
'*********************************************
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents Imagebutton1 As
System.Web.UI.WebControls.ImageButton Protected WithEvents pnl_Grid As
System.Web.UI.WebControls.Panel
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
I posted regarding this issue the other day but i still dont have an
answer to my problem.
Basically i have imported asp.net pages from dreamweaver into visual
studio. Ive added a few controls that ive copied in from another
asp.net page that i built within visual studio. The problem is that the
asp:button does not fir an event and therefore my code behind it wont
work. The page load event is firing correctly so i think the issue
relates only to the button.
My button im using is the "btn_SearchNow" button. Can anyone tell me if
im missing any code or if they have a workaround.
Any help appreciated as i cannot seem to find a workaround.
Imports System.IO
Imports System.Data.OleDb
Imports System.Configuration.ConfigurationSettings
Public Class search
Inherits System.Web.UI.Page
Protected WithEvents Label9 As System.Web.UI.WebControls.Label
Protected WithEvents ddl_SPropType As
System.Web.UI.WebControls.DropDownList
Protected WithEvents Label13 As System.Web.UI.WebControls.Label
Protected WithEvents txt_SAddress As
System.Web.UI.WebControls.TextBox
Protected WithEvents lbl_TownCity As
System.Web.UI.WebControls.Label
Protected WithEvents ddl_STown As
System.Web.UI.WebControls.DropDownList
Protected WithEvents lbl_Postcode As
System.Web.UI.WebControls.Label
Protected WithEvents txt_SPostcode As
System.Web.UI.WebControls.TextBox
Protected WithEvents Label14 As System.Web.UI.WebControls.Label
Protected WithEvents ddl_SRentBuy As
System.Web.UI.WebControls.DropDownList
Protected WithEvents lbl_SPropertyOfTheWeek As
System.Web.UI.WebControls.Label
Protected WithEvents ddl_SPropertyOfTheWeek As
System.Web.UI.WebControls.DropDownList
Protected WithEvents dg_Properties As
System.Web.UI.WebControls.DataGrid
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents Label6 As System.Web.UI.WebControls.Label
'*********************************************
Protected WithEvents btn_Searchnow As
System.Web.UI.HtmlControls.HtmlInputImage
'*********************************************
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents Imagebutton1 As
System.Web.UI.WebControls.ImageButton Protected WithEvents pnl_Grid As
System.Web.UI.WebControls.Panel
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region