Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2003, 10:38 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stored Proc error where there is no SP

I am getting the following error when passing the select item in a drop down list box to a datagrid. I am using inline sql statement not a SP. I have checked the syntax and don't knwo what else to check. Any help would be appreciated.

Server Error in '/ConnectionInformation' Application.
--------------------------------------------------------------------------------

Could not find stored procedure 'False'.
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: Could not find stored procedure 'False'.

Source Error:


Line 48:
Line 49: objConnection.Open()
Line 50: dgConnectionInformation.DataSource = objCommand.ExecuteReader
Line 51: dgConnectionInformation.DataBind()
Line 52: objConnection.Close()


Source File: \\My Documents\Visual Studio Projects\ConnectionInformation\ConnectionInformati on\default.aspx.vb Line: 50

Stack Trace:


[SqlException: Could not find stored procedure 'False'.]
   System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723
   System.Data.SqlClient.SqlCommand.ExecuteReader() +42
   ConnectionInformation.WebForm1.subListChange(Objec t S, EventArgs E) in \\My Documents\Visual Studio Projects\ConnectionInformation\ConnectionInformati on\default.aspx.vb:50
   System.Web.UI.WebControls.ListControl.OnSelectedIn dexChanged(EventArgs e) +108
   System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.RaisePostDataChangedEvent( ) +26
   System.Web.UI.Page.RaiseChangedEvents() +115
   System.Web.UI.Page.ProcessRequestMain() +1081

 
Old August 1st, 2003, 05:52 PM
Authorized User
 
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default


 Is the text 'False' in your SQL or in your data? is you data properly quoted? could you post your SQL Code too? thanks!

Regards,
Meredith Shaebanyan

 
Old August 3rd, 2003, 02:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

if u r sure the SP name is correct! write owner name if u connect with another user.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling an insert stored proc from a select stored dzitam SQL Language 10 April 2nd, 2007 12:39 PM
How to get value from stored proc busybee ASP.NET 1.0 and 1.1 Basics 4 April 2nd, 2006 01:06 AM
optional where in stored proc david_ste SQL Server ASP 2 October 27th, 2005 07:16 AM
How i can OUTPUT in Stored Proc yoord SQL Server 2000 2 July 19th, 2004 03:11 PM
Stored Proc and Access mega Classic ASP Databases 2 June 14th, 2003 06:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.