Guys What is a difference between both??
if I set <table runat=server>
I can use it at server side also.
Is there any differnce between both??
Thanx
<asp:Table>
is a .Net object that has specific properties and capabilities that can be utilized through .Net scripting or code behind logic. <table>
is an Html element that can be accessed through scripting and code behind logic, but it has no native .Net capabilities and can only be output as is.
asp:table
lives in the System.Web.UI.WebControls
namespace - these are components that wrap around the different HTML controls and provide a familiar interface and usage to winforms developers (for a table, it will have a Columns
attribute).
table
lives in the System.Web.UI.HtmlControls
namespace and is a direct analogue to the actual HTML controls and provides an interface more familiar to HTML developers (for a table, it will have a Cols
attribute).
In terms of output, these pretty much behave the same way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With