C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Cant retrive value


Posted Date: 09 Jul 2008      Total Responses: 1

Posted By: jyothis       Member Level: Bronze     Points: 1



whenever I tried to retrrieve a value using stored proc fro code behind using COM class ,Im totally failed because the error comes like this

"article id does not belong to the table"

I debug and I find the instead of id name is coming..

Just check the code

---------
Dim B(5), p As Object
B(0) = Trim(Session("UserId"))
B(1) = Trim(TxtArtistName.Text)
qry2 = "select * from articlemaster where articlename='" & Trim(TxtArticle.Text) & "'and categoryid='" & Trim(Drpcategory.SelectedValue) & "'"

dtab = SQL_Helper.GetTable(qry1)

If dtab.Rows.Count <> 0 Then
p = "Insert_Artist"
num = dtab.Rows(0).Item("articleid")
' = dtab.Rows(0).Item("articleid")
B(2) = num
SQL_Helper.ExecuteProcedure(B, p)
end if

---------------
and the stored proc is


CREATE PROCEDURE Insert_Artist
@artistid varchar(50),
@artistname varchar(50),
@articleid integer



AS
INSERT INTO ArtistMaster (artistid,artistname,articleid )
VALUES (@artistid,@artistname,@articleid)
GO







Responses

Author: krishna chaitanya    10 Jul 2008Member Level: SilverRating:     Points: 1

hi
i think that in ur ArtistMaster table does not having the field name 'articleid'

if it is there u check that u have given some space while calling field name 'article id '
ones u check that.



Post Reply
You must Sign In to post a response.
Next : authentication
Previous : Client Callbacks
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use