C
Chumley the Walrus
I'm using this sql parameter:
MyCommand.Parameters("@Sport").value = Server.HtmlEncode(sport)
to get a value from a textbox control:
<asp:TextBox Name="sport" id="sport" runat="server"></asp:TextBox>
but i cannot see why I get "Value of type
'System.Web.UI.WebControls.TextBox' cannot be converted to 'String'"
error when the value I'm passing is a string.
???
Chumley
MyCommand.Parameters("@Sport").value = Server.HtmlEncode(sport)
to get a value from a textbox control:
<asp:TextBox Name="sport" id="sport" runat="server"></asp:TextBox>
but i cannot see why I get "Value of type
'System.Web.UI.WebControls.TextBox' cannot be converted to 'String'"
error when the value I'm passing is a string.
???
Chumley