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

Return specific error based on exception in ASP.NET Core?

Consider a controller endpoint like this: [HttpGet] public IActionResult Get() { var resource = _myService.GetSomeResource(); return Ok(resource); } The GetSomeResource() method performs validation on the identity of the caller, like this: public SomeResourceModel GetSomeResource() { _securityVerifier.VerifyCallerHasAccess(); // do stuff to…

VIEW QUESTION

update database in asp.net

i'm biulding a web application and when the users log in and trying to buy somthing from web for another time this error apears SqlException: Cannot insert explicit value for identity column in table 'orderFactors' when IDENTITY_INSERT is set to…

VIEW QUESTION
Back To Top
Search