Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: redirect webform buttons blank page


Message #1 by "John Ritchie" <jcriv@a...> on Tue, 7 May 2002 19:32:53
Hi,
I have a few minor problems and I thought someone might be able to help.

1) I'm building a web form app and there are several forms involved.  I 
need to have the user click a button on a form and then I check some data 
from the form and if all is OK I want to start up a different form.  Right 
now I'm doing this by issuing the   response.redirect("webform2") command 
in the buttonclick subroutine from the first form.  Is this the best way 
to display the next form?  I got a popup question in Netscape asking if 
the user wanted to be redirected.

2) I have a webform with two buttons  "Save" and "Cancel".  The Cancel 
button always seems to be selected (so an 'Enter' key will cause a 
cancel). I want the Save button to be the default.  I know how to do this 
for a regular Window form but can't seem to find a page or control 
property to set to do this in a web form.

3) is there some way in a web form event code (I'm using VB.net code 
behind) to start a new page in a seperate browser window?  I saw an 
example of doing this in html as
<a href="SelForm.aspx/" target="_blank"><b>Exploring Server 
Controls</b></a>
but is ther some way to do this in code?

Thanks
 JOhn

  Return to Index