I click the button to check if this field exists in the database, how to change the code. If there is a prompt, it can't be taken. If there is no prompt, you can use this name!
Trouble enlighten me !!
The catch is to report specific error information when an exception occurs. It is also important for a real programmer to write the error message.
shenmue024is written in the Click of the button, but it is obtained through the TextBox in the field function, you can add the button event above. Not quite understand what you mean? ? ? Could it be that the field value you want to query is the value of the button? ? ? Otherwise where do you get the field values from?
If it is a button, then write the above code in the check event of the button:
: This.Text1.Text = "Error" + e.Message;
To:
Response.Write ("<script language = javascript> alert ('" + "Error" + e.Message; + "'); </ script>");
A local variable named "e" cannot be declared in this scope because it would give "e" a different meaning, and it is already used in the "parent or current" scope to indicate something else