Hi
i have wriete some code to insert data in to database when click a button
protected void SubmitImageButton_Click(object sender, ImageClickEventArgs e)
{
int documentID = Convert.ToInt32( DocumentIDTextBox.Text);
string operatingSystem = OSDropDownList.SelectedItem.Value.ToString();
string software = SoftwareDropDownList.SelectedItem.Value.ToString();
string type = TypeDropDownList.SelectedItem.Value.ToString();
string content = ContentTextBox.Text;
DBConnection.DBConnection dbconnction = new DBConnection.DBConnection();
if (type != "" & software != "" & !string.IsNullOrWhiteSpace(content))
{
dbconnction.CreateCategory(documentID, operatingSystem, software, type, content);
ContentTextBox.Text = null;
content = null;
ErrorLabel.Text = "Successfully Added" ...
Go to the complete details ...