15,896,606 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 Uwakpeter (Top 200 by date)
Uwakpeter
9-Aug-23 8:28am
View
Okay, thanks. I appreciate.
Uwakpeter
9-Aug-23 7:43am
View
Thank you, Richard, We are told Xamarin will soon be replaced with .Net MAUI. Apart from this, can Xamarin handle the Google geofencing and location features, we also learn that documentation and community support are not very rich when it comes to Xamarin development.
Uwakpeter
1-Jul-23 5:45am
View
Thanks, @SandeepMewara. This works for me, only that it doesn't accept decimal points, I want the numbers to be in two places of decimal.
Uwakpeter
5-Jun-23 5:40am
View
The application is a .net mvc, the above steps I suppose are for .netcore applications
Uwakpeter
21-Apr-20 10:19am
View
Yes, Google is my friend, but the few examples I see on google are on Echo Bot
Uwakpeter
21-Apr-20 8:18am
View
I want to use the Microsoft Bot Framework or Azure Bot service, or maybe link with azure Bots
Uwakpeter
26-Nov-19 4:25am
View
Thanks RickZeeland. There is requirement to use SQL Server Database. And i have updated my code with the connection string i am using.
Uwakpeter
26-Nov-19 3:15am
View
Thanks Phil.o, it works.
Uwakpeter
14-Feb-19 10:08am
View
Thank you sir, that has worked, the reports are now showing fine on all browsers.
Uwakpeter
14-Feb-19 9:15am
View
this is the error from the browser console:
Content Security Policy: The page’s settings blocked the loading of a resource at http://localhost:55577/favicon.ico (“default-src”).
I have deleted the favicon.ico file from the application root, yet the issue still persist.
Please do i call this e.preventDefault()?
i used cdn alot in application, i tried using the security policy meta tag in the layout, that makes the application not to display well.
Uwakpeter
13-Feb-19 3:26am
View
thank you sir, it is now i understand how this really works.
Uwakpeter
23-Nov-18 17:24pm
View
Yes, I have seen this example while searching for a solution, my approach is a bit different, I want to populate the checkboxlist upon lab dropdown selection, I was not able to make it work that way. Any assistance would be appreciated.
Uwakpeter
23-Nov-18 13:38pm
View
Sir, is there anyway I can achieve this using mvc checkbox list, I mean without the dropdown, if I can bind it to a checklist, that would be fine too.
Uwakpeter
16-Nov-18 15:49pm
View
No, the one I solved was different, initially when the datatable is loaded, if I click on the edit button, the modal displays with the row record populated on the modal input fields, at this point, the insert and update modal works perfectly fine, this was the one I solve. I have another button for insert, and I am using ajax for the insert and edit, I wanted to able insert, update and display the new record in real time without having to refresh the page to see the new changes, I was able to achieve this, the issue I am having is that, after that first insert or update is done, I rebound the datatable using ajax so that the new inserted or updated record should reflect on the datatable immediately. It is after this first insert or update has been done, that if I clicked on the edit button that the modal will display with empty fields. I have tried to resolve this, but I couldn't get it to work.
Uwakpeter
16-Nov-18 13:17pm
View
Thank you sir for your comment, I thought that was explicable enough.
I have a datatable edit button for each row, I want if I click on the edit button, a modal show with the corresponding row record for edit, the way it works now, the modal will display quite well if I click on the edit button, but I have not been able to populate the modal text fields with the corresponding row record for edit. Hope I have been able to explain well this time.
Uwakpeter
13-Nov-18 3:31am
View
yes i know sir, that can't work, the point i was trying to make was that i wanted to be able to display both in one line of code.
Uwakpeter
12-Nov-18 11:36am
View
How do i use this in the ajax function?
Uwakpeter
12-Nov-18 11:29am
View
yes this should work i have tried it before, but it tends to create another issue, record inserted does not show automatically on the datatable anymore until the page is manually refreshed, is there a way i can also make it show like before with the above line of code?
Uwakpeter
12-Nov-18 11:29am
View
Deleted
yes this should work i have tried it before, but it tends to create another issue, record inserted does not show automatically on the datatable anymore until the page is manually refreshed, is there a way i can also make it show like before with the above line of code?
Uwakpeter
25-Jul-18 9:56am
View
Thanks, i really appreciate
Uwakpeter
20-Mar-18 10:27am
View
i have tried this but the custom section is not showing!
Uwakpeter
30-Jan-18 9:58am
View
Thanks you sir, i really appreciate, it works
Uwakpeter
22-Dec-17 5:46am
View
I don't know where to place the C# Code in the application. Thanks
Uwakpeter
15-Sep-17 1:08am
View
Yeah, that works thanks, i also want to be able to insert retrieved displaymember and valuemember into the bounded list without duplication that particular list item, say, i am searching for a employee details, and the employee has a grade of senior staff, senior staff is already bounded to list say on index 4, i want to be able to pick it and display, i have tried cboGrade.Items.Insert(0,retrievedValue), this seems to work, but it is duplicating the retrieved item each time the search button is clicked.
Uwakpeter
15-Sep-17 0:43am
View
I don't want to hardcord list items: dt.Rows.Add("aaa", "11"); i am getting list items from database
Uwakpeter
15-Sep-17 0:14am
View
I have tried that but it is not working
Uwakpeter
15-Sep-17 0:10am
View
Where is the Details from?
Uwakpeter
14-Sep-17 23:50pm
View
Thank you so much, i have spent days researching on this
Uwakpeter
20-May-17 3:43am
View
I have tried your suggestion yet no luck.
Uwakpeter
4-May-17 12:15pm
View
yes, i have tried it seems to display faster now, but when i added this lines of code: =IIF((Fields!TIN.Value ="Nill"), true,false),=Max(Fields!Transp.Value + 0) = 0 And Min(Fields!Transp.Value + 0) = 0.
To the report to hide some columns if they are Nill or zero, it became very slow again, Please, is there a better way to hide column than this?
Uwakpeter
4-May-17 10:30am
View
i have tried using DataSet dsCustomers = new DataSet1(); but it still takes the same amount of time. I am using Table[1] because i have like six Datatables on one DataSet, the six Datatables are for different reports, no two reports can be accessed at the same time.
Uwakpeter
3-May-17 13:46pm
View
The report has 35 columns, i used this: =IIF((Fields!Dept.Value ="Nill"), true,false) for column visibility and also:
=FormatNumber(Fields!Transp.Value,2) on 20 Textbox expressions, could this be the issue?
Uwakpeter
3-May-17 11:16am
View
Query finished in 0.046 second(s) while running on sqlite query window. i have another select statement that does not use group by clause, it still take the same amount of time to display!
Uwakpeter
21-Apr-17 5:53am
View
the user might back date system date, then he/she will keep enjoying the application, to my, this is not a better approach to it.
Uwakpeter
21-Apr-17 5:07am
View
i don't want to use the system date, any other way of doing it?
Uwakpeter
19-Apr-17 11:08am
View
Excellent reply, it works, thanks dave. Now i can batch insert 10,000 records in 30 secs, that was great.
Uwakpeter
19-Apr-17 2:18am
View
I am using transaction on sqlite for the first time, i research and got this solution on code project and the solution was marked as answer (https://www.codeproject.com/Articles/853842/Csharp-Avoiding-Performance-Issues-with-Inserts-in), in any case i will appreciate if you could be a bit more clearer so i could do the necessary corrections. Thanks
Uwakpeter
19-Apr-17 2:08am
View
i also installed on my system to test, it also took a long time(the same two hours it took in other machines), secondary my dev machine is even lower in specs than the clients machine. so i think it is about system specification
Uwakpeter
13-Apr-17 4:41am
View
how do i know where the record is being recreated?
Uwakpeter
13-Apr-17 4:10am
View
yes, i am using transaction to save the records, is that the issue?
Uwakpeter
6-Apr-17 10:58am
View
if i am using a listbox or drop downlist, what would be the content of the drop down items or list items, seeing that those allowances that are not standard are not known at the time of development, and he wants to be able to enter as many allowances that are available for a particular employee before submitting the form. It's really weird, i am a bit confused.
Uwakpeter
6-Apr-17 4:57am
View
this is windows from application, not sure of markup, also, if i use string builder to create the markup that will allow users to enter multiple allowances for a particular employee at once, how will i save them to database and display same in different report columns on the report? seeing i will be saving into only two fields (Allowance name, and Allowance Amount) I will appreciate some examples as you said , thanks.
Uwakpeter
6-Apr-17 1:32am
View
yes, i have handled that. Thanks
Uwakpeter
4-Apr-17 10:41am
View
Thanks Richard Deeming, it works.
Uwakpeter
9-Aug-16 11:36am
View
would this still work if one has more than one items in the cart?
Uwakpeter
9-Aug-16 11:30am
View
I don't know Jquery, i will appreciate if you could further assist.
Uwakpeter
5-Jul-16 12:44pm
View
okay then, i will see how i can resolve this, in thought putting them in different application would resolve the conflict, Thank you very much for guidance
Uwakpeter
5-Jul-16 12:32pm
View
the css and js files i am using for the theme i bought are conflicting, i contacted the author, he advised i should create different applications, one for the admin template and another for the frontend template, that i should not try to rename the folders in the template otherwise i would have used one application for both
Uwakpeter
5-Jul-16 9:37am
View
please how do i achieve that?
Uwakpeter
5-Jul-16 9:18am
View
i am planning to deploy both application into same server running on the same domain name, one is for admin section while the other is for frontend
Uwakpeter
5-Jul-16 8:32am
View
i tried hard coding the path like this: <img src="@Url.Content("~/OnlineStore/images/ProductFrontView/S-N62655_DSC0040.JPG")"> but the image was not displaying
Uwakpeter
5-Jul-16 7:38am
View
the two applications are in the same project but each of them have web.config file and solution file
Uwakpeter
22-Jun-16 2:50am
View
there is no error on my code, i even check the log file no error while hosting on the sever, beside i dont write code for the pdf export, the pdf export comes with the rdlc.
Uwakpeter
17-Jun-16 10:59am
View
Thanks,that was the issue
Uwakpeter
17-Jun-16 10:59am
View
Thanks,that was the issue
Uwakpeter
17-Jun-16 10:59am
View
i have tried that also, isn't working
Uwakpeter
6-May-16 11:08am
View
pls how do you the merging?
Uwakpeter
5-May-16 15:52pm
View
I copied the method that has Dataset4, basically they are the same, just replace dataset4 with dataset1. Thanks
Uwakpeter
16-Feb-16 11:01am
View
i called the code on txtDateOfBirth TextChanged event, i event tried it on a post back event, was not able to resolve it. The thing is that whenever the page is being postback, it will be resettling to zero index even if i select from another dropdown list that the auto post is set to true. thanks
Uwakpeter
16-Feb-16 10:54am
View
I have just done that sir.
Uwakpeter
16-Feb-16 10:32am
View
i am reading the first item by selecting from the drop down list, when the page is run
Uwakpeter
11-Jan-16 22:56pm
View
i have updated my question, i will appreciate if you could help. Thanks
Uwakpeter
11-Jan-16 22:56pm
View
i have updated my question, i will appreciate if you could help. Thanks
Uwakpeter
15-Dec-15 3:52am
View
The DLLs are there, i added it myself, it is shown as corrupt whenever i clean the project, so i have stopped cleaning project for now, i dont know what effect that will have on the application. I also realize that the project was created using Iron speed 8.0.2 tool with visual studio 2010, now i am running the project on visual studio 2013, i dont also know whether that could cause this. Thanks
Uwakpeter
13-Dec-15 1:34am
View
@Samuel Christison, it is a bit difficult to explain more than this, i have screen captured my solution explorer with the marked corrupt files in bin folder, just that i do not know how to attach an image here. The exception it throws was simple enough for me to fix, that was why i didnt bother to include it. but it turns out that marked corrupt files are always shown whenever i clean solution, my question now is, can i build and deploy a project without cleaning solution? refer http://stackoverflow.com/questions/34245692/repair-corrupt-bin-dll-in-visual-studio
Uwakpeter
13-Dec-15 1:28am
View
@Dave, you are right i was also wondering what could have caused it, but i just found out that marked corrupt files are always shown whenever i clean solution, my question now is, can i build and deploy a project without cleaning solution? thanks
Uwakpeter
8-Dec-15 5:14am
View
I am using Godaddy.com to host the applications, right clicking on the application folders only give browser context menu, i mean there is no option like convert to application!
Uwakpeter
27-Nov-15 7:27am
View
just tried that, it displays all in one column, and also picks only one address, i want it to pick all the addresses where address.customerId = customer.ClientId
Uwakpeter
27-Nov-15 7:09am
View
Thanks, that works for me, but the addresses is displaying one step below each other, how do i display each address per row?
Uwakpeter
27-Nov-15 6:10am
View
Hello sir, i have updated the original question with the code i have so far based on this your example, i will appreciate if you could help me look at it. Thanks
Uwakpeter
26-Nov-15 10:33am
View
Thanks for your much assistance,i have tried this, model only has values for addresses, customer records are null at the point of returning the values to view, and also, addresses come as count, each count has only one value for a particular record while the rest properties will be null and so on, so in the display it appears in steps like stair case. i will appreciate if you could still assist. Thanks
Uwakpeter
26-Nov-15 4:17am
View
if i had wanted to display them on different views, i wouldnt have issues, my issue here is that a view can only accept only one @model directive, to display list of records i will need @model IEnumerable<viewmodelname>, while Details will require @model ViewModelName
Uwakpeter
26-Nov-15 2:09am
View
Please how do i use the ClientViewModel in the controller action following this your example?
Uwakpeter
25-Nov-15 13:56pm
View
I know how to display multiple model in one view using ViewModel, where i am having issue is displaying List requires @model IEnumerable<viewmodelname> to run while displaying Details require @model ViewModelName to run, how do i use: @model ViewModelName and @model IEnumerable<viewmodelname> in one view
Uwakpeter
25-Nov-15 13:56pm
View
I know how to display multiple model in one view using ViewModel, where i am having issue is displaying List requires @model IEnumerable<viewmodelname> to run while displaying Details require @model ViewModelName to run, how do i use: @model ViewModelName and @model IEnumerable<viewmodelname> in one view
Uwakpeter
25-Nov-15 13:55pm
View
I know how to display multiple model in one view using ViewModel, where i am having issue is displaying List requires @model IEnumerable<viewmodelname> to run while displaying Details require @model ViewModelName to run, how do i use: @model ViewModelName and @model IEnumerable<viewmodelname> in one view
Uwakpeter
25-Nov-15 13:55pm
View
I know how to display multiple model in one view using ViewModel, where i am having issue is displaying List requires @model IEnumerable<viewmodelname> to run while displaying Details require @model ViewModelName to run, how do i use: @model ViewModelName and @model IEnumerable<viewmodelname> in one view
Uwakpeter
13-Nov-15 9:48am
View
i have tried that still not working!
Uwakpeter
13-Nov-15 7:36am
View
I have this on the content page:
@section JavaScript
{
<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script>
$(function () {
$("#tabs").tabs().addClass("ui-tabs-vertical ui-helper-clearfix");
$("#tabs li").removeClass("ui-corner-top").addClass("ui-corner-left");
});
</script>
<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
}
@section CSS
{
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes /smoothness/jquery-ui.css">
}
Uwakpeter
6-Nov-15 8:38am
View
the user wants to be seeing normal database table null while viewing the record.
Uwakpeter
26-Oct-15 5:26am
View
please can you give any example?
Uwakpeter
26-Oct-15 5:02am
View
yes, but i wonder why it isn't working.
Uwakpeter
20-Oct-15 6:39am
View
so please, where can i get templates for my mvc project?
Uwakpeter
20-Oct-15 4:34am
View
Please how do i use Razor with a custom template from Themeforest?
Uwakpeter
20-Oct-15 4:16am
View
my company is buying custom template from Themeforest, i want to be able to integrate it into my mvc project.
Uwakpeter
13-Oct-15 16:25pm
View
I was following the tutorial i found on: http://techbrij.com/custom-roleprovider-authorization-asp-net-mvc, it works well in mvc 4 without any issues, and it is the same way i implemented using mvc 4 i implement using mvc 5, i don't know why it is not working in mvc 5
Uwakpeter
13-Oct-15 8:40am
View
yes, i have done that sir, the roles.Contains() actually picks the right role, and it will attempt to redirect to DashboardStudentsController, upon hitting the Authorize(Roles="Student") it will be redirected to the login page. I actually created my own userLogin Action and Logincontroller for this, but whenever i use the default Login action in the AccountController, it will not be redirected to the RedirectToDefault action, i dont really know whether the issue is from me creation my own Login action and Controller, i did this because the default wasn't hitting the GetRolesForUser(string username) in the custom role provider i created at all. Please i will appreciate if you could still assist. Thanks
Uwakpeter
12-Oct-15 9:16am
View
Login Action:
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult UserLogin([Bind(Include = "user_id, password")] login_details loginDetails, string returnUrl)
{
var objUser = _db.login_details.FirstOrDefault(
x => x.user_id == loginDetails.user_id && x.password == loginDetails.password);
if (objUser == null)
{
ModelState.AddModelError("LogOnError", "The user name or password provided is incorrect.");
}
else
{
FormsAuthentication.SetAuthCookie(loginDetails.user_id, false);
if (Url.IsLocalUrl(returnUrl) && returnUrl.Length > 1 && returnUrl.StartsWith("/")
&& !returnUrl.StartsWith("//") && !returnUrl.StartsWith("/\\"))
{
return Redirect(returnUrl);
}
else
{
//Redirect to default page
TempData["userId"] = loginDetails.user_id;
return RedirectToAction("RedirectToDefault", "Login");
}
}
return View(loginDetails);
}
public ActionResult RedirectToDefault()
{
string userId = TempData["userId"].ToString();
Session["userId"] = userId;
String[] roles = Roles.GetRolesForUser(userId);
if(roles.Contains("ClassTeacher"))
{
return RedirectToAction("ValidateReceipt", "ClassTeacher", new { id = userId });
}
if(roles.Contains("Student"))
{
return RedirectToAction("Home", "DashBoardStudents", new { id = userId });
}
if(roles.Contains("Teacher"))
{
return RedirectToAction("Index", "PublicUser", new { id = userId });
}
if(roles.Contains("Admin"))
{
return RedirectToAction("ValidateReceipt", "ClassTeacher", new { id = userId });
}
if(roles.Contains("Parent"))
{
return RedirectToAction("Index", "PublicUser", new { id = userId });
}
else
{
FormsAuthentication.SignOut();
Session["userId"] = null;
return RedirectToAction("Index","Home");
}
}
Authorized Controller:
[Authorize(Roles = "Student")]
public class DashBoardStudentsController : Controller
{
SchoolPortalEntities db = new SchoolPortalEntities();
// GET: DashBoardStudents
public ActionResult Home()
{
string userId = Session["userId"].ToString();
var userDetail = db.students_biodata.FirstOrDefault(s => s.user_id == userId);
if (userDetail != null)
{
ViewBag.ImgPath = userDetail.pic_id;
ViewBag.UserId = Session["userId"].ToString();
ViewBag.DisplayName = "Welcome " + userDetail.first_name;
}
return View();
}
}
Uwakpeter
28-Sep-15 4:34am
View
Thanks for your response, i have tried this but having exception, i tried to google it, but couldnt fix it, the exception it thrown is:
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[SIMSPortal.Payment_History]', but this dictionary requires a model item of type 'SIMSPortal.Payment_History'.
please i will appreciate if you could assist any further. thanks
Uwakpeter
29-Aug-15 14:36pm
View
yes i have debug it myself, in the foreach loop, it is only the file in the first iteration that has contentLength, subsequent iterations contentLength are all 0kb, pls any hints on how to resolve this?
Uwakpeter
7-May-15 7:57am
View
I want the query to be executing once everyday.
Uwakpeter
6-May-15 5:32am
View
have tried that, still having this error: Explicit value must be specified for identity column in table 'UserSignInHistory' either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column. My identity column is an auto incremental column (Int Id)
Uwakpeter
6-May-15 3:33am
View
yes, i have done that, having this error message now: An explicit value for the identity column in table 'UserSignInHistory' can only be specified when a column list is used and IDENTITY_INSERT is ON.
Uwakpeter
17-Apr-15 7:23am
View
Thanks Suvendu, it helps!
Uwakpeter
17-Apr-15 7:22am
View
Thanks Andy, it works!
Uwakpeter
13-Apr-15 13:11pm
View
the ok button in the confirmation box
Uwakpeter
13-Apr-15 11:34am
View
onclick event doesnt fire when ok is clicked
Uwakpeter
13-Apr-15 11:06am
View
I have updated the question, with onlick method, the confirmation displays when the box is unchecked, i want it to display on when the box is checked!
Uwakpeter
13-Apr-15 10:52am
View
OnClick is not working too! it brings out the comfirmation box, but if i clicked ok, the checkbox event is not triggerd!
Uwakpeter
19-Mar-15 13:26pm
View
microsoft report not sql report server, the version is 11.0, but i don't know how to check the version on production server.
Uwakpeter
19-Mar-15 13:24pm
View
yes, i have tried a few things from the link, but still cannot access any control property that is on the reportviewer control!
Uwakpeter
17-Mar-15 11:53am
View
i want to use username and date as search criteria, though i have included the username in the where clause yet!
Uwakpeter
17-Mar-15 11:42am
View
Thanks you sir, when i remove this lines:
IF @AttndDate is null
SET @AttndDate = getdate()
and declare:@AttndDate Date (without assigning null to it) it reports error!
Uwakpeter
17-Mar-15 6:18am
View
Thank you sir, i have changed the dateTime type to Date in the date column, i now change the stored procedure to this:
ALTER PROCEDURE [dbo].[SelectRCOByDate]
-- Add the parameters for the stored procedure here
@Username Varchar (50)=NULL,
@AttndDate Date =NULL
AS
IF @AttndDate is null
SET @AttndDate = getdate()
BEGIN
SET NOCOUNT ON;
--SET DATEFORMAT dmy
-- Insert statements for procedure here
SELECT r.Username AS Username,
r.surname AS Surname,
r.firstname AS Firstname,
u.branch AS Branch,
r.RTime AS ResumptionTime,
r.CTime AS ClosureTime,
r.ATTNDDate AS ATTNDATE
FROM RCORegister r
INNER JOIN UserMgmt u ON r.Username = u.Username
WHERE r.ATTNDDate = @AttndDate
ORDER BY r.ATTNDDate DESC
END
This only returns current date records, and it doesnt check for @AttndDate parameter, i.e. i can run it without the parameter and it will still returns records. Please how can i handle this?
Uwakpeter
17-Mar-15 4:02am
View
Thanks, Please should i change datetime type in the date column to date type? so it stores only date and time part will be zero?
Uwakpeter
16-Mar-15 14:35pm
View
this is the date format i am passing:dd/mm/yyyy, and the date in the database is in this format: 2015-03-16 15:33:20.560. i want to be able to convert the saved date to the format that user entered(dd/mm/yyyy) so i can compared them for equality.
i.e. Where savedDate(dd/mm/yyyy) = enteredDate(dd/mm/yyyy). By so doing, i would stripped off the time part and only left with date part, and change the date part to dd/mm/yyyy so i can compare both. Thanks
Uwakpeter
16-Mar-15 14:19pm
View
On C#, i am passing user input to @AttndDate parameter
cmd.Parameters.Add("@AttndDate", SqlDbType.DATETIME).Value = txtDate.Text;
The only time it will use the current date is when user selects current date from the Ajax Calenda, it will populates all records for today, i want to be able to populate record of yesterday if the selects yesterday's date or and any previous date also.
Uwakpeter
16-Mar-15 14:19pm
View
The only time it will use the current date is when user selects current date from the Ajax Calenda, it will populates all records for today, i want to be able to populate record of yesterday if the selects yesterday's date or and any previous date also.
Uwakpeter
16-Mar-15 14:05pm
View
date that is entered in txtDate is what i am passing to @AttndDate parameter in stored procedure
Uwakpeter
16-Mar-15 14:01pm
View
This only selects today's records, and it doesnt use the parameter, if i yesterday's date to get yesterday record, it still selects today's record. Any further assistance would be appreciated. thanks
Uwakpeter
16-Mar-15 13:28pm
View
On C#, i am passing user input to @AttndDate parameter
cmd.Parameters.Add("@AttndDate", SqlDbType.DATETIME).Value = txtDate.Text;
Uwakpeter
16-Mar-15 13:25pm
View
have tried this, this is the error message:
An expression of non-bolean type specified in a context where a condition is expected!
Uwakpeter
16-Mar-15 13:09pm
View
This only selects records of today, and it doesnt use @AttndDate parameter criteria to select record base on the date user supplies.
Uwakpeter
16-Mar-15 12:59pm
View
yes, i am passing the date from the user though as a DATETIME parameter:
@AttndDate DateTime = NULL
Uwakpeter
16-Mar-15 12:53pm
View
Date column is dateTime type sir and i using GetDate() function to save date, i cant compare it directly because of the millisec and nanosec parts!
Uwakpeter
16-Mar-15 12:47pm
View
i am going to accept date from users in this format: dd/mm/yyyy
so if i use WHERE r.ATTNDDate = @AttndDate, that wont work!
Uwakpeter
16-Mar-15 7:29am
View
Please can't find the corrected solution!
Uwakpeter
16-Mar-15 7:14am
View
Have tried that, this is the error message: Argument data type datetime is invalid for argument 2 of dateadd function.
Uwakpeter
16-Mar-15 6:21am
View
Yes, the error is no longer there, but it returns zero rows! please how do i make it return rows based on the date criteria? Thanks
Uwakpeter
16-Mar-15 6:02am
View
The date format from Ajax Calenda is in this format: 16/03/2015, as in dd/mm/yyyy
Uwakpeter
16-Mar-15 5:31am
View
Yes, I have tried that, still same error!
Uwakpeter
12-Mar-15 11:29am
View
Ok, i am clear on that, Thanks alot, i really appreciate.
Uwakpeter
12-Mar-15 3:18am
View
RyanDev, Thanks alot, this works, just that it comes out in this format:13:52:59.3800000. Please I want to be able to display in 24hrs format: e.g. : 01:52p.m using the above value. Please any futher assistance will be appreciated. Thanks
Uwakpeter
11-Mar-15 13:31pm
View
i am storing as DateTime, i didnt know about Time type, apart from timespan
Uwakpeter
11-Mar-15 13:25pm
View
in the C# environment, users are provided with two textboxes which they can search from using two different time intervals, say from 8a.m to 9a.m. Concatenating @someTimeVariable to date i am not sure this will archieve what i wanted. i want time parameter on its own without being concatenated to date. Please can this be possible?
Uwakpeter
11-Mar-15 13:03pm
View
i want to be able to extract the time part and pass it as parameter so i could use it in the C# environment
Uwakpeter
11-Mar-15 12:52pm
View
i want to able to search by time values, say from 8a.m to 9a.m. i thought of storing the resumption time and closure time as string, but i am not sure whether storing it as string type will yield the required result.
Uwakpeter
11-Mar-15 12:35pm
View
i created the database today, so i dont have previous record
Uwakpeter
11-Mar-15 11:57am
View
This is what i used: select * from AuditTrail where
ActionDate between '2015-03-10 13:52:59.380' and '2015-03-10 13:52:59.380'
Uwakpeter
11-Mar-15 11:57am
View
This was what i used: select * from AuditTrail where
ActionDate between '2015-03-10 13:52:59.380' and '2015-03-10 13:52:59.380'
Uwakpeter
11-Mar-15 11:35am
View
i used the between keyword
Uwakpeter
11-Mar-15 11:19am
View
in my table, i have a field "ActionDate" with datetime type.
Uwakpeter
13-Jan-15 10:59am
View
i can do this, what i wanted was to be able to get the selected value, in normal web form i could do :string ddValue =dropDownlist1.SelectedValue or int ddValue =dropDownlist1.SelectedIndex
Uwakpeter
19-Oct-14 16:55pm
View
Yes this will work, but it going to trigger on server side, it will cause the page to refresh, I needed to implement a client side validation, tried using reverse engineering tool, this also works, but it a long process to properly implement, I really appreciated your much contribution and assistance, thanks. Will still appreciate any further assistance.
Uwakpeter
19-Oct-14 11:19am
View
Have tried that also, the page still refreshes, meaning not validating, don't know what else to do!
Uwakpeter
19-Oct-14 3:01am
View
Just tried that, but it still not validating! Any further assistance will be appreciated.
Uwakpeter
18-Oct-14 6:30am
View
My View code:
@model WebApplication.LoginAccount
@{
ViewBag.Title = "Login";
Layout = "~/Views/Shared/SiteMaster.cshtml";
}
<div id="container">
<div class="container">
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
Login
@Html.ValidationSummary(true)
<div class="form-group">
@Html.LabelFor(model => model.userName, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.userName)
@Html.ValidationMessageFor(model => model.userName)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.password, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.password)
@Html.ValidationMessageFor(model => model.password)
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Login" class="btn btn-default" />
@Html.ActionLink("Sign Up", "SignUp")
</div>
</div>
</div>
}
</div>
</div>
Uwakpeter
17-Oct-14 16:00pm
View
I don't know jquery that much, I want to be able to use server side data anotation.
Uwakpeter
14-Aug-14 6:02am
View
I am working on C# Windows Application but not web. Thanks
Uwakpeter
13-Aug-14 12:25pm
View
Hello Sir,
Please i don't know whether you could still be of help! The header checkbox is always being checked anytime the user selects three records even though there are other records that have not been selected. I will appreciate your further input. Thanks.
Uwakpeter
12-Aug-14 4:20am
View
i was able to resolve the issue using: if ( cell!=null && !DBNull.Value.Equals( cell.Value ) && ( bool ) cell.Value == true ). Thanks
Uwakpeter
12-Aug-14 2:53am
View
okay, this was the issue: DataGridViewCheckBoxCell cell = row.Cells["IsChecked"] as DataGridViewCheckBoxCell; when using the cell variable in the if statement(if ( cell.Value == cell.TrueValue )) it always skipped the lines of code inside inside it while stepping through, i.e. the line of code under it will not be executed. if i remove the if statement it works fine, but i need the if statement to be able to check for the checked rows only. Please i will appreciate if you could still assist, i am doing research on it too. Thanks.
Uwakpeter
11-Aug-14 13:48pm
View
it doesnt get the values, it only shows it boolean state(true/false)
Uwakpeter
11-Aug-14 13:18pm
View
please see what i mean, i am having a datagrid that displays: Name, depositor, date as column header names, and a checkbox in front of each row, i want to be able to select the name, depositor and date of a particular row, if the checkbox in front of it is selected. take for instance i can achieve this using:dataGridView1.Rows[e.RowIndex].Cells[1].Value + ""; if i am using cellClick event of the datagrid. but i want to be able to do this in button click event.
Uwakpeter
11-Aug-14 12:11pm
View
not working yet, i meant i want to be able to extract/retrieve selected row record(s)(cell values of the selected rows) and stored it variables.
Uwakpeter
11-Aug-14 11:57am
View
i am using the checkbox name instead of index,and it is working, i meant i want to be able to extract selected row record(s)(cell values of the selected rows) and stored it variables. Thanks
Uwakpeter
11-Aug-14 11:29am
View
How do i get the selected checkboxes rows from the datagrid and which should i use this in?
Uwakpeter
11-Aug-14 6:58am
View
I have fixed it by rename it IsChecked and it is now working, i really appreciate your time and effort. Thanks
Uwakpeter
11-Aug-14 6:51am
View
just added HeaderCheckBox.Name= "chkBxSelect"; to the AddHeaderCheckBox()method, it still has not fix it, Please where else should i name it. Please i am really sorry for asking too many questions.
Uwakpeter
11-Aug-14 6:46am
View
just added HeaderCheckBox.Name= "chkBxSelect"; to the AddHeaderCheckBox()method, it still has not fix it. Please i am really sorry for asking too many questions.
Uwakpeter
11-Aug-14 6:29am
View
This line is reporting error:
foreach ( DataGridViewRow Row in dataGridView1.Rows )
( ( DataGridViewCheckBoxCell ) Row.Cells["chkBxSelect"] ).Value = HCheckBox.Checked; the error message is: Column named chkBxSelect cannot be found. i tried adding a new column with this name using the datagrid smart tag, but it is creating a new column, i am now having two checkboxe columns, please how can i get it to work using the sample code? Thanks.
Uwakpeter
11-Aug-14 6:25am
View
This line is reporting error:
foreach ( DataGridViewRow Row in dataGridView1.Rows )
( ( DataGridViewCheckBoxCell ) Row.Cells["chkBxSelect"] ).Value = HCheckBox.Checked; the error message is: Column named chkBxSelect cannot be found. i tried adding a new column with this name using the datagrid smart tag, but it is creating a new column, i am now having two checkbox columns, please how can i get it work using the sample code? Thanks.
Uwakpeter
11-Aug-14 5:32am
View
I can only find ResetLocation, can i rename ResetHeaderCheckBoxLocation to ResetLocation? also the GetDataSource() method is not include in this example, though i would write mine later on, i would have love to test it with the one that came with this tutorial, Is there anyway i can get that too? Thanks
Uwakpeter
11-Aug-14 4:47am
View
Thanks, i have tried implementing what i got from that link, the following are being underlined as errors:
IsHeaderCheckBoxClicked
TotalCheckedCheckBoxes
TotalCheckBoxes
ResetHeaderCheckBoxLocation, and i tried to fixed it but couldn't, i will be glad if you could further assist. Thanks
Uwakpeter
10-Aug-14 10:30am
View
Yes that is what I am looking for, but I am working on a windows application, and I don't think javascribt will work on windows application, I have not tried it before, if there is a way I can achieve this in windows apllication, I will really appreciate, thanks.
Uwakpeter
10-Aug-14 3:43am
View
All the checkboxes in the datagrid will be unchecked, if I checked it, all will be checked as well, I want to be able to unchecked the checkbox at the datagrid header if after checking all, the user decides to unchecked one or more of the checkboxes. Thanks
Uwakpeter
8-Aug-14 11:07am
View
Okay Thanks, i really appreciate.
Uwakpeter
8-Aug-14 10:58am
View
I will like to delete from database also, so that the record wont show next time the application is run. i dont know whether deleting from the datatable will aslo delete from database? Thanks
Uwakpeter
8-Aug-14 9:32am
View
Thanks, it works! i want to be able to delete from database also, i have tried this it doesn't works: dr = dt.Rows[k];
dt.Rows.RemoveAt( k - countDeletedRows );
The error message is:There is no row at position 1.
Uwakpeter
6-Aug-14 3:08am
View
Thanks Arut, i have gone through the post on that link, from what i am getting the mail wont be sent to recipient mailbox, but kept in the IIS in c directory, and can only send to one address per time. i needed to send to recipient's inbox and can also specify comma delimited list of email addresses.
Uwakpeter
24-Jul-14 6:19am
View
Thanks, it works, i have been able to call it.
Uwakpeter
24-Jul-14 6:03am
View
How do i call these two methods on pageload? Thanks
Uwakpeter
23-Jul-14 9:48am
View
What i can find from the link you posted is how to set field aliases, i meant how to be able to assign values to variables.
Uwakpeter
18-Jul-14 5:42am
View
Thanks alot, it works, i spent 2 days trying to figure this out, you have just save me another hours of unfruitful effort. Thanks i really appreciate.
Uwakpeter
10-Jul-14 7:53am
View
Thank you sir, the retrieve and append methods work, but the delete method is throwing exception:Object reference not set to an instance of an object. I have tried to debug it, but couldn't fix it.
Uwakpeter
10-Jul-14 5:41am
View
Hello sir,
i have been able to get individual elements using: string gg = xeProduct7.Element("Product_name").Value.ToString();
Please i am still have been able to insert new records, update or delete records, please any further assistance will be appreciated. Thanks
Uwakpeter
10-Jul-14 3:16am
View
Thanks you sir, it works, please how do i assign 7, product 7 and 5000 to variables, i tried xeProduct7.Value, it works but joining the three together, i want to be able to remove it from the xml structure one at a time, also how can i add, append, update and delete from the list. Thanks, i really appreciate.
Uwakpeter
9-Jul-14 8:46am
View
Okay, enjoy!
Uwakpeter
9-Jul-14 7:42am
View
I couldnt retrieve associated attributes with product_id 7, just stepped through it, the variable xeProduct7 contains only this: <Product_id>7</Product_id>, i thought it will populate product_name and product_price on product_id 7.
Uwakpeter
9-Jul-14 6:59am
View
i have not used LINQ before, but i wouldn't mind if you could assist.
Uwakpeter
1-Jul-14 4:52am
View
Thanks sir for your contributions, your solution was pretty long, but i have been to implement it, i use offset and fetch next keywords in sql server 2012 to do it.
Uwakpeter
1-Jul-14 4:45am
View
Sorry for that, i was under intense pressure, but i have been able to fix the issue by myself, i needed a do while loop.
Uwakpeter
30-Jun-14 4:59am
View
I have this: var postData = new DataImportClient();
postData.postDocumentAttribute(cdAttrlist.Take(5).ToArray()); in a foreach loop, how do i call this method in the foreach loop? cdAttrlist has to be in the foreach loop for it to bind all records.
Uwakpeter
25-Jun-14 13:17pm
View
i am assigning res, it is in this format: mm/dd/yyyy, instead of dd/mm/ yyyy
Uwakpeter
25-Jun-14 9:08am
View
i am not displaying it, i am assigning it to property of a class file, whose type was datetime, so i have this error: cannot convert source type string to target type System.DateTime
Uwakpeter
25-Jun-14 9:04am
View
I am using C# Windows application, i have added your code to the app.config file, it is reporting uiculture is not allowed!
Uwakpeter
25-Jun-14 8:59am
View
I have tried this, it is reporting cannot convert source type string to target type System.DateTime while trying to assign result.ToString(format) to a dateTime property of a class file.
and what is in res is: mm/dd/yyyy
cogCardAttr.TransactionDate =result.ToString( format );
Uwakpeter
25-Jun-14 8:56am
View
I have tried this, it is reporting cannot convert source type string to target type System.DateTime while trying to assign result.ToString(format) to a dateTime property of a class file.
cogCardAttr.TransactionDate =result.ToString( format );
Uwakpeter
24-Jun-14 2:56am
View
Thanks Damith, I really appreciate.
Uwakpeter
23-Jun-14 15:38pm
View
Thanks DamithSL, it works but takes too long to populate, please could it he optimized? it takes ip to five minutes for it to populate the datagrid.
Uwakpeter
23-Jun-14 12:06pm
View
i felt i needed the foreach loop there so i could iterate through each item in the list and pass to the parameter in the select statement. Or is there any other way i could handle this? Thanks
Uwakpeter
23-Jun-14 11:55am
View
Not error message, it went into an endless loop, but if i step through it, i could see the result set for each dataid in the ds and datasource.
Uwakpeter
23-Jun-14 11:52am
View
There is no DataBind method for datagrid, it is only gridview that has. Thanks for your contribution
Uwakpeter
23-Jun-14 11:43am
View
The parameter value for @DataID is being supplied from a list, so each of the dataid supplied will return a result set, i am not sure select distinct will solve the problem, Please i will like to try your second option if you would explain it better.
Uwakpeter
20-Jun-14 11:58am
View
Thanks it works, i really appreciate.
Uwakpeter
20-Jun-14 11:47am
View
The error message is:Aurgument type string is not assignable to parameter type char,
ListAttributeRegion is a list, this is how i declare it: var listAttributeRegion = new List<string>();
Uwakpeter
20-Jun-14 10:15am
View
it is now working, please how can i retrieve attrName with corresponding RegionName from the dictionary?
Uwakpeter
18-Jun-14 4:21am
View
i commented all the codes except InitializeComponent method and it works, Please what is the difference between using InitializeComponent method and commenting InitializeComponent method and use the code. Thanks
Uwakpeter
18-Jun-14 3:05am
View
This is the InitializeComponent method:
private void InitializeComponent()
{
this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
//
// serviceProcessInstaller1
//
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;
this.serviceProcessInstaller1.AfterInstall += new System.Configuration.Install.InstallEventHandler(this.serviceProcessInstaller1_AfterInstall);
//
// serviceInstaller1
//
this.serviceInstaller1.DisplayName = "OGSG";
this.serviceInstaller1.ServiceName = "OGSG";
this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
this.serviceInstaller1.AfterInstall += new System.Configuration.Install.InstallEventHandler(this.serviceInstaller1_AfterInstall);
//
// ProjectInstaller
//
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
this.serviceProcessInstaller1,
this.serviceInstaller1});
}
Uwakpeter
10-Jun-14 5:41am
View
yes, i have granted my account a full control permission in regedit eventlog directory, also i am running the VS command prompt as an administrator
Uwakpeter
3-Jun-14 8:06am
View
Hello Rakesh,
I am still having issues on this, please check my script, and let me know if i am missing anything:
set quoted_identifier off
go
ALTER procedure [dbo].[usp_accessdb]
@SchoolAngelPortalDB varchar(128),
@GSC_NewSchoolCore varchar(128),
@schoolName varchar(50)= NULL
as
declare @query varchar(1000)
set @query = 'SELECT pp.title, pp.surname,pp.firstname,pp.phone,pp.email,rcd.reg_code,pp.genCode
FROM '+@SchoolAngelPortalDB+'.dbo.primaryparent pp
LEFT JOIN '+ @GSC_NewSchoolCore +'.dbo.registration_codes rcd ON pp.genCode = rcd.reg_code
WHERE Sch.Name='+@schoolName
exec (@query)
go
When trying to execute the procedure,using this script:
[usp_accessdb]"SchoolAngelPortalDB","GSC_NewSchoolCore","Greenwood House School"
i am having this error:
Incorrect syntax near 'House'.
Uwakpeter
3-Jun-14 8:05am
View
Hello Nirav,
I am still having issues on this, please check my query, and let me know if i am missing anything:
set quoted_identifier off
go
ALTER procedure [dbo].[usp_accessdb]
@SchoolAngelPortalDB varchar(128),
@GSC_NewSchoolCore varchar(128),
@schoolName varchar(50)= NULL
as
declare @query varchar(1000)
set @query = 'SELECT pp.title, pp.surname,pp.firstname,pp.phone,pp.email,rcd.reg_code,pp.genCode
FROM '+@SchoolAngelPortalDB+'.dbo.primaryparent pp
LEFT JOIN '+ @GSC_NewSchoolCore +'.dbo.registration_codes rcd ON pp.genCode = rcd.reg_code
WHERE Sch.Name='+@schoolName
exec (@query)
go
When trying to execute the procedure,using this script:
[usp_accessdb]"SchoolAngelPortalDB","GSC_NewSchoolCore","Greenwood House School"
i am having this error:
Incorrect syntax near 'House'.
Uwakpeter
3-Jun-14 8:04am
View
Hello Trusknak,
I am still having issues on this, please check my script, and let me know if i am missing anything:
set quoted_identifier off
go
ALTER procedure [dbo].[usp_accessdb]
@SchoolAngelPortalDB varchar(128),
@GSC_NewSchoolCore varchar(128),
@schoolName varchar(50)= NULL
as
declare @query varchar(1000)
set @query = 'SELECT pp.title, pp.surname,pp.firstname,pp.phone,pp.email,rcd.reg_code,pp.genCode
FROM '+@SchoolAngelPortalDB+'.dbo.primaryparent pp
LEFT JOIN '+ @GSC_NewSchoolCore +'.dbo.registration_codes rcd ON pp.genCode = rcd.reg_code
WHERE Sch.Name='+@schoolName
exec (@query)
go
When trying to execute the procedure,using this script:
[usp_accessdb]"SchoolAngelPortalDB","GSC_NewSchoolCore","Greenwood House School"
i am having this error:
Incorrect syntax near 'House'.
Uwakpeter
2-Jun-14 8:59am
View
please can you show how, i know how to pass parameter to normal field name in a table, but passing parameter to database, that i haven't done before, or is it going to be called the same way?
Uwakpeter
2-Jun-14 8:54am
View
I tried running the script using:
USE [NewSchoolCore]
GO
DECLARE @return_value int
EXEC @return_value = [dbo].[usp_accessdb]
@dbname1 = N'NewSchoolCore',
@dbname2 = N'SchoolAngelPortalDB',
@schoolName = N'Greenwood House School'
SELECT 'Return Value' = @return_value
GO
It is reporting error: Must declare the scalar variable "@dbname1". Is there anything i have missed here?
Uwakpeter
2-Jun-14 8:42am
View
The i do i pass the parameter value from user's input to this?
Uwakpeter
2-Jun-14 8:41am
View
i want to be able to accept database name from user's input and pass it as parameter to the stored procedure parameter value.
Uwakpeter
28-May-14 11:04am
View
it returns data while testing on my computer, but doesnt return data if i deploy the application to another computer.
Uwakpeter
28-May-14 7:41am
View
that is deploying the application to another computer it doesn't show the report, i am not sure where the error is coming from, i pasted the code so that others who may want to see the code i am using can have a look at it. The report works fine on my computer.
Uwakpeter
22-May-14 6:01am
View
yes, i just tried that, still has not fixed the issue.
Show More