15,891,372 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13998042 (Top 18 by date)
Member 13998042
9-Apr-23 8:15am
View
$(document).ready(function () {
$('#example').DataTable();
$('#btnSubmit').click(function () {
var ids = [];
$('#example tbody input[name="chkSelect"]:checked').each(function () {
ids.push($(this).attr('id'));
});
console.log(ids);
$.ajax({
type: "POST",
dataType: "JSON",
url: "/HRValidation/AssignToHR",
data: { ids: ids },
success: function (data) {
// Handle the response from the controller
}
});
});
});
This is my script it returns the value as array but it is not hitting the controller it defaults return 200
[HttpPost]
public void AssignToHR(List<string> ids)
{
foreach (var id in ids)
{
// Do something with the ID
}
//return Json(new { success = true });
}
Member 13998042
4-Apr-23 14:09pm
View
Hi Sir, I understand this is good for limit or knows number of checkboxes, But my datatabl will or may return more records including checkboxes and i need to capture it dynamically. also i need to pass it in array because in controller i am using foreach loop to modify record in db.
Member 13998042
6-Feb-23 7:17am
View
Dear Richard,
The reason i am asking to change the value of the check box is because when i move back to the previous page the if the checkbox is checked , When updating the value it goes back to 0 again instead of 1.
Member 13998042
22-Dec-22 23:55pm
View
hi jeanFerre unfortunately the code is too big to post it in here. thats why i have created and shared a sample project via github. Can you please take a look at it and help me . the link is : https://github.com/dev-gurukaushik/ddandcheckbox
Member 13998042
14-Dec-22 7:38am
View
i am using datafirst approach so when i scaffold db to model in c# it automatically get's this datatype. also new to entity framework. Please suggest some guidence.
Member 13998042
6-Dec-21 3:37am
View
Hi thanks for the help. i cant copy the exact code from development environment hence i did it sorry for my bad question format. the bool method need to be static and it is working now.
Member 13998042
1-Dec-21 8:55am
View
its a basic authentication where in postman we pass username and password likewise
Member 13998042
28-Oct-20 12:40pm
View
i am really sorry , i came over that error , now i need to show a string value (1000000.00) the decimal will stored like a string in the db, i need to show this string with comma separator while showing in grid view
Member 13998042
15-Oct-20 12:45pm
View
https://ibb.co/n3P8wjr
the first value of the query keeps on repeating
Member 13998042
15-Oct-20 12:45pm
View
https://ibb.co/n3P8wjr
Member 13998042
15-Oct-20 12:44pm
View
https://ibb.co/n3P8wjr
Member 13998042
15-Oct-20 12:42pm
View
only the first value from the query keeps on repeating inside the loop
Member 13998042
15-Oct-20 12:42pm
View
only the first value from the query keeps on repeating inside the loop
Member 13998042
6-Oct-20 2:04am
View
yes you are correct the reason i need to pass the id in the none field , the id is something that i am giving from postman as params ,but the issue is the id field in ivurl keeps on becoming null
Member 13998042
29-Sep-20 2:29am
View
thanks i will change it
Member 13998042
12-Jul-20 11:21am
View
The file upload was null(fileupload.hasfile) function , but now its been resolved thanks for the help
Member 13998042
7-Jul-20 15:31pm
View
protected void btnupload_Click(object sender, EventArgs e)
{
HttpPostedFile postedFile = FileUpload1.PostedFile;
string filename = Path.GetFileName(postedFile.FileName);
int filesize = postedFile.ContentLength;
Stream stream = postedFile.InputStream;
BinaryReader br = new BinaryReader(stream);
byte[] bytes = br.ReadBytes((int)stream.Length);
using (MasterManagement mMgmt = new MasterManagement(General.ConnString()))
{
mMgmt.budgetupload(txtbudid.Text.Trim(), bytes, filename, filesize, Session["UId"].ToString());
LblError.Visible = true;
LblError.Text = "Budget details added successfuly and send for authorization";
}
HyperLink1.NavigateUrl = "~/Imageviewer.aspx?ID=" + txtbudid.ToString();
}
this is the c# code
Member 13998042
7-Jul-20 15:27pm
View
Deleted
not a home work working on a project sir, this upload got all my day long
Show More