also I tried to put this @type line which u have given above in the code and it shows the below error
Server Error in '/' Application.
Must declare the scalar variable "@Type".
Description: An
unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Must declare the scalar variable "@Type".
Source Error:
Line 75: CommsRoom.Value = DirectCast(GridView1.FooterRow.FindControl("txtcommsroom"), TextBox).Text
Line 76:
Line 77: SqlDataSourcepabx.Insert()
Line 78: End If
Line 79:
Member
200 Points
691 Posts
Re: need a add a fixed value to gridview column
May 10, 2016 11:38 AM|Lexi85|LINK
also I tried to put this @type line which u have given above in the code and it shows the below error
Server Error in '/' Application.
Must declare the scalar variable "@Type".
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Must declare the scalar variable "@Type".
Source Error:
Line 75: CommsRoom.Value = DirectCast(GridView1.FooterRow.FindControl("txtcommsroom"), TextBox).Text Line 76: Line 77: SqlDataSourcepabx.Insert() Line 78: End If Line 79:
Source File: Line: 77
Stack Trace: