ASP.NET: Parse Controls Dynamically (WebProNews)
ASP.NET: Parse Controls Dynamically (WebProNews)
Most of the primitive types in the CLR have a Parse method that takes a string and parses it into its own data type. I could be DateTime.Parse(string) or Int.Parse(string) etc. It’s a great way of doing late binding and adds another layer of flexibility to your code. In ASP.NET you can parse strings as controls and add them to the page or GridView or any other control. It basically …