Click here to Skip to main content
15,892,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question[Document Scanning Application] Pin
samshah51217-May-07 17:49
samshah51217-May-07 17:49 
AnswerRe: [Document Scanning Application] Pin
Christian Graus17-May-07 18:45
protectorChristian Graus17-May-07 18:45 
QuestionDataset Pin
Mkanchha17-May-07 16:17
Mkanchha17-May-07 16:17 
GeneralRe: Dataset Pin
N a v a n e e t h17-May-07 18:59
N a v a n e e t h17-May-07 18:59 
AnswerRe: Dataset Pin
N a v a n e e t h17-May-07 18:57
N a v a n e e t h17-May-07 18:57 
GeneralRe: Dataset Pin
Sandeep Akhare17-May-07 20:20
Sandeep Akhare17-May-07 20:20 
JokeRe: Dataset Pin
N a v a n e e t h17-May-07 22:45
N a v a n e e t h17-May-07 22:45 
Questionasp.net, C# table adapters, time out Pin
ltrain217-May-07 12:11
ltrain217-May-07 12:11 
Hi,

I have been getting timeout errors for displaying my data. I used this code:

using System;
using System.Collections.Generic;
using System.Text;

namespace MyAdapters
{
public partial class working_step_a00TableAdapter
{
public string ConnectionString
{
get
{
return this.Connection.ConnectionString;
}
set
{
Connection.ConnectionString = value;
}
}

public void SetCommandTimeout(int timeout)
{
foreach (IDbCommand command in CommandCollection)
command.CommandTimeout = timeout;
}
}
}

And in the page load section, it has:
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 MyAdapters;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
this.working_step_a00TableAdapter.SelectCommandTimeout = 300;
}
}

It doesn't understand 'using MyAdapters;' and it does not seem to work. What I am missing here? Thanks for your help.





ltrain2
AnswerRe: asp.net, C# table adapters, time out Pin
Christian Graus17-May-07 12:27
protectorChristian Graus17-May-07 12:27 
GeneralRe: asp.net, C# table adapters, time out Pin
ltrain218-May-07 4:18
ltrain218-May-07 4:18 
QuestionWeb Parts and Sharepoint Services Pin
Matt_K17-May-07 11:43
Matt_K17-May-07 11:43 
QuestionControling aspx visibility Pin
aransiola17-May-07 10:20
aransiola17-May-07 10:20 
QuestionCompare validator not working Pin
aransiola17-May-07 10:08
aransiola17-May-07 10:08 
AnswerRe: Compare validator not working Pin
Jagadeesh Jupalli17-May-07 20:05
Jagadeesh Jupalli17-May-07 20:05 
QuestionMultiple email attachment in asp.net Pin
aransiola17-May-07 10:03
aransiola17-May-07 10:03 
AnswerRe: Multiple email attachment in asp.net Pin
Not Active17-May-07 11:51
mentorNot Active17-May-07 11:51 
QuestionXP Style Icons Pin
martin_hughes17-May-07 9:37
martin_hughes17-May-07 9:37 
AnswerRe: XP Style Icons Pin
Sathesh Sakthivel17-May-07 15:15
Sathesh Sakthivel17-May-07 15:15 
Questionfind duplicate keys Pin
seemamltn17-May-07 9:23
seemamltn17-May-07 9:23 
AnswerRe: find duplicate keys Pin
Tarakeshwar Reddy17-May-07 9:30
professionalTarakeshwar Reddy17-May-07 9:30 
QuestionFile Upload Pin
vasini17-May-07 9:12
vasini17-May-07 9:12 
AnswerRe: File Upload Pin
Parwej Ahamad17-May-07 18:03
professionalParwej Ahamad17-May-07 18:03 
GeneralRe: File Upload Pin
BINOVAR17-May-07 19:50
BINOVAR17-May-07 19:50 
QuestionAre there any cool websites created entirely using Visual Studio .Net 2005 Asp.net 2.0?? Pin
Nada Adel17-May-07 8:06
Nada Adel17-May-07 8:06 
AnswerRe: Are there any cool websites created entirely using Visual Studio .Net 2005 Asp.net 2.0?? Pin
Not Active17-May-07 8:35
mentorNot Active17-May-07 8:35 

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.