Parameter with DbType

  • Thread starter Thread starter Vik
  • Start date Start date
V

Vik

On the Web page there is an SQLDataSource with the InsertQuery and
UpdateQuery that have some parameters with DbType = DateTime. My Web site
works when I run it from a designer (VS 2005) or by an address
http://MyCompName/MyWebsiteName.

After I click "Publish Web site" button, copy the precompiled Web site on a
server, and open it on the server, I get an error message:

"Type 'System.Web.UI.WebControls.Parameter' does not have a public property
named 'DbType'".

Both my computer and the server use the same ASP.NET version 2.0.50727.

What is wrong here?

Thanks.

Victor
 
I just ran into the same thing. The production server is the same rev as the
dev box, just like yours.

Any answers?
Chris
 
I just ran into the same thing. The production server is the same rev as the
dev box, just like yours.

Any answers?
Chris









- Show quoted text -

Try to set Type = DateTime (just delete "DbType")
 
Back
Top