When working with webclasses, you might also want to use a form and formvalidation. In the template just define the form, but leave the action property blank. Now save your file
In the webclass designer click the template (it's content will be loaded in the right pane). Somewhere in the right pane you will see a line with your form mentioned. right-click this line and choose connect to custom event.
An event will now appear below your template in the left pane. Give this event a logical name. When you double-click on the event a private sub is created. This sub is called by the webclass when you submit your form. With the request.form collection you can now program custom actions and formvalidation.
When you use webclasstags within webclasstags be sure to set the rescanreplacements property of the template to True.
for example:
You've got a html file called persons. With the designer you add it to the webclass and call it Persons. Now in the Persons_Respond event you set the persons.ReScanReplacements property to true before we call the persons.write template. Now the weblass will continue to rescan your template until there are no more webclasstags left.
Jordi Reineman
In the webclass designer click the template (it's content will be loaded in the right pane). Somewhere in the right pane you will see a line with your form mentioned. right-click this line and choose connect to custom event.
An event will now appear below your template in the left pane. Give this event a logical name. When you double-click on the event a private sub is created. This sub is called by the webclass when you submit your form. With the request.form collection you can now program custom actions and formvalidation.
When you use webclasstags within webclasstags be sure to set the rescanreplacements property of the template to True.
for example:
You've got a html file called persons. With the designer you add it to the webclass and call it Persons. Now in the Persons_Respond event you set the persons.ReScanReplacements property to true before we call the persons.write template. Now the weblass will continue to rescan your template until there are no more webclasstags left.
Jordi Reineman