Tom,
Easy to do set a registerstartup in the load from your program and only in
the condition Not Ispostback
http://msdn2.microsoft.com/en-us/library/z9h4dk8y.aspx
Be aware that the 1.x version is obsolete.
I hope this helps,
Cor
"Tom Edelbrok" <(E-Mail Removed)> schreef in bericht
news:yJQ1g.3404$fL.1128@edtnps90...
>I have an aspx page in Visual Studio 2005. I want to run a certain
>javascript, but only if 'not postback'. ie: I only want the javascript to
>run when the page loads for the very first time.
>
> Is this possible?
>
> Is there some way I can detect within the javascript if the page is being
> loaded due to a PostBack or not?
>
> Thanks in advance for any help,
>
> Tom Edelbrok
>
>