Reply
2 formviews in 2 web user controls on one web page dont work
Old 07-31-2006, 11:56 AM 2 formviews in 2 web user controls on one web page dont work
Experienced Talker

Posts: 48
hi guys

i have a "web page" with two "web user controls".

each web user control has a sql data source and a corresponding formview on it.

formview1 on the first web user control works fine and allows me to update it.

formview2 on the second web user control is visable and i can press the edit button. when i press the update button i get the following error:


Server Error in '/intranet' Application.

The data types text and nvarchar are incompatible in the equal to operator.

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.Data.SqlClient.SqlException: The data types text and nvarchar are incompatible in the equal to operator.

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:


any ideas???????


__________________
regards,

Pauly.
The true sign of intelligence is not knowledge but imagination. (Albert Einstein)
Be who you are and say what you feel,
because those who mind don't matter and those who matter don't mind. (Dr. Seuss
)
paulwebmaster is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-07-2006, 08:11 AM Re: 2 formviews in 2 web user controls on one web page dont work
saadatshah's Avatar
Extreme Talker

Posts: 216
Name: Syed Saadat Ali
Location: Lahore, Pakistan
This is a problem in your query because you can not compare a text to a nvarchar using equal operator. Kindly do the proper conversions to solve this. if you are unable to slove it post ur SQL code here
__________________
Traffic School - Driver Ed - Defensive Driving - Texas Defensive Driving - Online Traffic School - Defensive Driving Course
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Reply     « Reply to 2 formviews in 2 web user controls on one web page dont work
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11026 seconds with 12 queries