No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Sample code: Try Dim constr As String = ConfigurationManager.ConnectionStrings("FileDBConnectionString").ConnectionString Using con As New SqlConnection(constr) Using cmd As New SqlCommand() 'cmd.CommandText = "SELECT fldControlno, fldRecno, fldFileName ,fldDate FROM tblPDSTrainzATemp where fldRecno= ('" & txtrecordno.Text & "')" Convert(varchar, fldDate, 101) ' cmd.CommandText = "SELECT fldcontrolno,fldEmpID,Convert(varchar, fldDate, 101) as [Date],fldPosition, fldSalary, fldAttachType, fldfilename,fldfiletype,fldfiledata … |
|
Re:
I am not able to make a connection with database in gridview, please give me suggestion on reply |