ASP.Net 4.0 Performance Monitoring feature

Read it here

https://www.asprangers.com/post/2012/03/08/ASPNet-4-Performance-Monitoring-feature.aspx

Comments

  • Anonymous
    April 04, 2012
    Sub doInsert(Source as Object, E as EventArgs) Dim strConn as String = "server=YourServer;uid=sa;pwd=YourPWD;database=YourDB;" Dim MySQL as string = "Insert into feedback (Title, Email, Feedback, dtEntered, Followup) " & _ "Values (@Title, @Email, @Feedback, @dtEntered)" Dim MyConn as New SQLConnection(strConn) Dim Cmd as New SQLCommand(MySQL, MyConn) With Cmd.Parameters .Add(New SQLParameter("@Title", frmTitle.text)) .Add(New SQLParameter("@Title", frmEmail.text)) .Add(New SQLParameter("@Feedback", frmFeedback.text)) .Add(New SQLParameter("@dtEntered", DateTime.Now())) End With MyConn.Open() cmd.ExecuteNonQuery() 'Put your Success statement Here 'Create a label on the page and assign the success statement to the label's text value, like: 'Label1.Text="Your inormation has been successfully received. " & _ "We will get back to you as soon as possible" 'Remember to Import the SQLClient Namespace also MyConn.Close End Sub