Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Learning to use JavaScript with ASP.Net
Message
De
21/05/2009 16:26:08
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Application:
Web
Divers
Thread ID:
01400821
Message ID:
01401436
Vues:
41
>>
>>Yea, I forgot about that. I added the debugger line in the method but it doesn't do anything.
>>This is what is in the source after the page runs.
>>
>><script type="text/javascript">
>>//<![CDATA[
>>EditAfterNew('ctl00_TrackerMasterContent_grdTrucks');//]]>
>></script>
>>
>>
>>I put an alert in that method and it never happens.
>>Something must be blocking this stuff from working, but I sure don't know what it is.
>
>Try this method instead:
>
>
>Page.ClientScript.RegisterStartupScript(csType, csName, csScript, true);
>
>
>I'm guessing your code is being rendered into the output before the rest of the page, which can cause JS errors if you're referencing something in that part of the page.

No change other than the source reveals the script is further down in the source.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform