Visual Basic dotnet - buttons on a web page

M

Morton

I added two buttons to a web page. One has 'Causes Validation' set to True -
the othe to false.

When I click the button set to 'Causes Validation' - the expected validation
messages appear.

When I click the button with no validation - nothing happens.
What I expected was that the "Response.Redirect" line would be fired.

Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnCancel.Click
Response.Redirect("Default.aspx")
End Sub

If I set a stop point at the subroutine - it is ignored.

Any suggestions as to what I am missing?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top