By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,508 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,508 IT Pros & Developers. It's quick & easy.

Need to connect & retrieve from SQL DB in aspx page.

P: 200
Good day,

Need to connect & retrieve from SQL DB in aspx page.

I don't know aspx & only want to edit the page to sow additional information.

Can you please help by providing some code?

I have an aspx page which I want to edit by adding information from a SQL database & display results on and in the html page (code below).

I need to show information on this page which lies on the SQL db.

Any code would be great that works in the aspx page where i can just insert the DB connection details & sql statement & display the result on page.

Aspx page code
Expand|Select|Wrap|Line Numbers
  1. <%@ Control Language="c#" AutoEventWireup="True" Codebehind="Header.ascx.cs" Inherits="FlowCentric.Net.Navigator.Header" TargetSchema=""%> 
  2. <table> 
  3. <tr> <td><asp:Label id="lblLogin" runat="server">Welc</asp:Label></td></tr> 
  4. </table> 
Please Assist.
Apr 14 '09 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 750

Post your reply

Sign in to post your reply or Sign up for a free account.