Click here to Skip to main content
16,008,954 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How many log in procedures are running behind the log in session of the user
Posted
Updated 13-Nov-13 2:30am
v3
Comments
phil.o 13-Nov-13 3:12am    
What is the type of your com variable?
What are the definitions (overloads) of the AddComment() method your are trying to use?
phil.o 13-Nov-13 3:20am    
I was not talking about the stored procedure, but about the .NET AddComment() method.
phil.o 13-Nov-13 3:22am    
Sorry, but I don't have time to browse the entire project for you :)
Please see my answer, I think I spotted the issue.
phil.o 13-Nov-13 3:42am    
Ok ; see my updated answer :)

1 solution

Anyway,

In the definition of your stored procedure, there is a @date value that you do not seem to take care of in your code.

You should pass a DateTime to your method and see what happens.

[edit]You may change this line of code:
C#
bool ret = com.AddComment(int.Parse(Request.QueryString["id"]), TextBox1.Text, TextBox2.Text, TextBox3.Text);

[/edit]
 
Share this answer
 
v3
Comments
phil.o 13-Nov-13 5:13am    
What is the type of the com variable?
Where is the AddComment() method defined?
phil.o 13-Nov-13 5:31am    
You did not answer : WHERE IS THE AddComment() METHOD DEFINED? I mean in which class?
phil.o 13-Nov-13 5:39am    
Can you post the complete Exception stack trace?
And, please, better improve your question rather than posting some code in comments, which are not meant for that at all.
phil.o 13-Nov-13 5:40am    
What is comDb variable's type?
Can you post the definition of the AddComment() method of the comDb variable's type?
phil.o 13-Nov-13 6:59am    
Can you show the AddComment() method of the Dd class?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900