The examples in this article summarize common problems in C# and share them with you for your reference. The specific analysis is as follows:
Question 1:
If you connect after the connection, it cannot be displayed and the page you directly jumped to will be jumped to.
Solution:
("<script languge='javascript'>alert('Successfully modified'); =''</script>");
If the script content contains variables, the solution is:
string a=Current record variable; 500){=true;=500;}" align=top>("<script language='javascript'>alert('"+a+"successfully modified'); ="/'<";/script>");
Question 2:
If you want to pass parameters in the connection, you can use the following methods:
string param = "Passed Parameters"; ("<script languge='javascript'>alert('Successfully modified'); ='?par =" + param + "'</script>");
Question 3:
If an error occurs when using () or () to redirect the page with URL with parameters in the button in the UpdatePanel in Ajax.
Since Ajax is refreshed, the page needs to be refreshed when using Response for parameter redirection. Set the "ControlID" of "asp: PostBackTrigger" to the specified control name under UpdatePanel, such as:
<Triggers> <asp:PostBackTrigger ControlID="GridView" /> </Triggers>
You can use the method of registering client events to solve the redirection problem in UpdatePanel
Jump to a specified page:
("?Loan="+Ftype+""); ("<script languge='javascript'>();</script>"); ("<script languge='javascript'>(" + iCrdID + ");;</script>"); (, (), "", "alert('" + + "');", true);
I hope this article will be helpful to everyone's C# programming learning.