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. General Programming
  3. C#
  4. Use of java script in asp.net pages

Use of java script in asp.net pages

Scheduled Pinned Locked Moved C#
csharpjavaasp-nettoolshelp
2 Posts 2 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
    meanu
    wrote on last edited by
    #1

    how to use java script in my asp.net page Anurag Verma 18:06 23 Sep '05 Dear.... I want to use some validations for my forms in asp.net and i want to use java script.Please help me out and tell methe way how to use it:doh:

    M 1 Reply Last reply
    0
    • M meanu

      how to use java script in my asp.net page Anurag Verma 18:06 23 Sep '05 Dear.... I want to use some validations for my forms in asp.net and i want to use java script.Please help me out and tell methe way how to use it:doh:

      M Offline
      M Offline
      Mohamad Al Husseiny
      wrote on last edited by
      #2

      There are many ways you can use Javascript in your asp.net ASP.Net come with some validation of controls did you looked to them if no one of them have what you need you can use CustomValidator control and write your javascript for validating the control for example look at Allowing Only Numbers in ASP. NET TextBoxes[^] If You want to call JavaScript code when you click Button for example you can write somthing like Button1.Attributes.Add("onClick","DoIt();"); this allowed DoIt script function to be called when the user click the Button or write the code directly like Button1.Attributes.Add("onClick","alert('Test Test');"); MCAD -- modified at 21:30 Friday 23rd September, 2005

      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