Absolutely.  The only case I can imagine where you'd want JS in
the code-behind is if you need to write something dynamically to the
client at run time.  At that point you'd still want to keep it minimal,
like writing one line to call a function, or even just hiding/showing a
literal with the JS text already in it.

-----Original Message-----
From: AspNetAnyQuestionIsOk@yahoogroups.com On Behalf Of Travis D. Falls

In my humble opinion the java script has no place in a code behind.
That is server side code that should handle UI interaction (Model).
Javascript stuff should be in an external file that is linked within
your aspx page.  I am by no means one of the more senior guys/gals on
this list though so they might have some reason why you would put it in
the code behind. 

-----Original Message-----
From: On Behalf Of jamil tamimi

hi all, is it is good to write a javascript in the code behind or not as
a performance for the client site or not 





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to