Monday, July 13, 2009

What are the name spaces that are to be imported while developing ASP.Net applications?

To develop the ASP.Net application what are the namespaces that are to be downloaded in general?

What are the name spaces that are to be imported while developing ASP.Net applications?
The minimum you need to develop a simple page is generally System.Web, System.Web.UI, System.Web.UI.WebControls, and System.Web.UI.HtmlControls. Other common namespaces, that have classes that are used a *lot* are System.Data and System.Configuration.
Reply:That depends completely on what your application does. If your page sends an email you need System.net.Mail, but why import if you don't send mail.


If you're querying a database you might need System.Data.SqlClient, but if you don't hit a Db you won't need that.





So it's application specific.


No comments:

Post a Comment