wrote:please inform me what is the wrong in the below coding
1 - your chosen subject is idiotic. EVERYONE wants an answer for their question
You seem to be trying to make your code unreadable, by not giving your variables sensible names
wrote:string conn =( "INSERT INTO categories(categoryName,description)" + "VALUES(' " + textName.Text + "','" + textadd.Text + "')");
You seem to know nothing about SQL injection, so you're writing a system with a database that anyone can erase if they want to.
4 - you post vague questions, almost as if you don't want an answer. What makes you feel this code is not working ? What do you expect it to do ? What does it do ? What error message, if any, do you get, and what line generates it ?
Please edit your post and try to think in terms of what we need to know in order to try to help you.