Buttons won't work in ASP.NET page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an ASP.NET application that I am developing in VS 7.1.3088 (vb code
behind).
The application has 4 pages.
4 buttons and a header control on default.aspx
4 text boxes , 4 buttons, and a header control on next page (called from
Default.aspx - based on which button was clicked)
Next page has a datagrid and a header control based on data from previous
page.
Selected item can then be opened in 'main' page and edited/made void/ or add
a new record to database.
All of it works execept the last page. It is opened the same way as the
rest. It works fine in the development/local mode.
I have searched this (and other google.groups) looking for an answer, and
have come up empty.
In my (limited) debugging, I can determine that the page_load event executes
completely.
Also, in the [add new record] mode, a button click will cause validation,
but nothing else (appears to) happen.
This has really stumped me and probably is something simple... if I only knew.
Thanks
 
Here is the Page_Load event:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Request.QueryString("iHow") <> "" Then
iHowX = Request.QueryString("iHow")
End If
If Request.QueryString("sCaseNumber") <> "" Then
sCaseNumber = Request.QueryString("sCaseNumber")
End If
Call sbResetTextBoxes(1) 'Reset to all white boxes
Me.cmdReturn.Text = "Cancel - Return to Main Page"
Select Case iHowX
Case 1 'Assign Number
Response.Write("iHow = Case 1<br>")
Me.lblSerialNumber.Visible = False
Me.txtNewSerialNumber.Visible = False
Me.cmdUpdateData.Enabled = False
Me.cmdVoidNumber.Enabled = False
Case 2 'Update Data
Response.Write("iHow = Case 2<br>")
Call fnFillInBoxes(sCaseNumber)
Me.lblSerialNumber.Visible = True
Me.txtNewSerialNumber.Visible = True
Me.cmdVoidNumber.Enabled = False
Me.cmdUpdateData.Enabled = True
Me.cmdAssignNumber.Enabled = False
Case 3 'Void Number
Response.Write("iHow = Case 3<br>")
Me.lblSerialNumber.Visible = True
Me.txtNewSerialNumber.Visible = True
Me.cmdVoidNumber.Enabled = True
Me.cmdUpdateData.Enabled = False
Me.cmdAssignNumber.Enabled = False
Call fnFillInBoxes(sCaseNumber)
Call sbResetTextBoxes(2)
Case Else
Me.cmdVoidNumber.Enabled = False
Me.cmdUpdateData.Enabled = False
Me.cmdAssignNumber.Enabled = False
Me.cmdReturn.Enabled = True
End Select
End Sub

===========
Nothing responds after the page load event finishes. Validation
occurs, but that is it. No button responds to click events.
Thanks


Brendan said:
Post some code. We probably need to see what you're doing in order to help.

Phread Barnz said:
I have an ASP.NET application that I am developing in VS 7.1.3088 (vb code
behind).
The application has 4 pages.
4 buttons and a header control on default.aspx
4 text boxes , 4 buttons, and a header control on next page (called from
Default.aspx - based on which button was clicked)
Next page has a datagrid and a header control based on data from previous
page.
Selected item can then be opened in 'main' page and edited/made void/ or
add
a new record to database.
All of it works execept the last page. It is opened the same way as the
rest. It works fine in the development/local mode.
I have searched this (and other google.groups) looking for an answer, and
have come up empty.
In my (limited) debugging, I can determine that the page_load event
executes
completely.
Also, in the [add new record] mode, a button click will cause validation,
but nothing else (appears to) happen.
This has really stumped me and probably is something simple... if I only
knew.
Thanks
 
Back
Top