Writing Client Scripting in ASP.Net 2.0
-
How can i write Client Scripting like JAVASCRIPT in ASP.NET 2.0 Using C#.
-
How can i write Client Scripting like JAVASCRIPT in ASP.NET 2.0 Using C#.
If u ask me there is no need to write in javascript. u just use the code behind. if u still want to use javascript i think there is some way in the code behind file itself. u can also include javascript just like u did for normal asp pages. using the <%%> and script tags. i am not sure abt this. coz i have never used it.
-
If u ask me there is no need to write in javascript. u just use the code behind. if u still want to use javascript i think there is some way in the code behind file itself. u can also include javascript just like u did for normal asp pages. using the <%%> and script tags. i am not sure abt this. coz i have never used it.
lavanya_satheesh wrote:
If u ask me there is no need to write in javascript. u just use the code behind.
Who's a clever boy then - that's quite a trick....how are you doing AJAX?
lavanya_satheesh wrote:
if u still want to use javascript i think there is some way in the code behind file itself.
Kinda - Page.RegisterStartupScript allows you to code the js as text in the codebehind, then squirts it at the page
lavanya_satheesh wrote:
u can also include javascript just like u did for normal asp pages. using the <%%> and script tags.
Except that <%%> will cause it to runat server. To add some client side js, just add :
code goes here
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox