Home > Net >  The.net MVC controller with parameter jump invalid pages within and is not an error
The.net MVC controller with parameter jump invalid pages within and is not an error

Time:09-24




thank you

CodePudding user response:

Your breakpoint tracing the if condition

CodePudding user response:

reference 1st floor is nu month god reply:
you breakpoint tracing the if condition

Is greater than zero to 3 it can go to the line and then there is no response but it is not an error

CodePudding user response:

refer to the second floor SouMte - W reply:
Quote: refer to 1st floor is nu month god reply:

You breakpoint tracing the if condition

Is greater than zero to 3 it can go to the line and then there is no response but it is not an error

It is to jump over,
Then you should change
The Content (" & lt; script> Alert (' "+ error +") & lt;/script>" );
Of or to the console. The log can also ah,

CodePudding user response:

refer to the third floor is nu month god reply:
Quote: refer to the second floor SouMte - W reply:

Quote: refer to 1st floor is nu month god reply:

You breakpoint tracing the if condition

Is greater than zero to 3 it can go to the line and then there is no response but it is not an error

It is to jump over,
Then you should change
The Content (" & lt; script> Alert (' "+ error +") & lt;/script>" );
Of or to the console. The log can also ah,

Sorry didn't find I write less alert but alert it also don't write a figure that does not come out

CodePudding user response:

Well, we thought the web browser F12 do first tool

And the page is not an error, see what F12 returned to what?

500? 404? Js exception??

CodePudding user response:

reference 4 floor SouMte - W reply:
Quote: refer to the third floor is nu month god reply:

Quote: refer to the second floor SouMte - W reply:

Quote: refer to 1st floor is nu month god reply:

You breakpoint tracing the if condition

Is greater than zero to 3 it can go to the line and then there is no response but it is not an error

It is to jump over,
Then you should change
The Content (" & lt; script> Alert (' "+ error +") & lt;/script>" );
Of or to the console. The log can also ah,

Sorry didn't find I write less alert but alert it also don't write a figure that does not come out

Did you write code, take a look at,
And like # 5 said, your browser to see whether there is an error on the console,
Look at the network request what is the result

CodePudding user response:

reference 5 floor wanghui0380 reply:
well, we thought the web browser F12 do first tool

And the page is not an error, see what F12 returned to what?

500? 404? Js exception??


No error, no exception,,, amazing!

CodePudding user response:

reference 6 floor is anger god reply:
Quote: refer to 4th floor SouMte - W reply:

Quote: refer to the third floor is nu month god reply:

Quote: refer to the second floor SouMte - W reply:

Quote: refer to 1st floor is nu month god reply:

You breakpoint tracing the if condition

Is greater than zero to 3 it can go to the line and then there is no response but it is not an error

It is to jump over,
Then you should change
The Content (" & lt; script> Alert (' "+ error +") & lt;/script>" );
Of or to the console. The log can also ah,

Sorry didn't find I write less alert but alert it also don't write a figure that does not come out

Did you write code, take a look at,
And like # 5 said, your browser to see whether there is an error on the console,
See the network request what is the result of

[HttpPost]
Public ActionResult OrderAdd (string data)
{
//page back to the json
String=json data;
JObject jObj=JObject. Parse (json);
Int flightNum=(int) jObj [" flightNum "];
//var idnums=the from jObj jObj. In Children ()
//select (string) jObj [" idcard "];
List Idnums=new List (a);
//loop page back to the passenger information for all passengers, the id number of
//for (int I=0; i <(int) jObj [" passengersum "]; I++)
//{
//idnums. Add (jObj [" passengerinfo "] [" "+ I +" "] [" idcard "]. ToString ());
//}
The foreach (var item in jObj [" passengerinfo "])
{
Idnums. Add (item) [r]. "idcard" ToString ());
}
The number of passengers//scheduling conflicts
Int existsum=0;
//ready to return to the page of the scheduling conflicts of passenger information
String existidnum="";
The foreach (var idnum idnums) in
{
//according to the id number in the passengers in the table to find the order number
Foreach (var order in the db. PassengerInfo. Where (s=& gt; S.I DCard==idnum. ToString () & amp; & S.I sDeleted=="F"). The Select (s=& gt; S.O rderID). ToList ())
{
//
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related