Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some advanced tips

Status
Not open for further replies.

JJR

Programmer
Apr 11, 2001
180
NL
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top