i wanna know the concept of datakey name in grid view how its work...
when we connect it to the sqldatasource when i updata the field
i write the following code:
<asp:SqlDataSou rce ID="datasource1 " ProviderName="S ystem.Data.SqlC lient" runat="server" ConnectionStrin g="<%$Connectio nStrings:Connec tionString%>" SelectCommand=" Select * From ManageClient"
UpdateCommand=" Update ManageClient Set ClientName=@Cli entName,Address =@Address,Mobil eNo=@MobileNo,I mage=@Image Where ClientId=@Clien tId"></asp:SqlDataSour ce>
in the above code we donot use <updateparamete r> tag can u explain why
when i connect it to the grid view & i keep the datakeynames="C lientId"
Thank you
when we connect it to the sqldatasource when i updata the field
i write the following code:
<asp:SqlDataSou rce ID="datasource1 " ProviderName="S ystem.Data.SqlC lient" runat="server" ConnectionStrin g="<%$Connectio nStrings:Connec tionString%>" SelectCommand=" Select * From ManageClient"
UpdateCommand=" Update ManageClient Set ClientName=@Cli entName,Address =@Address,Mobil eNo=@MobileNo,I mage=@Image Where ClientId=@Clien tId"></asp:SqlDataSour ce>
in the above code we donot use <updateparamete r> tag can u explain why
when i connect it to the grid view & i keep the datakeynames="C lientId"
Thank you
Comment