Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



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

Posts: 48
Trades: 0
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
 
 
Register now for full access!
Old 08-07-2006, 09:11 AM Re: 2 formviews in 2 web user controls on one web page dont work
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
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
__________________
- -- --- ---- ----- ------ ------- ---------------
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.09847 seconds with 12 queries