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. client side validation for a control which is inside a gridview ,using java script

client side validation for a control which is inside a gridview ,using java script

Scheduled Pinned Locked Moved ASP.NET
questionjavatools
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.
  • S Offline
    S Offline
    sanjay_tutu
    wrote on last edited by
    #1

    Generally i use this to associate the java scrpt with a button. Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load If (Not Page.IsPostBack) Then Me.btnSave.Attributes.Add("onclick","return validate();") End If End Sub But if the button is in side a gridview's footer control how can i do this?

    sanjay kumar samantaray

    M 1 Reply Last reply
    0
    • S sanjay_tutu

      Generally i use this to associate the java scrpt with a button. Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load If (Not Page.IsPostBack) Then Me.btnSave.Attributes.Add("onclick","return validate();") End If End Sub But if the button is in side a gridview's footer control how can i do this?

      sanjay kumar samantaray

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      I think you can add the client-side event in design time.. Just open the design view and add the event in button in footer template.....

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

      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