Parameter with DbType

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
 
C

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
 
G

Guest

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")
 

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,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top