Click here to Skip to main content
13,198,551 members (59,840 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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 supplied.my question is how to supplllied id.


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

1 solution

Rate this: bad
 
good
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));
  Permalink  
Comments
Member 9917321 17-Mar-13 0:42am
   
What is 1001 here..is 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 |
Web01 | 2.8.171020.1 | Last Updated 17 Mar 2013
Copyright © CodeProject, 1999-2017
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