Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Process a request
Message
From
13/12/2001 14:28:37
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00593092
Message ID:
00593997
Views:
18
Markus,

I looked at the IsPostback property. Looks like this will do what I want it to. I can understand the postback and returning to the same page. I just wanted to avoid re-running my same SELECTs etc...

Here what I do now.
PROCEDURE process
LOCAL lopage AS myform
loPage = NewObject("myform")
***I use to create voodoo objects here.
loPage.DoEvents()
Response.Write(loPage.Render())
ENDPROC

DEFINE CLASS MyForm AS WCPage OF voodoo.prg
FUNCTION OnLoad
IF NOT THIS.Page.IsPostback
    ***First time this page is displayed.
    ***Perform SQL SELECTs.
    ***Create voodoo objects, weblistbox, weblabel, etc...
    ***Create the selection button webbutton.
ELSE
    ***User pressed button.
    ***Process request.
    ***Create different voodoo objects to display to user.
ENDIF
ENDFUNC
ENDDEFINE
Thanks,

Jerryt

>
>Just like ASP.NET, Voodoo operates in postback mode. This means that you will always have to go back to the same page.
>
>Markus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform