Posted on: 8/27/2013 7:59:33 PM | Views : 786

Dear all
when user click on insert linke button, response it by label lblFeedbackok so how can do it ?

protected void InsertButton_Click(object sender, EventArgs e) { try { FormViewNewscomment.ItemInserted(); Button InsertButton = (Button)FormViewNewscomment.FindControl("InsertButton"); Label lblProfileOK = (Label)FormViewNewscomment.FindControl("lblProfileOK"); lblProfileOK.Visible = true; } catch (Exception except) { // Handle the Exception. Label lblProfileko = (Label)FormViewNewscomment.FindControl("lblProfileko"); lblProfileko.Visible = true; } } <asp:FormView ID="FormViewNewscomment" runat="server" Width="100%" DataSourceID="AccessDataSourcecomment" DefaultMode="Insert" ...

Go to the complete details ...