Click here to Skip to main content
15,881,559 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Content management Pin
erikkl200027-Mar-07 3:47
erikkl200027-Mar-07 3:47 
GeneralRe: Content management Pin
Bradml27-Mar-07 3:49
Bradml27-Mar-07 3:49 
GeneralRe: Content management Pin
erikkl200027-Mar-07 6:40
erikkl200027-Mar-07 6:40 
GeneralRe: Content management Pin
erikkl200027-Mar-07 7:06
erikkl200027-Mar-07 7:06 
GeneralRe: Content management Pin
erikkl200027-Mar-07 8:41
erikkl200027-Mar-07 8:41 
GeneralRe: Content management Pin
Bradml27-Mar-07 20:56
Bradml27-Mar-07 20:56 
QuestionISAPI Server with MFC Pin
Ali Tavakol26-Mar-07 7:56
Ali Tavakol26-Mar-07 7:56 
QuestionDiplaying database (in C#) in website (in html) Pin
22teddy2226-Mar-07 7:38
22teddy2226-Mar-07 7:38 
I m trying to develope a webpage that can extract information from a ibm db2 database. The hardcoding is in C# but the web design is in html (I am using Visual Web Developer)
This is the code for connection to IBM DB2 database using the ODBC driver. However there is no output (no error either).
Is there anyway I can link this output to display it in my website?
Thanks alot!!!



using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data;
using System.Data.Odbc;


public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string connectionString =
"DSN=infofyp;" +
"UID=db2admin;" +
"PWD=palmolive";
IDbConnection dbcon;
dbcon = new OdbcConnection (connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();

//connecting to the table info_db2

string sql =
"SELECT p_id " +
"FROM deepa.info";

dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while (reader.Read()) {
string Identification = (string) reader ["p_id"];
Console.WriteLine ("Indentification: " + Identification);
}

//cleaning up
reader.Close();
reader = null;
dbcmd.Dispose();
dbcmd = null;
dbcon.Close();
dbcon = null;
}

}

AnswerRe: Diplaying database (in C#) in website (in html) Pin
Christian Graus26-Mar-07 7:51
protectorChristian Graus26-Mar-07 7:51 
GeneralRe: Diplaying database (in C#) in website (in html) Pin
22teddy2226-Mar-07 7:57
22teddy2226-Mar-07 7:57 
GeneralRe: Diplaying database (in C#) in website (in html) Pin
Christian Graus26-Mar-07 11:20
protectorChristian Graus26-Mar-07 11:20 
GeneralRe: Diplaying database (in C#) in website (in html) Pin
Shog926-Mar-07 13:23
sitebuilderShog926-Mar-07 13:23 
QuestionHow to disable the F5 button, refresh page, back button, forward button??? Pin
Robert_Pires26-Mar-07 6:57
Robert_Pires26-Mar-07 6:57 
AnswerRe: How to disable the F5 button, refresh page, back button, forward button??? Pin
Christian Graus26-Mar-07 11:21
protectorChristian Graus26-Mar-07 11:21 
AnswerRe: How to disable the F5 button, refresh page, back button, forward button??? Pin
M.Ramesh26-Mar-07 20:53
M.Ramesh26-Mar-07 20:53 
GeneralRe: How to disable the F5 button, refresh page, back button, forward button??? Pin
M.Ramesh26-Mar-07 20:55
M.Ramesh26-Mar-07 20:55 
AnswerRe: How to disable the F5 button, refresh page, back button, forward button??? Pin
RichardGrimmer27-Mar-07 5:45
RichardGrimmer27-Mar-07 5:45 
QuestionFrom Login to username! Pin
nclauder26-Mar-07 5:05
nclauder26-Mar-07 5:05 
QuestionMultiple file Uploade and retrieve Pin
jayvaishnav8226-Mar-07 5:02
jayvaishnav8226-Mar-07 5:02 
AnswerRe: Multiple file Uploade and retrieve Pin
Vasudevan Deepak Kumar29-Mar-07 9:35
Vasudevan Deepak Kumar29-Mar-07 9:35 
QuestionReload FileJavacript Pin
AnhTin25-Mar-07 23:17
AnhTin25-Mar-07 23:17 
AnswerRe: Reload FileJavacript Pin
Bradml26-Mar-07 0:37
Bradml26-Mar-07 0:37 
AnswerRe: Reload FileJavacript Pin
badgrs27-Mar-07 11:04
badgrs27-Mar-07 11:04 
QuestionJS/Cross-browser event handling - problem Pin
Dmitry Khudorozhkov24-Mar-07 7:22
Dmitry Khudorozhkov24-Mar-07 7:22 
QuestionCan someone test this on php 4.46 under Linux? Pin
Ted Ferenc23-Mar-07 6:47
Ted Ferenc23-Mar-07 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.