i wirte the following code in my project but it shows an error, plz reply me what is the problem
ClientScript.RegisterStartupScript(this.GetType(), "ex", "<script>alert('" + ex + "');</script>", true);
i wirte the following code in my project but it shows an error, plz reply me what is the problem
ClientScript.RegisterStartupScript(this.GetType(), "ex", "<script>alert('" + ex + "');</script>", true);
Do not add <script> tag.
ClientScript.RegisterStartupScript(this.GetType(),"ex", "alert('" + ex + "');", true);
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.