Javascript Problem
-
Hi I have datagrid in asp.net. which contains two columns.And one button name is "save" on my form. My first column is template column which is checkbox. Now my Problem is:when i click on save button,I want to check at least one checkbox has to checked. That's why i want javascript on my save button.How to write javascript for that? I know hoe to call javascript but how to write means how to take checkbox in javascript? Thanks monika
-
Hi I have datagrid in asp.net. which contains two columns.And one button name is "save" on my form. My first column is template column which is checkbox. Now my Problem is:when i click on save button,I want to check at least one checkbox has to checked. That's why i want javascript on my save button.How to write javascript for that? I know hoe to call javascript but how to write means how to take checkbox in javascript? Thanks monika
This article serves your exact problem. http://www.codeproject.com/aspnet/DataGirdCheckBox.asp Hope this will help you
Thomas
-
This article serves your exact problem. http://www.codeproject.com/aspnet/DataGirdCheckBox.asp Hope this will help you
Thomas
Hi Thanks for yr help. But i think u r not getting my exact problem. I have datagrid which has first column as template column as checkbox. Private Sub dg_diagnosis_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dg_diagnosis.ItemCreated If e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType.Item Then Dim chk As New HtmlInputCheckBox chk.ID = "chk" id = chk.ID e.Item.Cells(0).Controls.Add(chk) Me.img_save.Attributes.Add("OnClick", "CheckList1();") End If End Sub can u say me how to use this checkbox in javascript? Hope u getting my question. Thnaks monika
-
Hi I have datagrid in asp.net. which contains two columns.And one button name is "save" on my form. My first column is template column which is checkbox. Now my Problem is:when i click on save button,I want to check at least one checkbox has to checked. That's why i want javascript on my save button.How to write javascript for that? I know hoe to call javascript but how to write means how to take checkbox in javascript? Thanks monika