protected function
-
Hi ALl I have one runtime checkbox. I have created one protected function for checkbox. But how to call this function on checkbox? Thanks monika
-
Hi ALl I have one runtime checkbox. I have created one protected function for checkbox. But how to call this function on checkbox? Thanks monika
-
Hi I have datagrid which is created at runtime. I add checkboxes in datagrid also at runtime. now i want event when i click on checkbox. i have code like protected void OnChangeHandler(object sender,EventArgs e) { // Handle the event... } dim chk as new checkbox chk.Id="chk" chk.CheckedChanged += new EventHandler(OnChangeHandler); but this code is not working in asp.net with vb.net.I think this code is in c#. How can i write this code in asp.net with vb.net? I hope now u got my question. Thanks monika
-
Hi I have datagrid which is created at runtime. I add checkboxes in datagrid also at runtime. now i want event when i click on checkbox. i have code like protected void OnChangeHandler(object sender,EventArgs e) { // Handle the event... } dim chk as new checkbox chk.Id="chk" chk.CheckedChanged += new EventHandler(OnChangeHandler); but this code is not working in asp.net with vb.net.I think this code is in c#. How can i write this code in asp.net with vb.net? I hope now u got my question. Thanks monika
-
Hi I have datagrid which is created at runtime. I add checkboxes in datagrid also at runtime. now i want event when i click on checkbox. i have code like protected void OnChangeHandler(object sender,EventArgs e) { // Handle the event... } dim chk as new checkbox chk.Id="chk" chk.CheckedChanged += new EventHandler(OnChangeHandler); but this code is not working in asp.net with vb.net.I think this code is in c#. How can i write this code in asp.net with vb.net? I hope now u got my question. Thanks monika
-
AddHandler chk.CheckedChanged, AddressOf OnChangeHandler public sub OnChangeHandler(object sender,EventArgs e) ... .. .. end sub
Hi Thanks for kindly response.I have written as u say but it's not working. I give u code if possible check it. Hi I have one datagrid name as dg_unit on a form. I am adding a new datagrid name as dg_diagnosis at runtime in dg_unit datagrid. I am adding a new checkbox control at runtime in dg_diagnosis grid. i am adding event handler to checkboxes.But event is not fired. I give a code which is written by me. If any correction or missing pls suggest me. For Each ditem In dg_diagnosis.Items Dim str As String = ditem.Cells(1).Text Dim chk As New CheckBox chk.ID = "chk" ditem.Cells(0).Controls.Add(chk) AddHandler chk.CheckedChanged, AddressOf chk_CheckedChanged Next Public Sub chk_CheckedChanged(ByVal sende As Object, ByVal e As System.EventArgs) Response.Write("hi") End Sub Thanks monika