473,545 Members | 529 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Databind Error???

I'm having an issue and wanted to pass it by everyone to see what you think.
Here is my code.
//Code Start
searchs = new
Maritz.Learning .HP.Callcenter. BusinessService s.Searchs(base. ConnectionStrin g);
searchs.Search( this.FirstNameT extbox.Text, this.LastNameTe xtbox.Text,

this.EmailTextb ox.Text, this.CityTextBo x.Text, this.StateTextB ox.Text,
this.ZipTextBox .Text, this.IssueTextB ox.Text, this.CompanyNam eTextBox.Text,
Convert.ToInt32 (this.SiteDropD ownList.Selecte dValue.ToString ()),
Convert.ToInt32 (this.StatusDro pDownList.Selec tedValue.ToStri ng()));
this.ResultsDat aGrid.DataSourc e = searchs;

this.ResultsDat aGrid.DataBind( );
//Code End

This is on a click event from a web page. When the button is clicked the
searchs object is created and populated from a sproc. Then simply set the
datasource and bind it. This works perfectly, however, if I click the
button a 2nd, 3rd, or 4th time (usually on the 4th click) everything works
until I get to the DataBind(). The system will hang on that line and
produce this error.

Server Error in '/' Application.

--------------------------------------------------------------------------------

Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection string
and security settings!
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Exceptio n: Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection string
and security settings!

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection string
and security settings!]
Maritz.Learning .HP.Web.CallCen ter.Tracking.se archtask.Search Button_Click(Ob ject
sender, EventArgs e) in c:\inetpub\wwwr oot\hplogging\s earch.aspx.cs:9 0
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl,
String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1277


--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573

Has anyone ever seen anything like this?

Doug


Aug 3 '06 #1
3 2379
Doug,
You haven't included any of the code from your searchs object so nobody can
really tell what you are doing code-wise there. However, if it works the
first time and you get a connection failure in subsequent attempts you can be
pretty sure it's because the original (first) connection wasn't closed /
disposed properly.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Doug Durrett" wrote:
I'm having an issue and wanted to pass it by everyone to see what you think.
Here is my code.
//Code Start
searchs = new
Maritz.Learning .HP.Callcenter. BusinessService s.Searchs(base. ConnectionStrin g);
searchs.Search( this.FirstNameT extbox.Text, this.LastNameTe xtbox.Text,

this.EmailTextb ox.Text, this.CityTextBo x.Text, this.StateTextB ox.Text,
this.ZipTextBox .Text, this.IssueTextB ox.Text, this.CompanyNam eTextBox.Text,
Convert.ToInt32 (this.SiteDropD ownList.Selecte dValue.ToString ()),
Convert.ToInt32 (this.StatusDro pDownList.Selec tedValue.ToStri ng()));
this.ResultsDat aGrid.DataSourc e = searchs;

this.ResultsDat aGrid.DataBind( );
//Code End

This is on a click event from a web page. When the button is clicked the
searchs object is created and populated from a sproc. Then simply set the
datasource and bind it. This works perfectly, however, if I click the
button a 2nd, 3rd, or 4th time (usually on the 4th click) everything works
until I get to the DataBind(). The system will hang on that line and
produce this error.

Server Error in '/' Application.

--------------------------------------------------------------------------------

Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection string
and security settings!
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Exceptio n: Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection string
and security settings!

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection string
and security settings!]
Maritz.Learning .HP.Web.CallCen ter.Tracking.se archtask.Search Button_Click(Ob ject
sender, EventArgs e) in c:\inetpub\wwwr oot\hplogging\s earch.aspx.cs:9 0
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl,
String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1277


--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573

Has anyone ever seen anything like this?

Doug


Aug 3 '06 #2
Peter,

Here is the process we are using. Someone brainless where I work wrote a
wrapper object looking just like the Microsoft command object and even named
it the same/simular. I'm not opening a connection, I'm setting the
connection string to the command object and even disposing it and setting it
to null in the finally statment. Well here it is... hope it's not too long.

public virtual void Search(string p_firstName, string p_lastName, string
p_email,
string p_city, string p_state, string p_zip, string p_issue, string
p_companyName, int p_siteId,
int p_statusId)
{
SqlClient command = null;

try
{
command = new SqlClient(conne ctionString);
command.SetInpu tParameter("@p_ FirstName", SqlDbType.VarCh ar,
p_firstName);
command.SetInpu tParameter("@p_ LastName", SqlDbType.VarCh ar, p_lastName);
command.SetInpu tParameter("@p_ Email", SqlDbType.VarCh ar, p_email);
command.SetInpu tParameter("@p_ City", SqlDbType.VarCh ar, p_city);
command.SetInpu tParameter("@p_ State", SqlDbType.VarCh ar, p_state);
command.SetInpu tParameter("@p_ Zip", SqlDbType.VarCh ar, p_zip);
command.SetInpu tParameter("@p_ Issue", SqlDbType.VarCh ar, p_issue);
command.SetInpu tParameter("@p_ CompanyName", SqlDbType.VarCh ar,
p_companyName);
//command.SetInpu tParameter("@p_ TaskDateTime", SqlDbType.DateT ime,
p_taskDateTime) ;
//command.SetInpu tParameter("@p_ TaskActivityCom ment", SqlDbType.VarCh ar,
p_taskActivityC omment);
//command.SetInpu tParameter("@p_ TaskActivityLas tModDate",
SqlDbType.DateT ime, p_taskActivityL astModDate);
command.SetInpu tParameter("@p_ SiteId", SqlDbType.Int, p_siteId);
command.SetInpu tParameter("@p_ StatusId", SqlDbType.Int, p_statusId);
Load(command, "Search");
}
catch(Exception ex)
{
throw ex;
}
finally
{
command.Dispose ();
command = null;
}
}

protected virtual void Load(SqlClient command, string commandText)
{
IDataReader reader = null;
Search search = null;

try
{
//Execute command object
command.Execute SqlCommand(comm andText, out reader);
//Iterate through reader object to read and set the values
while(reader.Re ad())
{
search = new Search(base.con nectionString);
//Set the reader field values to channel object

search.SetValue s(reader);
//Add to chanels collection

this.Add(search );
search = null;
}
}
catch(Exception ex)
{
throw ex;
}
finally
{
reader.Close();
reader.Dispose( );
reader = null;
search = null;
command.Dispose ();
command = null;

}
}

private void executeSqlComma nd(string CommandText, out
IDataReader DataReader)
{

this.Command = new sqlClient.SqlCo mmand(CommandTe xt);
this.Command.Co mmandTimeout = 15;
this.ExecuteSql Command(this.Co mmand, CommandType.Sto redProcedure, out
DataReader);
}
public virtual void SetValues(IData Reader reader)
{
try
{
if (reader["ContactId"] != DBNull.Value)
contactId = Convert.ToInt32 (reader["ContactId"]);

if (reader["TaskId"] != DBNull.Value)
taskId = Convert.ToInt32 (reader["TaskId"]);

if (reader["LastName"] != DBNull.Value)
lastName = reader["LastName"].ToString();

if (reader["FirstName"] != DBNull.Value)
firstName = reader["FirstName"].ToString();

if (reader["City"] != DBNull.Value)
city = reader["City"].ToString();

if (reader["State"] != DBNull.Value)
state = reader["State"].ToString();

if (reader["Zip"] != DBNull.Value)
zip = reader["Zip"].ToString();

if (reader["Email"] != DBNull.Value)
email = reader["Email"].ToString();

if (reader["Issue"] != DBNull.Value)
issue = reader["Issue"].ToString();

if (reader["CompanyNam e"] != DBNull.Value)
companyname = reader["CompanyNam e"].ToString();

// if (reader["TaskActivityCo mment"] != DBNull.Value)
// taskActivityCom ment = reader["TaskActivityCo mment"].ToString();

if (reader["SiteId"] != DBNull.Value)
siteId = Convert.ToInt32 (reader["SiteId"]);

if (reader["StatusId"] != DBNull.Value)
statusId = Convert.ToInt32 (reader["StatusId"]);

// if (reader["ActivityNa me"] != DBNull.Value)
// activityname = reader["activityna me"].ToString();
}

catch(Exception ex)
{
throw ex;
}
}



"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com wrote in message
news:B1******** *************** ***********@mic rosoft.com...
Doug,
You haven't included any of the code from your searchs object so nobody
can
really tell what you are doing code-wise there. However, if it works the
first time and you get a connection failure in subsequent attempts you can
be
pretty sure it's because the original (first) connection wasn't closed /
disposed properly.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Doug Durrett" wrote:
>I'm having an issue and wanted to pass it by everyone to see what you
think.
Here is my code.
//Code Start
searchs = new
Maritz.Learnin g.HP.Callcenter .BusinessServic es.Searchs(base .ConnectionStri ng);
searchs.Search (this.FirstName Textbox.Text, this.LastNameTe xtbox.Text,

this.EmailText box.Text, this.CityTextBo x.Text, this.StateTextB ox.Text,
this.ZipTextBo x.Text, this.IssueTextB ox.Text,
this.CompanyNa meTextBox.Text,
Convert.ToInt3 2(this.SiteDrop DownList.Select edValue.ToStrin g()),
Convert.ToInt3 2(this.StatusDr opDownList.Sele ctedValue.ToStr ing()));
this.ResultsDa taGrid.DataSour ce = searchs;

this.ResultsDa taGrid.DataBind ();
//Code End

This is on a click event from a web page. When the button is clicked
the
searchs object is created and populated from a sproc. Then simply set
the
datasource and bind it. This works perfectly, however, if I click the
button a 2nd, 3rd, or 4th time (usually on the 4th click) everything
works
until I get to the DataBind(). The system will hang on that line and
produce this error.

Server Error in '/' Application.

--------------------------------------------------------------------------------

Failed to open a data connection
Server=FENSQLL IBD01;database= HPCustomerSuppo rt;user
id=HPCustomerS upport;password =*2rT44Y* - please check the connection
string
and security settings!
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Exceptio n: Failed to open a data connection
Server=FENSQLL IBD01;database= HPCustomerSuppo rt;user
id=HPCustomerS upport;password =*2rT44Y* - please check the connection
string
and security settings!

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Failed to open a data connection
Server=FENSQLL IBD01;database= HPCustomerSuppo rt;user
id=HPCustomerS upport;password =*2rT44Y* - please check the connection
string
and security settings!]
Maritz.Learnin g.HP.Web.CallCe nter.Tracking.s earchtask.Searc hButton_Click(O bject
sender, EventArgs e) in c:\inetpub\wwwr oot\hplogging\s earch.aspx.cs:9 0
System.Web.UI. WebControls.But ton.OnClick(Eve ntArgs e) +108
System.Web.UI. WebControls.But ton.System.Web. UI.IPostBackEve ntHandler.Raise PostBackEvent(S tring
eventArgumen t) +57
System.Web.UI. Page.RaisePostB ackEvent(IPostB ackEventHandler
sourceContro l,
String eventArgument) +18
System.Web.UI. Page.RaisePostB ackEvent(NameVa lueCollection postData) +33
System.Web.UI. Page.ProcessReq uestMain() +1277


--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.432 2.573;
ASP.NET
Version:1.1.43 22.573

Has anyone ever seen anything like this?

Doug



Aug 3 '06 #3
Doug,
Agreed. It's a first-class mess. I don't see anywhere in there that a
connection is actually being closed. If a SqlDataReader, and the
CommandBehavior .CloseConnectio n enum was being used, that would be a good
start.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Doug Durrett" wrote:
Peter,

Here is the process we are using. Someone brainless where I work wrote a
wrapper object looking just like the Microsoft command object and even named
it the same/simular. I'm not opening a connection, I'm setting the
connection string to the command object and even disposing it and setting it
to null in the finally statment. Well here it is... hope it's not too long.

public virtual void Search(string p_firstName, string p_lastName, string
p_email,
string p_city, string p_state, string p_zip, string p_issue, string
p_companyName, int p_siteId,
int p_statusId)
{
SqlClient command = null;

try
{
command = new SqlClient(conne ctionString);
command.SetInpu tParameter("@p_ FirstName", SqlDbType.VarCh ar,
p_firstName);
command.SetInpu tParameter("@p_ LastName", SqlDbType.VarCh ar, p_lastName);
command.SetInpu tParameter("@p_ Email", SqlDbType.VarCh ar, p_email);
command.SetInpu tParameter("@p_ City", SqlDbType.VarCh ar, p_city);
command.SetInpu tParameter("@p_ State", SqlDbType.VarCh ar, p_state);
command.SetInpu tParameter("@p_ Zip", SqlDbType.VarCh ar, p_zip);
command.SetInpu tParameter("@p_ Issue", SqlDbType.VarCh ar, p_issue);
command.SetInpu tParameter("@p_ CompanyName", SqlDbType.VarCh ar,
p_companyName);
//command.SetInpu tParameter("@p_ TaskDateTime", SqlDbType.DateT ime,
p_taskDateTime) ;
//command.SetInpu tParameter("@p_ TaskActivityCom ment", SqlDbType.VarCh ar,
p_taskActivityC omment);
//command.SetInpu tParameter("@p_ TaskActivityLas tModDate",
SqlDbType.DateT ime, p_taskActivityL astModDate);
command.SetInpu tParameter("@p_ SiteId", SqlDbType.Int, p_siteId);
command.SetInpu tParameter("@p_ StatusId", SqlDbType.Int, p_statusId);
Load(command, "Search");
}
catch(Exception ex)
{
throw ex;
}
finally
{
command.Dispose ();
command = null;
}
}

protected virtual void Load(SqlClient command, string commandText)
{
IDataReader reader = null;
Search search = null;

try
{
//Execute command object
command.Execute SqlCommand(comm andText, out reader);
//Iterate through reader object to read and set the values
while(reader.Re ad())
{
search = new Search(base.con nectionString);
//Set the reader field values to channel object

search.SetValue s(reader);
//Add to chanels collection

this.Add(search );
search = null;
}
}
catch(Exception ex)
{
throw ex;
}
finally
{
reader.Close();
reader.Dispose( );
reader = null;
search = null;
command.Dispose ();
command = null;

}
}

private void executeSqlComma nd(string CommandText, out
IDataReader DataReader)
{

this.Command = new sqlClient.SqlCo mmand(CommandTe xt);
this.Command.Co mmandTimeout = 15;
this.ExecuteSql Command(this.Co mmand, CommandType.Sto redProcedure, out
DataReader);
}
public virtual void SetValues(IData Reader reader)
{
try
{
if (reader["ContactId"] != DBNull.Value)
contactId = Convert.ToInt32 (reader["ContactId"]);

if (reader["TaskId"] != DBNull.Value)
taskId = Convert.ToInt32 (reader["TaskId"]);

if (reader["LastName"] != DBNull.Value)
lastName = reader["LastName"].ToString();

if (reader["FirstName"] != DBNull.Value)
firstName = reader["FirstName"].ToString();

if (reader["City"] != DBNull.Value)
city = reader["City"].ToString();

if (reader["State"] != DBNull.Value)
state = reader["State"].ToString();

if (reader["Zip"] != DBNull.Value)
zip = reader["Zip"].ToString();

if (reader["Email"] != DBNull.Value)
email = reader["Email"].ToString();

if (reader["Issue"] != DBNull.Value)
issue = reader["Issue"].ToString();

if (reader["CompanyNam e"] != DBNull.Value)
companyname = reader["CompanyNam e"].ToString();

// if (reader["TaskActivityCo mment"] != DBNull.Value)
// taskActivityCom ment = reader["TaskActivityCo mment"].ToString();

if (reader["SiteId"] != DBNull.Value)
siteId = Convert.ToInt32 (reader["SiteId"]);

if (reader["StatusId"] != DBNull.Value)
statusId = Convert.ToInt32 (reader["StatusId"]);

// if (reader["ActivityNa me"] != DBNull.Value)
// activityname = reader["activityna me"].ToString();
}

catch(Exception ex)
{
throw ex;
}
}



"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com wrote in message
news:B1******** *************** ***********@mic rosoft.com...
Doug,
You haven't included any of the code from your searchs object so nobody
can
really tell what you are doing code-wise there. However, if it works the
first time and you get a connection failure in subsequent attempts you can
be
pretty sure it's because the original (first) connection wasn't closed /
disposed properly.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Doug Durrett" wrote:
I'm having an issue and wanted to pass it by everyone to see what you
think.
Here is my code.
//Code Start
searchs = new
Maritz.Learning .HP.Callcenter. BusinessService s.Searchs(base. ConnectionStrin g);
searchs.Search( this.FirstNameT extbox.Text, this.LastNameTe xtbox.Text,

this.EmailTextb ox.Text, this.CityTextBo x.Text, this.StateTextB ox.Text,
this.ZipTextBox .Text, this.IssueTextB ox.Text,
this.CompanyNam eTextBox.Text,
Convert.ToInt32 (this.SiteDropD ownList.Selecte dValue.ToString ()),
Convert.ToInt32 (this.StatusDro pDownList.Selec tedValue.ToStri ng()));
this.ResultsDat aGrid.DataSourc e = searchs;

this.ResultsDat aGrid.DataBind( );
//Code End

This is on a click event from a web page. When the button is clicked
the
searchs object is created and populated from a sproc. Then simply set
the
datasource and bind it. This works perfectly, however, if I click the
button a 2nd, 3rd, or 4th time (usually on the 4th click) everything
works
until I get to the DataBind(). The system will hang on that line and
produce this error.

Server Error in '/' Application.

--------------------------------------------------------------------------------

Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection
string
and security settings!
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Exceptio n: Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection
string
and security settings!

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Failed to open a data connection
Server=FENSQLLI BD01;database=H PCustomerSuppor t;user
id=HPCustomerSu pport;password= *2rT44Y* - please check the connection
string
and security settings!]
Maritz.Learning .HP.Web.CallCen ter.Tracking.se archtask.Search Button_Click(Ob ject
sender, EventArgs e) in c:\inetpub\wwwr oot\hplogging\s earch.aspx.cs:9 0
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl,
String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1277


--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.432 2.573;
ASP.NET
Version:1.1.432 2.573

Has anyone ever seen anything like this?

Doug




Aug 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4756
by: Jim Heavey | last post by:
Hello, when I place the command of "Page.Databind()" into my program, the program generates and error saying "value was outside of range". If I take the instruction out, then the page displays and does not abend. Of course the fields that I want to display data do not have data on them I have 5 instructions which are of the <%# %> variety....
5
2835
by: Joel Reinford | last post by:
I am attempting to verify whether a datareader is closed by calling the databind on a control. for example (fake code) Dim rdr as SqlDataReader rdr = mycommand.executeReader... MyDataGrid.DataSource = rdr MyDataGrid.DataBind()
7
3219
by: Martin | last post by:
Hi, I have a page where according to the mode of use, different controls are visible. I had assumed that Page.DataBind() would only bind visible controls, but apparently not. Do I have to write my own Page.DataBind() to step through and only bind to visible controls, or is there a better solution?
4
1360
by: Dee | last post by:
Hi, I'm working on a sample WebForm proj that accesses an Access database. There is a desgn-time DataSet ds1 and a DataGrid dg. Page_Load contains 2 lines: da.Fill(ds1) dg.DataBind().
0
1373
by: Karim | last post by:
I have a datagrid with a collection of columns and the datagrid is populated as in the code below. The value of test = 3 rows which is correct. However I get an exception when the code hits the Databind line. When I removed all the columns and dg is left with <columns></columns>, I don't get an error. If there's any column in the collection no...
1
2927
by: Craig | last post by:
This is killing me, I've been trying to figure this out for 2 days. When I click on the linkbutton, it executes the GetData(int) method to set the DataSource. The FAILURE is when it tries to call databind (sender.DataBind(); in NeedList_ItemCommand method). The error message is at the bottom of this message...
2
2384
by: jslaybaugh | last post by:
I am trying to bind to a GridView or DetailsView after a callback using the ClientCallback Manager in the new .NET 2.0 framework. See below for the HTML followed by the VB code: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function GetEmployeeInfo(empID)
0
2393
by: sreejith.ram | last post by:
I did google & search in this group , but couldnt find any thing related to this. This is my first attempt to connect GridView to a Oracle database via SqlDataSource. I am receving error message "OCIEnvNlsCreate failed with return code -1 but error message text was not available" Any one seen this or anything similar? Thank you in...
1
377
by: RN1 | last post by:
Consider the following code which binds records from a DB to a Repeater: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Dim dSet As DataSet Dim sqlConn As SqlConnection Dim sqlDapter As SqlDataAdapter sqlConn = New SqlConnection(".....")
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5325
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.