Click here to Skip to main content
15,885,365 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: redirect page in asp.net Pin
GenJerDan20-Sep-11 5:14
GenJerDan20-Sep-11 5:14 
GeneralRe: redirect page in asp.net Pin
ZeroOne820-Sep-11 9:20
ZeroOne820-Sep-11 9:20 
AnswerRe: redirect page in asp.net Pin
Shah Rizal22-Sep-11 19:02
Shah Rizal22-Sep-11 19:02 
Questionasp.net 2010 debugging Pin
classy_dog19-Sep-11 6:51
classy_dog19-Sep-11 6:51 
AnswerRe: asp.net 2010 debugging Pin
Pete O'Hanlon19-Sep-11 7:50
mvePete O'Hanlon19-Sep-11 7:50 
QuestionC# main in asp.net Pin
classy_dog19-Sep-11 6:17
classy_dog19-Sep-11 6:17 
AnswerRe: C# main in asp.net Pin
ekolis19-Sep-11 7:15
ekolis19-Sep-11 7:15 
QuestionResponse slow while connecting to DB2 Pin
Member 322226419-Sep-11 6:09
Member 322226419-Sep-11 6:09 
H, I had used OLEDB provider to connect to DB2.When i run the code the system response is slow when connection is open.When i debug it hangs in connection ope.

Please suggest some code or idea

C#
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OleDb;
namespace Supply_Chain
{
public partial class _Default : System.Web.UI.Page
{

// connString=@/"Driver={IBM DB2 ODBC DRIVER};Database=DB2data;Hostname=serverName;Port=446; Protocol=TCPIP;Uid=DB2data;Pwd=DB2data";
OleDbConnection conn = new OleDbConnection();

//conn.ConnectionString = @\"Driver=DB2OLEDB;Initial Catalog=BBTFILEA;User id=KSUNDER;Port=23;Hostname=10.140.201.21;Password=welcome1;"); 

//DataBase=BBTFILEA;Protocol=TCPIP;Port=23;Hostname=10.140.201.21;Uid=KSUNDER;Pwd=welcome1;";
// public string connString = ConfigurationManager.ConnectionStrings["DB2LOGIN"].ConnectionString;


protected void Page_Load(object sender, EventArgs e)
{
string connString = @"Provider=IBMDADB2;Database=BBTFILEA;Uid=KSUNDER;Protocol=TCPIP;Port=23;Hostname=10.140.201.21;Pwd=welcome1;"; 
DataTable dt = new DataTable();
dt = DB2data(null, null, connString);
}
public DataTable DB2data(OleDbParameter[] Params, string spName, string connString)
{

DataSet ds = new DataSet();

using (OleDbConnection DBConn = new OleDbConnection(connString))
{
DBConn.Open();
Response.Write("CONNECTED TO DB2");
DBConn.Close();
}



return ds.Tables[0];

}
}
}


Regards
S.Guhananth
QuestionHow to call a method based on two asynchronous response handlers completed in ASP.NET and C#? Pin
rams218-Sep-11 20:03
rams218-Sep-11 20:03 
Questionabout connectivity of share market database. Pin
ohm_desai18-Sep-11 3:27
ohm_desai18-Sep-11 3:27 
AnswerRe: about connectivity of share market database. Pin
Ramkumar_S18-Sep-11 21:21
Ramkumar_S18-Sep-11 21:21 
AnswerRe: about connectivity of share market database. Pin
MaulikDusara19-Sep-11 2:13
MaulikDusara19-Sep-11 2:13 
Questionhow to show news on my page in between marquee using asp.net Pin
umeshdaiya18-Sep-11 3:19
umeshdaiya18-Sep-11 3:19 
AnswerRe: how to show news on my page in between marquee using asp.net Pin
m@dhu18-Sep-11 3:38
m@dhu18-Sep-11 3:38 
GeneralRe: how to show news on my page in between marquee using asp.net Pin
subhash11118-Sep-11 6:00
subhash11118-Sep-11 6:00 
GeneralRe: how to show news on my page in between marquee using asp.net Pin
umeshdaiya18-Sep-11 21:58
umeshdaiya18-Sep-11 21:58 
QuestionProblems connecting to AS/400 Pin
Member 322226418-Sep-11 1:29
Member 322226418-Sep-11 1:29 
QuestionPayPal Instant Payment Notification(IPN) Issue.. Pin
NetMan201217-Sep-11 8:45
NetMan201217-Sep-11 8:45 
AnswerRe: PayPal Instant Payment Notification(IPN) Issue.. Pin
Richard Andrew x6417-Sep-11 16:22
professionalRichard Andrew x6417-Sep-11 16:22 
AnswerRe: PayPal Instant Payment Notification(IPN) Issue.. Pin
MaulikDusara18-Sep-11 21:00
MaulikDusara18-Sep-11 21:00 
Questioncreate chat room Pin
apadana_198917-Sep-11 7:02
apadana_198917-Sep-11 7:02 
AnswerRe: create chat room Pin
m@dhu18-Sep-11 3:39
m@dhu18-Sep-11 3:39 
QuestionBroadcastMessage Pin
apadana_198917-Sep-11 3:16
apadana_198917-Sep-11 3:16 
AnswerRe: BroadcastMessage Pin
Parwej Ahamad17-Sep-11 5:13
professionalParwej Ahamad17-Sep-11 5:13 
AnswerRe: BroadcastMessage Pin
MaulikDusara19-Sep-11 2:14
MaulikDusara19-Sep-11 2:14 

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.