Click here to Skip to main content
15,890,282 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Message Boards Pin
.NET4Ever30-Mar-07 5:51
.NET4Ever30-Mar-07 5:51 
QuestionGeneral solution to handle web application errors? Pin
wojti27-Mar-07 3:31
wojti27-Mar-07 3:31 
AnswerRe: General solution to handle web application errors? Pin
Marcus J. Smith27-Mar-07 4:15
professionalMarcus J. Smith27-Mar-07 4:15 
AnswerRe: General solution to handle web application errors? Pin
Vasudevan Deepak Kumar29-Mar-07 9:34
Vasudevan Deepak Kumar29-Mar-07 9:34 
Questionexporting a crystal report in to Excel format Pin
indian14326-Mar-07 22:03
indian14326-Mar-07 22:03 
AnswerRe: exporting a crystal report in to Excel format Pin
Vasudevan Deepak Kumar29-Mar-07 9:34
Vasudevan Deepak Kumar29-Mar-07 9:34 
QuestionContent management Pin
erikkl200026-Mar-07 18:05
erikkl200026-Mar-07 18:05 
AnswerRe: Content management Pin
Bradml26-Mar-07 20:53
Bradml26-Mar-07 20:53 
GeneralRe: Content management Pin
erikkl200027-Mar-07 3:12
erikkl200027-Mar-07 3:12 
GeneralRe: Content management Pin
Bradml27-Mar-07 3:14
Bradml27-Mar-07 3:14 
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 

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.