473,383 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

JavaScript server side needed to connect & retrieve from SQL DB

200 100+
Good day,

Javscript server side needed to connect & retrieve from SQL DB.

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.

aspx page code
Expand|Select|Wrap|Line Numbers
  1. <%@ Control Language="c#" AutoEventWireup="True" Codebehind="Header.ascx.cs" Inherits="FlowCentric.Net.Navigator.Header" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
  2. <table>
  3. <tr> <td><asp:Label id="lblLogin" runat="server">Welc</asp:Label></td></tr>
  4. </table>
  5.  
Please Assist!
Apr 7 '09 #1
4 1575
gits
5,390 Expert Mod 4TB
??? could you explain a bit better what you need? you cannot connect directly to a database with javascript but you might do an XMLHttpRequest in the background that calls a serverside script and gives you the response back as json or text or whatever you want in your clientside script.

kind regards
Apr 7 '09 #2
ismailc
200 100+
Hi, Thank You for the reply.

It does not need to be javascript, i only have this aspx page (code above).
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.


Regards
Apr 8 '09 #3
acoder
16,027 Expert Mod 8TB
If you're not after JavaScript, then you'll be better off asking in the ASP.NET forum.

If it's JavaScript you want, try a simple Ajax request using one of the tutorial links from the Offsite Links thread (top of the forum list).
Apr 9 '09 #4
ismailc
200 100+
Apologies for the late reply & Thank You for the assistance.

Will post in ASP pages.


Regards
Apr 14 '09 #5

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

Similar topics

1
by: vishnu mahendra | last post by:
i am new to javascript. Can any one please tell me how to connect javascript to oracle in windows 98 using apache.where i could get information on connecting? thank you in advance, vishnu
2
by: Gaurav | last post by:
Hello, How can i connect client side javascript to sql server 2000 ? Thanks. Gaurav
3
by: ICode | last post by:
Hi, all, I am currently updating links for a site almost daily. I have set the META tags to allow for no caching so that as soon as the site is updated on the server, the new changes can be...
5
by: Florian Proch | last post by:
Hi all... i'm currently working for a big project to construct a website. We need to support some browser and OS : IE 5.0 -> IE 6, Mozilla 1.2 -> 1.7, Opera 5 -> Opéra 7.5x, Netscape 4.75 -> NS...
12
by: Joe | last post by:
Hello All: I'm sure that one of you can quickly spot the error in my script. I am using a small javascript function to retrieve the text of a hyperlink in a datagrid column. Here is my...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
3
by: Andy | last post by:
Hi, Have just found a bug in Netscape for some of my Javascript code - works ok in Internet Explorer. Given the following form element: <input type="text" compulsory = "yes" name="an_el"> ...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.