hi bro tnq for video. but i have a question and problem. "حذف" + i write this code for Action buttons in Javascript codes but when searching Done. value.Id return nothing. how can resolve this problem ? please help
Hi bro, How to restrict access the jquery ajax method from browser console window... The problem is: everyone can just go to the console and make a loop around it and make that request a thousand time. how can i deal with this security problem.
Thanks for this great tutorial, I have question please, If we have 3 tables: first is your table (StudentInfo) and second courses table and third table is Stud_Courses that contains 2 columns (Stu_ID, Cou_ID) to assign courses for each student for example (stud_ID(1)--->cou_ID(1) stud_ID(1)--->cou_ID(2)) my question if the user want to search about certain course to know what student name take this course,,, how to implement this in your view? plese help me
i don't understand your question,please ask your question clearly. Your Can also Post your problem in Detail ,in our facebook group link : facebook.com/groups/1277069242439068/ thank you
Follow our video Starting to ending ......... i hope you will be able to do this .......... If you wants to arrange any discussion about your issue also you can post on our group facebook.com/groups/1277069242439068/?ref=br_rs
Hey brother..I figured it out. I was getting an error 404 to the jquery.min.js script...Looks like somebody changed it and I had to go tweak it. Table is now displaying. But can you help me with the search function? My model won't allow me to use IEnumerable for my model to create the foreach loop. Here is what I have. Search By : ID FirstName LastName Department IssueType HandledBy @Html.TextBox("Search")
ID DateOfIssue Email FirstName LastName Department IssueType Severity Comments Attachments Status Resolution DateCompleted HandledBy Action(Edit) Action(Delete)
contentType: "html", // contentType: "application/json", // dataType: 'json', success: function (result) { if (result.length == 0) { SetData.append('No Match Data') } else { $("#DataSearching").empty(); $.each(result, function (index, value) { debugger var Data = "" + "" + value.StuId + "" "" + value.StuName + "" "" + value.Semester + "" ""; //SetData.append(Data); // also comment this line // we have another option that is , to append the data var markup = "" + value.StuId + "" + value.StuName + "" + value.Semester + ""; $("#DataSearching").append(markup);
Thanks Bro, I love your Tutorial!
You're welcome!
Hey. I love your video. I want to download the source code but I am not getting access to the drive. Can you allow me?
Thanks for this
Welcome keep subscribe
hi bro tnq for video. but i have a question and problem.
"حذف" +
i write this code for Action buttons in Javascript codes but when searching Done. value.Id return nothing.
how can resolve this problem ?
please help
Great tutorial, cheers mate :)
Thxs... Keep subscribe
For any help please post www.abctutorial.com/community
Hi bro,
How to restrict access the jquery ajax method from browser console window...
The problem is: everyone can just go to the console and make a loop around it and make that request a thousand time. how can i deal with this security problem.
what is studentinfoes in contoller??
Its a Table allies name
why when i write in the view IEnumberable........ not appear and give me error when run
Please download my project and you will get it properly
Thanks for this great tutorial, I have question please,
If we have 3 tables: first is your table (StudentInfo) and second courses table and third table is Stud_Courses
that contains 2 columns (Stu_ID, Cou_ID)
to assign courses for each student for example (stud_ID(1)--->cou_ID(1) stud_ID(1)--->cou_ID(2)) my question if the user want
to search about certain course to know what student name take this course,,, how to implement this in your view? plese help me
very simple logic bro.... use the below logic in your controller
StuList = db.Stud_Courses.where(x=>x.Stu_ID == stuId && x.cou_ID == couId).ToList();
Thank you very very much, I'm so sorry but how to get stuId from Student List?
i don't understand your question,please ask your question clearly. Your Can also Post your problem in Detail ,in our facebook group
link : facebook.com/groups/1277069242439068/
thank you
Ok, I will create facebook account now
Hey bro, I tried using this searchbox to implement into the CRUD Operations Jquery Ajax project... now my table isn't showing anymore with data in it?
Follow our video Starting to ending ......... i hope you will be able to do this ..........
If you wants to arrange any discussion about your issue also you can post on our group facebook.com/groups/1277069242439068/?ref=br_rs
It was working yesterday but idk why now my data isn't showing anymore on the table. All of my code looks correct... idk what to do anymore.
Please can you post your inspect browser screenshoot to our above facebook page or share your code with us? will try to recover
Hey brother..I figured it out. I was getting an error 404 to the jquery.min.js script...Looks like somebody changed it and I had to go tweak it. Table is now displaying. But can you help me with the search function? My model won't allow me to use IEnumerable for my model to create the foreach loop. Here is what I have.
Search By :
ID
FirstName
LastName
Department
IssueType
HandledBy
@Html.TextBox("Search")
ID
DateOfIssue
Email
FirstName
LastName
Department
IssueType
Severity
Comments
Attachments
Status
Resolution
DateCompleted
HandledBy
Action(Edit)
Action(Delete)
My edit popup modal will give me errors if I use IEnumerable and foreach loop.
not working with paging
Yes.. For paging it will not work. Request for working copy with paging here www.abctutorial.com/community
Failed to load resource: the server responded with a status of 500 ()
Im getting a error in the line setdata.html("")
The error is cannot read the property html of undefined
Can u please help me
Please try below code :-
Please remove :- SetData.html("");
$.ajax({
type: "post",
url: "/Home/GetSearchingData?SearchBy=" + SearchBy + "&SearchValue=" + SearchValue,
contentType: "html",
// contentType: "application/json",
// dataType: 'json',
success: function (result) {
if (result.length == 0) {
SetData.append('No Match Data')
}
else {
$("#DataSearching").empty();
$.each(result, function (index, value) {
debugger
var Data = "" +
"" + value.StuId + ""
"" + value.StuName + ""
"" + value.Semester + ""
"";
//SetData.append(Data);
// also comment this line
// we have another option that is , to append the data
var markup = "" + value.StuId + "" + value.StuName + "" + value.Semester + "";
$("#DataSearching").append(markup);
});
}
}
});
Not Working
Where you facing the problem tell us
not working
@model IEnumerable
SearchBy:
Name
ID
@Html.TextBox("Search")
StuId
StudentNam
Semester
@foreach (var Item in Model)
{
@Item.StuId
@Item.StudentName
@Item.Semestor
}
@**@
$(document).ready(function () {
$("#SearchBtn").click(function () {
var SearchBy = $("#SerachBy").val();
var SearchValue = $("#Search").val();
var SetData = $("#DataSearching").val();
SetData.html("");
$.ajax({
type: "post",
url: "/Home/GetSearchingData?SerachBy=" + SearchBy + "&SearchValue=" + SearchValue,
contentType: "html",
//contentType: "application/json; charset=utf-8",
success: function (result) {
if (result.length == 0) {
SetData.append('No Match Data')
}
else {
$.each(result, function (Index, value) {
var Data = "" +
"" + value.StuId + "" +
"" + value.StudentName + "" +
"" + value.Semestor + "" +
"";
SetData.append(Data);
});
}
}
});
});
});
i tryed same conce[t but
Where the problem actually? Download the code