Posted on: 4/6/2014 2:13:55 AM | Views : 554

I am trying to fire off an event if the value of my label is "Unknown".
Library users select the author's name from a list box. If the name of the author is "unknown". the label is changed to the value selected - which is "unknown" if selected, then it supposed to run a stored procedure. Problem is - nothing is happening when the selected value from the listbox is "unknown". Can anyone tell me why and how to fix this? Below is my code and code behind:
protected void btnAddAuthors_Click(object sender, EventArgs e) { lblAuthorName.Text = lbAuthorList.SelectedItem.ToString(); if (lblAuthorName.Text == "Unknown") { sqlInsertUnknownInfo.InsertParameters.Clear(); sqlInsertUnknownInfo.InsertParameters.Add("RequestID", DbType.Int32, Request.QueryString["Requestid"]); sqlInsertUnknownInf ...

Go to the complete details ...