It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#2 (permalink) |
|
Junior Member
Join Date: Jul 2006
Age: 28
Posts: 15
|
As far as I know, the Page_Load event fires BEFORE any control event, so the
SQL string has not been initialized when Page_Load calls the data binding method or procedure. Whether or not that clue solves the problem, you might want to pass a SqlCommand/OleDbCommand object to the SqlDataAdapter/OleDbDataAdapter instead of passing a query string. Before passing the SqlCommand/OleDbCommand object, set both its CommandText and CommandType (i.e., "Text") properties. |
|
|
|
|
|
#3 (permalink) |
|
Banned User
Join Date: Jul 2006
Location: India
Age: 30
Posts: 105
|
Hi,
You are getting this message because you havn't set your command text property for the command object. This property is used to set the SQL query for the command object. Which in turn gives you the result. For setting the command text property use this sample code. CmdObject.CommandText="SQL Query" |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What HTTP error is generated when there is an error in an ASP page? | agaba175 | ASP | 0 | 08-05-2006 08:25 PM |