16,004,505 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 .NET 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 Paw Jershauge (Top 34 by date)
Paw Jershauge
24-Nov-17 2:26am
View
your welcome ;)
Use Row_number() if you want to make ranking column. so you could have lets say Top10 Departments with their Salaries
,ROW_NUMBER() OVER(ORDER BY MAX([salary]) DESC) AS [Max_Salary_Rank]
Paw Jershauge
24-Nov-17 2:16am
View
SELECT TOP (1)
[Department]
,MAX(Salary) AS [Max_Salary]
FROM [tbl_Employee]
GROUP BY [Department]
ORDER BY MAX([Salary]) DESC
Paw Jershauge
24-Nov-17 1:51am
View
Do you want ONLY the department with the highest incentives ???
Paw Jershauge
16-May-17 8:38am
View
@CHill60, i believe i said that i would not recommend it; but if the first cast fails i would try something else, i'm NOT saying that this is correct...
Paw Jershauge
16-May-17 7:53am
View
How would you ever know what style to convert from ???
Paw Jershauge
19-Aug-16 6:39am
View
Unless the program in question (the application thats writing the file) is pre-allocating the disc space, you wont be able to get that information. i guess
Paw Jershauge
18-Aug-16 8:43am
View
Im sorry, but i dont understand what you mean ???
perhaps this lib will help you http://www.codeproject.com/Articles/9711/Read-MP-header-information-and-read-write-the-ID
Paw Jershauge
18-Aug-16 3:43am
View
Yes
Paw Jershauge
29-Feb-16 3:55am
View
Your welcome ;) ;) ;)
And remember, ALWAYS use parameter
Paw Jershauge
3-Oct-15 13:59pm
View
Have to be more specific, is it the selected item, or is it for each item (row/column) ???
Paw Jershauge
18-Mar-15 4:42am
View
Ok i guess your pretty new to coding., did you add the Extension class to your code or???
Or just simple call it like this:
static class Program
{
public static bool IsBusinessDay(this DateTime instance)
{
return instance.DayOfWeek != DayOfWeek.Saturday && instance.DayOfWeek != DayOfWeek.Sunday;
}
public static DateTime AddBusinessDays(this DateTime instance, int days)
{
var newDate = instance;
while (days > 0)
{
newDate = newDate.AddDays(-1);
if (newDate.IsBusinessDay())
--days;
}
return newDate;
}
[STAThread]
static void Main()
{
DateTime dt = AddBusinessDays(DateTime.Now);
}
}
Paw Jershauge
18-Mar-15 4:25am
View
public static class DateTimeExtensions
{
public static bool IsBusinessDay(this DateTime instance)
{
return instance.DayOfWeek != DayOfWeek.Saturday && instance.DayOfWeek != DayOfWeek.Sunday;
}
public static DateTime AddBusinessDays(this DateTime instance, int days)
{
var newDate = instance;
while (days > 0)
{
newDate = newDate.AddDays(-1);
if (newDate.IsBusinessDay())
--days;
}
return newDate;
}
}
static class Program
{
[STAThread]
static void Main()
{
DateTime dt = DateTime.Now.AddBusinessDays(6);
}
}
Paw Jershauge
18-Mar-15 4:09am
View
Deleted
please rephrase your question, add to what ???
Paw Jershauge
30-Oct-14 5:30am
View
Hmm not sure what you need here, sorry.
Paw Jershauge
30-Oct-14 4:15am
View
You want to know the type of relationship between the two tables or ???
Paw Jershauge
29-Oct-14 14:07pm
View
Reason for my vote of 1 \n very very bad article...
Paw Jershauge
12-May-14 8:33am
View
Server version is SQL 2012
Paw Jershauge
12-Dec-13 11:09am
View
Thanks for the reply.
Paw Jershauge
15-Jul-13 12:39pm
View
Do you want to know, when someone makes a MouseUP on the Title bar, or do you want to imitate an Mouse up on the Titlebar ???
Paw Jershauge
1-May-13 8:04am
View
Hey Chill60
Yes A should only be shown, if B contains 1,2,3 nothing more nothing less.
So 1 from A would not be shown as it also contains 4 and 5 in B column
Paw Jershauge
4-Mar-13 3:59am
View
did you copy my code ??? or edit your own ???
Paw Jershauge
20-Feb-13 6:16am
View
Thanks Edo. ;) It's been solved... ;)
But still thanks for the reply on this also ;)
Paw Jershauge
20-Feb-13 4:42am
View
Thanks alot Edo ;)
Paw Jershauge
27-Nov-12 15:58pm
View
ryanb31 its not that that ajax cant return the data, it does. and i can view the message in my browser, but when i look into the Html source code of the site, the message is not there, its only a {{message}} variable or somethinf thats in the place where the message text should be.
Paw Jershauge
27-Nov-12 15:35pm
View
Well im not the big website building anymore, i stopped at asp classic ;) im more in winforms. So lets see if i can explain myself, here goes:
I have a website that posts status on some systems. The status message and assosicated information are posted back via ajax, and therefor the normal HTMLElements wont hold the correct text in the innerText property. hope that makes sence ;)
Paw Jershauge
24-Nov-12 17:03pm
View
Is it an codegenerator your lookin for or ???
Paw Jershauge
24-Nov-12 17:01pm
View
Events are shown in the property bag on the right side.
Paw Jershauge
24-Nov-12 16:57pm
View
im not sure i understand your question, can you please rephrase.
Paw Jershauge
20-Nov-12 3:57am
View
your welcome ;)
Paw Jershauge
20-Nov-12 3:49am
View
TextBox.UseSystemPasswordChar = true;
CheckBox.Checked = False;
CheckBox.CheckedChanged += new EventHandler(CheckBox_CheckedChanged);
void CheckBox_CheckedChanged(object sender, EventArgs e)
{
TextBox.UseSystemPasswordChar = !CheckBox.Checked;
}
Paw Jershauge
20-Nov-12 3:37am
View
UseSystemPasswordChar is a bool property. True = **** / False = ABCD
Please try it before replying
Paw Jershauge
22-Sep-11 2:39am
View
Deleted
your welcome ;)
Paw Jershauge
28-Jan-11 6:35am
View
looks nices, thanks... do you know this on http://www.pdftron.com ???
Paw Jershauge
21-Sep-10 6:20am
View
lol do that ;) = "happy"
Show More