Click here to Skip to main content
11,927,006 members (52,763 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
i have created one menu with repeater control.there are so many hyperllink.if anyone of hyperinks is clicked this below procedure is called.if any one hyperlink is clicked an error occurs with a message that @ProductID which was not question is how to supplllied id.

objCmd.CommandType = CommandType.StoredProcedure;
objCmd.CommandText = "PR_PrductShow_SelectByPrimaryKey";
Posted 16-Mar-13 19:08pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

you can send storedprocedure parameters various ways. One example like
objCmd.Parameters.Add(new SqlParameter("@ProductID", 1001));
Member 9917321 17-Mar-13 0:42am
What is 1001 this Port number??
S. M. Ahasan Habib 17-Mar-13 8:44am
this is product number
Member 9917321 18-Mar-13 6:40am
ok, thanx a lot fr help me...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 17 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100