Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Writing Client Scripting in ASP.Net 2.0

Writing Client Scripting in ASP.Net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-netquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muhammad Chitrali
    wrote on last edited by
    #1

    How can i write Client Scripting like JAVASCRIPT in ASP.NET 2.0 Using C#.

    L 1 Reply Last reply
    0
    • M Muhammad Chitrali

      How can i write Client Scripting like JAVASCRIPT in ASP.NET 2.0 Using C#.

      L Offline
      L Offline
      lavanya_satheesh
      wrote on last edited by
      #2

      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.

      R 1 Reply Last reply
      0
      • L lavanya_satheesh

        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.

        R Offline
        R Offline
        RichardGrimmer
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups