skip to Main Content

Struggling to ASP.NET C# Ajax novice question – Jquery

I changed the code with a simple like these <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $('#RadioButtonYes').click(function () { var enterdata = document.getElementById("RadioButtonYes").value; $.ajax({ type: "GET", url: "radiobutton03ask.aspx/SyncData", contentType: "application/json charset=utf-8", dataType: "json", data: { 'data': enterdata }, success:…

VIEW QUESTION

How can I pass JS arrays to C# webforms? – Asp.net

<head runat="server"> <title></title> <script> const array1 = ["Saab", "Volvo", "BMW"]; </script> </head> <body> <form id="form1" runat="server"> <div> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click1" /> </div> </form> </body> public partial class JSPassWebForm : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {…

VIEW QUESTION
Back To Top
Search