.net

17 views
Skip to first unread message

bhagyashree fulzele

unread,
May 16, 2012, 6:42:17 AM5/16/12
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
i
want to add controld dynamically with this code
protected void add_button(Button button)
{
try
{
panel1.Controls.Add(button);
}
catch (Exception ex)
{
label1.Text += ex.Message.ToString();
}
}

but it is throwing error "button not recognized".

Micheal Vu

unread,
May 17, 2012, 4:14:58 AM5/17/12
to dotnetde...@googlegroups.com
Hi,
I think you should send all related source code. It' helps to understand your issue easier.

Thanks


--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetde...@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopm...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net



--
Micheal Vu
-------------------------------------------------------


mano zahid

unread,
May 18, 2012, 12:05:18 AM5/18/12
to dotnetde...@googlegroups.com
well, i don't see any bug in your code. perhaps there is something wrong with your button definition.  

> Date: Wed, 16 May 2012 03:42:17 -0700
> Subject: [DotNetDevelopment] .net
> From: bhagyashr...@gmail.com
> To: dotnetde...@googlegroups.com

Revanth Arji

unread,
May 21, 2012, 12:52:06 AM5/21/12
to dotnetde...@googlegroups.com
Hello,

Try this article, i have succeeded and used in many of projects. if
you have any queries let me know.



http://www.codeproject.com/Articles/59781/Dynamic-Loading-of-ASP-NET-User-Controls

--
Thanks

with Regards
Revanth Arji
+919490109755

You have to grow from the inside out. None can teach you, none can
make you spiritual. There is no other teacher but your own soul.

                                                              -Swami
Vivekananda

Micheal Vu

unread,
May 21, 2012, 8:12:16 PM5/21/12
to dotnetde...@googlegroups.com
nice!

Thanks
Reply all
Reply to author
Forward
0 new messages