ASPX code too run query

Posted by Akoori on Server Fault See other posts from Server Fault or by Akoori
Published on 2012-10-20T20:25:14Z Indexed on 2012/10/20 23:05 UTC
Read the original article Hit count: 171

Filed under:
|

I have web.config like below :

</appSettings>

  <authentication mode="Windows" /> 

<authorization>
    <allow users="*" /> <!-- Allow all users -->

</authorization>

<trace
    enabled="false"
    requestLimit="10"
    pageOutput="false"
    traceMode="SortByTime"
    localOnly="true"
/>

<sessionState 
        mode="InProc"
        stateConnectionString="tcpip=127.0.0.1:42424"
        sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
        ****ieless="false" 
        timeout="30" 
/>

 <globalization 
        requestEncoding="utf-8" 
        responseEncoding="utf-8" 

/>

I need an aspx code to run query with this connection string that there in this web.config

Regards

© Server Fault or respective owner

Related posts about database

Related posts about aspx