LazRazMataz Posted February 18, 2005 Posted February 18, 2005 Hi everyone, I am new to .Net, so please excuse if this problem is a novice problem. I tried to create a DataGrid to update an SQL file on the Web. But I got an error "Type 'TextBox' is not defined." On the net I read that all you had to do was type at the top of the file "Imports System.Windows.Forms". But unfortunatel :confused: y it is not valid when I enter it. In fact it doesn't even acknowledge up to the "Import System.Windows"! P.S. I have the Visual Studio .NET Enterprise Developer Edition. Thanks. LazRazMataz Quote
LazRazMataz Posted February 18, 2005 Author Posted February 18, 2005 P.S #2 -- I was using VB. ,LazRazMataz Quote
neodatatype Posted February 18, 2005 Posted February 18, 2005 I am new to .Net, so please excuse if this problem is a novice problem. I tried to create a DataGrid to update an SQL file on the Web. But I got an error "Type 'TextBox' is not defined." On the net I read that all you had to do was type at the top of the file "Imports System.Windows.Forms". But unfortunatel :confused: y it is not valid when I enter it. In fact it doesn't even acknowledge up to the "Import System.Windows"! Check that your project also reference System.Windows.Forms.dll Quote > NeoDataType.net < Try my Free .Net Reporting Tool!
LazRazMataz Posted February 18, 2005 Author Posted February 18, 2005 Produced another error. Ooops, got another error. Didn't notice but after adding that reference it produced another error. "Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'. Thanks for the previous tip anyways. :D Quote
Administrators PlausiblyDamp Posted February 19, 2005 Administrators Posted February 19, 2005 If you are using asp.net then you should not be using the windows textbox - you should be importing the System.Web.UI.WebControls namespace. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.