Open the AJAX Html page in MVC4 and call the background method to dynamically load data in the database
Previously, I used the window. onload method to call the js method for implementation. Today I am wondering if I can change the method for implementation.
Obviously, yes.
Reference js Code on the html front-end page as follows:
@ Scripts. Render ("~ /Scripts/User/AddUser. js ")
This is referenc
// do not open up a temporary space for data exchange and how to reverse the string (some interviewers will ask this in a technical round) # include "stdafx. H " void change (char * Str) { for (INT I = 0, j = strlen (STR)-1; I
STR [I] ^ = STR [J] ^ = STR [I] ^ = STR [J]; // equivalent to STR [I] ^ = STR [J]; STR [J] ^ = STR [I]; STR [I] ^ = STR [J]; STR [I] + = STR [J]; STR [J] = STR [I]-str [J]; S
After the server changed a group of hard disks, the hard disk itself already has the system, but after the server changed, but the hard disk is not detected, also can not be opened, the situation appears similar:How to deal with it, after starting, according to the prompt, press CRTL+R, enter the following as the management interface:Real hard disk in VD Mgmt, but now see, if you can see, can detect the hard disk, mounted successfully. Your hard drive in PD Mgmt can see, have to find a way to th
We actually encountered 2 problems,1. One is to pop up the product edit screen, but the product details are not2. Product Details But all the fields are empty,There are 2 cases in which the database is valued.The first problem solution:Modify the JS in HTMLapp/b2c/view/admin/goods/detail/spec/set_spec.html This file modifies var activeproducts = Problem solving.A second problem solution:app/b2c/controller/admin/products.php 245 Line adds a sentence ksortProblem solvedEC2.0
Tags: HTML ajax C # JS Mvc4Before always using the Window.onload method to invoke the JS method to achieve, today tangled can be implemented in a different way.It's obvious that it's possible.In the HTML foreground page reference JS code as follows@Scripts. Render ("~/scripts/user/adduser.js")This is even quoted, see Adduser.js code if the background method is called$ (document). Ready (function () {$.ajax ({Type: ' POST ',URL: "/edituserpassword/usergroupquery",Success:function (obj) {if (obj.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.