Hi Trent,
First, thanks for your promt reply. I changed the DSN as you suggested using Localhost and putting in my SQL 2005 credentials. Now the search customers form work ok.
I am a newby to this and I have a couple of questions based on your points.
1) I am now using an SQL log In rather than windows. Is this the distinction you were making when you refered to TCP/IP connection versus Named pipes ?
2) This might be a silly question but I thought that it was better to use Windows authentication or is this only for forms access.
3) In the mean while I have a similar set up on my laptop where I am using XP Professional. After the problem I had I went downstairs used my Laptop and realised it was probably on my laptop that I had seen the customer search working. I checked the global.asax file and noted I had not set up a connection string yet it appeared to be working ok. I am sure I read somewhere that the controls can use a default value for the connection string. Is this probably the case ? where did I set this default ?
4) In both my set-ups the Search Customer form now works ok. But, when I perform an edit of the data and try and save the edit I get the error below. I noted in the design view of the form WebBindingSource.aspx the grid view has an error
"There was an error rendering the control".
"The data source does not support server-side data paging.
I'm not sure they are related ... can you suggest what I'm doing wrong ?
Thanks in advance.
jd
Page error after edit
The business object 'Customers' could not be found on this page.
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.InvalidOperationException: The business object 'Customers' could not be found on this page.
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:
[InvalidOperationException: The business object 'Customers' could not be found on this page.]
|