your code looks good but where is con.Open()
what error are you getting?
finito
Nearly a Posting Virtuoso
1,321 posts since May 2010
Reputation Points: 60
Solved Threads: 135
Which line are you getting this error?
DataRow dr = dt.Rows[0]; // ???
did you try to generate your stored procedure in the SQL Browser? Do they all give you a result?
finito
Nearly a Posting Virtuoso
1,321 posts since May 2010
Reputation Points: 60
Solved Threads: 135
there is no row at position 0 means your dataset is not populated..
execute the store procedure manually and let me know the o/p
dnanetwork
Practically a Master Poster
633 posts since May 2008
Reputation Points: 28
Solved Threads: 106