Quantcast
Viewing all articles
Browse latest Browse all 3509

VS2010, classic asp page integration

I have a classic asp page with connection and recordset hardcoded.  The page is a 1 page report like an invoice.  I'm upgrading this site to aspx and would like to use the same page since the table layout is perfect.  I have a connectionString "ISRequests_ConnectionString" in web.config that I want to use.  How do I put the data from the connectionString onto the page?  I tried Add Existing Item to the solution, rename it to PrintITRequest.aspx, opened the file and cleaned out all the classic asp.  Now I assume I'll need <asp:label ... > in place of all the <%=rs("openDate")%> classic asp fields.  But what Tool do I drop on the page and how do I connect the asp:label to it?  I tried Toolbox > Data > SqlDataSource which allows me to use the connection string and reference a view that has all the fields I need.  It feels like I'm missing a middle layer.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>