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