I previous asked for assistance but don't think I ask the right question. I am new to coding & have a web app with a form on it which has a yes/no dropdown & a textbox after for a reason. I managed to write the code behind for a msgbox but I need it on the client side. I know it's not nearly as complicated as I thihk. This is the code behind I used for the server side msgbox:
Protected Sub SubmitButton_Click(sender As Object, e As Event Args) Handles SubmitButton.Click
If CriticalList.Text = "Yes" THEN
If TextBox13.Text <> "" THEN
SqlDataSource1.Insert()
Response.Redirect("FormsReport.aspx")
ELSE
MsgBox("If critical, you MUST provide a reason.")
End IF
ELSE
SqlDataSource1.Insert()
Response.Redirect("FormsReport.aspx")
End IF
End SUB
Can someone, ANYONE please give me some guidance of how I would write this for a client side alert? Preferably in code behind.