Hi, I have qustition about programing DN modules. I have DN module with Gridview, TabContainer and
NumericUpDown, but there are some diferent between programing aspx and ascx page in my opinion.
At first - I add linkbuttons to the template field in Gridview(edit and delete buttons).I need,when user click on
delete button,show confirm dialog Are you sure........In aspx page it is very easy, I add extender and it is done.
This doesn't work on my ascx (module) page,
I tried
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Write("<script>confirm('My message');</script>")
End Sub
Or
Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As GridViewDeleteEventArgs) Handles GridView1.RowDeleting
Dim l As LinkButton
Try
l = TryCast(GridView1.FindControl("LinkButton2"), LinkButton)
l.Attributes.Add("onclick", " return " + "confirm('Are you sure you want to delete this record " + "CategoryID" + "')")
Catch ex As Exception
End Try
End Sub
At second - I tried add to the my ascx page Ajax.net components, concretely
TabContainer and NumericUpDown. NumericUpDown I bind with my TextBox on this page.
Both components (TabContainer and NumericUpDown) I pasted to the div container, and set
backgroud color for this div. I can see div, but I don't see TabContainer neither
NumericUpDown (I fill TabContainer with TabPanels, some text of course).
Is there any restriction in Ajax components for ascs page?
I tried to find any resolution on internet, but without success.
Regards