How can we add dynamic control to Data table
-
Hi, I am trying to add dynamic link button to data table. But get an full link class name.i.e.
System.Web.UI.WebControls.LinkButton
can any one tell me the way to do this?
Here is my code:
Dim dt As New DataTable() Dim dr As DataRow dt.Columns.Add("EventDate", Type.[GetType]("System.DateTime")) dt.Columns.Add("EventHeader", Type.[GetType]("System.String")) Dim lnk As New LinkButton lnk.ID = InteractionClickId lnk.Text = objDal.Name dr = dt.NewRow() dr("EventDate") = objDal.Date1 dr("EventHeader") = lnk dt.Rows.Add(dr)Regards... Vijay Jain :)
"One thing you can't recycle is wasted time."
-
Hi, I am trying to add dynamic link button to data table. But get an full link class name.i.e.
System.Web.UI.WebControls.LinkButton
can any one tell me the way to do this?
Here is my code:
Dim dt As New DataTable() Dim dr As DataRow dt.Columns.Add("EventDate", Type.[GetType]("System.DateTime")) dt.Columns.Add("EventHeader", Type.[GetType]("System.String")) Dim lnk As New LinkButton lnk.ID = InteractionClickId lnk.Text = objDal.Name dr = dt.NewRow() dr("EventDate") = objDal.Date1 dr("EventHeader") = lnk dt.Rows.Add(dr)Regards... Vijay Jain :)
"One thing you can't recycle is wasted time."
I haven't tried but don't this is possible. What you want to achieve? And we normally add controls to the page.
Coding C# ExciteTemplate
-
I haven't tried but don't this is possible. What you want to achieve? And we normally add controls to the page.
Coding C# ExciteTemplate
I m trying to use a modal popup extender, dynamically in my code in event calendar. And event calendar is a 3rd party tool, I only have dll for that. So I have to paas all data in data table to add in event calendar. That's why I m trying to do this.
Regards... Vijay Jain :)
"One thing you can't recycle is wasted time."
-
I m trying to use a modal popup extender, dynamically in my code in event calendar. And event calendar is a 3rd party tool, I only have dll for that. So I have to paas all data in data table to add in event calendar. That's why I m trying to do this.
Regards... Vijay Jain :)
"One thing you can't recycle is wasted time."
That event calendar control should have some databinding event? You can handle that event and then use it to add controls to it. HTH
Coding C# ExciteTemplate