databinding

D

Doug Durrett

I'm having an issue and wanted to pass by everyone to see what you think.
Here is my code.



searchs = new
Maritz.Learning.HP.Callcenter.BusinessServices.Searchs(base.ConnectionString);



searchs.Search(this.FirstNameTextbox.Text, this.LastNameTextbox.Text,

this.EmailTextbox.Text, this.CityTextBox.Text, this.StateTextBox.Text,
this.ZipTextBox.Text, this.IssueTextBox.Text, this.CompanyNameTextBox.Text,
Convert.ToInt32(this.SiteDropDownList.SelectedValue.ToString()),
Convert.ToInt32(this.StatusDropDownList.SelectedValue.ToString()));



this.ResultsDataGrid.DataSource = searchs;



this.ResultsDataGrid.DataBind();





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=FENSQLLIBD01;database=HPCustomerSupport;user
id=HPCustomerSupport;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.Exception: Failed to open a data connection
Server=FENSQLLIBD01;database=HPCustomerSupport;user
id=HPCustomerSupport;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=FENSQLLIBD01;database=HPCustomerSupport;user
id=HPCustomerSupport;password=*2rT44Y* - please check the connection string
and security settings!]
Maritz.Learning.HP.Web.CallCenter.Tracking.searchtask.SearchButton_Click(Object
sender, EventArgs e) in c:\inetpub\wwwroot\hplogging\search.aspx.cs:90
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277




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

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573



Have you ever seen anything like this? Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top