View Single Post
  #2 (permalink)  
Old August 4th, 2007, 02:47 AM
gaurav_jain2403 gaurav_jain2403 is offline
Friend of Wrox
Join Date: Feb 2006
Location: noida, UP, India.
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403

This line is incorrect:-
SqlDataSource1.UpdateParameters.Add("@myname", SqlDbType.NVarChar, na)

You should write it as follow:-
SqlDataSource1.UpdateParameters.Add("@myname", System.TypeCode.String, na)
Reply With Quote