•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 403,387 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,535 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 879 | Replies: 1
![]() |
•
•
Join Date: Feb 2008
Posts: 68
Reputation:
Rep Power: 1
Solved Threads: 2
hiii, i am using asp.net 2005 and sql server 2005...i hav a page in which i have used gridview ant sql data source..
i have written the update command for the same..the problem is when i add the where clause in the query i get an error ,,,,here is the code
the error i get is:::
if i remove the where clause and the i update the whole column gets updated....
can ne1 help me,,,,,hope u understood my prob....pls reply,,its urgent
thnks in advance
i have written the update command for the same..the problem is when i add the where clause in the query i get an error ,,,,here is the code
UpdateCommand="UPDATE SMEtre_Master SET FirstName =@FirstName, LastName =@LastName, Type_of_SME =@Type_of_SME, Agency_Name =@Agency_Name, Email =@Email, Address =@Address, Phone =@Phone, Mobile =@Mobile, Fax =@Fax, Experience =@Experience, City =@City, State =@State where SME_Id=@SME_Id"
Exception Details: System.Data.SqlClient.SqlException: Must declare the scalar variable "@SME_Id".
can ne1 help me,,,,,hope u understood my prob....pls reply,,its urgent
thnks in advance
Johnny.G
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- conversion problem (ASP.NET)
- conversion from string to double error (VB.NET)
- Editing a hyperlinkcontrl in a gridview (ASP.NET)
- C# .NET Gridview (C#)
Other Threads in the ASP.NET Forum
- Previous Thread: Access folder+files located outside webfolder
- Next Thread: excel file upload problem


Linear Mode