Monday, March 25, 2013

how to set namespace in asp.net C#?

//IN Web.config 
<pages enableViewStateMac="true" enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" enableViewState="true">

<namespaces>

<add namespace="System.Collections.Generic"/>

<add namespace="System.IO"/>

<add namespace="System.Data"/>

<add namespace="System.Data.SqlClient"/>

</namespaces>

</pages>

No comments:

Post a Comment