9,891,582 members (34,067 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
Search within:
Articles
Quick Answers
Messages
Product Catalog
Comments by Chris Maunder (Top 137 by date)
Chris Maunder
-
21 Apr '13 - 16:18
View
...as long as you're happy with a little bit of rounding if you use double.
Chris Maunder
-
17 Mar '13 - 13:10
View
What technology?
Chris Maunder
-
13 Jan '13 - 9:43
View
"This is not a quick question. " Please simply report it as such and move on. Let's encourage the sorts of questions that motivate people to answer instead of encouraging laziness.
Chris Maunder
-
28 Nov '12 - 21:32
View
Two windows open. One development, one live. Which do you think I posted the test post on? /slapshead
Chris Maunder
-
18 Oct '12 - 9:41
View
Your answer is copy and pasted from http://msdn.microsoft.com/en-us/library/ebwdx8yh(v=vs.71).aspx. Further plagiarism will result in your account being cancelled. By all means, quote and reference other sources. However, do not simply cut and paste entire articles posted elsewhere.
Chris Maunder
-
29 Sep '12 - 10:40
View
1. the original was DECLARE @Query VARCHAR(MAX) SET @Query = @Query + ... So @Query has not been initialised. 2. Yeah, I was being lazy. Break out DECLARE @Query VARCHAR(MAX) = '' into DECLARE @Query VARCHAR(MAX) SET @Query = ''
Chris Maunder
-
29 Sep '12 - 6:36
View
It's probably an issue with the stored proc you're calling. Please update your question and add the code for the sproc so we can help
Chris Maunder
-
25 Sep '12 - 13:54
View
Report the questions and move on :). It's a community effort to keep things focussed.
Chris Maunder
-
9 Aug '12 - 9:28
View
Report removed.
Chris Maunder
-
15 May '12 - 14:26
View
I've closed this question. Partly because it's a repost, and partly because you're treating members who are trying to help you like they are your staff. Everyone here helps each other for no other reason than they like to help others. I understand you're frustrated, but show some consideration.
Chris Maunder
-
14 May '12 - 20:34
View
Simpler simply to edit harish85's answer and update with links.
Chris Maunder
-
17 Apr '12 - 14:46
View
Report the question as a bad question and move on. No need to insult.
Chris Maunder
-
7 Mar '12 - 10:01
View
What have you tried?
Chris Maunder
-
11 Feb '12 - 14:15
View
My apologies - I did not take note of the "it will provide thread safety". You are absolutely correct in that thread safety is not provided by default and will have to be accounted for.
Chris Maunder
-
10 Feb '12 - 22:41
View
I'm looking for the "Sainthood" button on Christian's posts. I think I need to add one.
Chris Maunder
-
10 Feb '12 - 22:27
View
No, it's not a lie. You can create background threads in ASP.NET and in some (rare) situations it's a very effective tool. We do it ourselves.
Deleted
Chris Maunder
-
7 Feb '12 - 8:41
View
[.\n] or [.\r\n]?
Chris Maunder
-
6 Feb '12 - 22:45
View
I've updated the example to show you.
Chris Maunder
-
2 Feb '12 - 16:32
View
I was guessing, but "window based EXE" to me means a normal windows-based application.
Chris Maunder
-
2 Feb '12 - 15:26
View
Please SA - not everyone has English as their first language, nor are we, as developers, renowned for our spelling. Vote, report, or even better, use your abililty to edit posts to correct it so that others can read it more easily. Making someone feel bad helps no one.
Chris Maunder
-
2 Feb '12 - 7:54
View
Please read the docs for the DateTime structure: http://msdn.microsoft.com/en-us/library/system.datetime.aspx. DateTime.Day, DateTime.Month are what you're after.
Chris Maunder
-
2 Feb '12 - 7:47
View
Some code would help. Can you please post a
small
snippet?
Chris Maunder
-
2 Feb '12 - 7:43
View
The question was "How do I do it in ASP.NET".
Chris Maunder
-
31 Jan '12 - 21:26
View
What does the markup look like? Specifically, what is "lblTotal"?
Chris Maunder
-
31 Jan '12 - 21:20
View
You guys have the power to flag and close questions. If 5 of you flag a question it's gone. Just 5 people. The quality of the forum questions would rise considerably. Do your bit, we'll do ours.
Chris Maunder
-
31 Jan '12 - 21:20
View
Totally agree.
Chris Maunder
-
31 Jan '12 - 19:00
View
Point well made, but an even better way to make the point is to use the reporting mechanism, flag it as an incomplete question, and move on. I would much, MUCH rather everyone simply used the voting mechanisms we have in place rather than making others feel stupid and embarrassed.
Deleted
Chris Maunder
-
30 Jan '12 - 20:14
View
...which is a little annoying when you're trying to switch between Javascript and C# with the same regular expression. Though I don't understand why \n isn't included in "." in Multiline mode for all flavours of regex.
Chris Maunder
-
24 Jan '12 - 21:27
View
Why can't you use any subquery, joins, unions, etc?
Chris Maunder
-
24 Jan '12 - 14:35
View
So vote the question as "Not a question" then.
Chris Maunder
-
24 Jan '12 - 14:17
View
Who are you directing this to?
Chris Maunder
-
17 Oct '11 - 17:01
View
Can I suggest, please, that you don't. It never turns out to be a good idea. Ever.
Chris Maunder
-
17 Oct '11 - 16:57
View
What have you tried and what, through debugging, is being shown as the bottleneck? Help us to help you.
Deleted
Chris Maunder
-
4 Oct '11 - 8:51
View
Updated to reflect updates to original
Deleted
Chris Maunder
-
4 Oct '11 - 8:47
View
I've reworked the method to make it more generic and cleaner.
Deleted
Chris Maunder
-
4 Oct '11 - 8:47
View
Reason for my vote of 1 The time has long since passed when a recursive solution for calculating factorials was acceptable.
Deleted
Chris Maunder
-
4 Oct '11 - 8:43
View
Nooooooooooo! Please, no more recursive functions for factorials. It's a horribly inefficient way to solve such a simple problem.
Deleted
Chris Maunder
-
2 Oct '11 - 8:35
View
testing
Chris Maunder
-
2 Oct '11 - 8:03
View
Not a question. Removing
Deleted
Chris Maunder
-
2 Oct '11 - 7:57
View
Test comment
Chris Maunder
-
20 Sep '11 - 0:27
View
Encrypting passwords is a bad idea. The poster was asking about hashing. Two very different beasts.
Chris Maunder
-
19 Sep '11 - 23:50
View
It was a bit of an off-the-cuff answer since we use it that way and I can't recall experiencing the same issue recently. Obviously there's more to the story.
Chris Maunder
-
16 Sep '11 - 17:09
View
Please post the question at the forum on http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part1.aspx, not here.
Chris Maunder
-
15 Sep '11 - 11:03
View
I think he means the text-to-html ratio of text within an HTML document. Maybe.
Chris Maunder
-
16 Aug '11 - 22:31
View
Show us the code for GetDataUser. That's where the error is. Have you checked your connection strings?
Deleted
Chris Maunder
-
15 Aug '11 - 11:37
View
I would add this at the start: if @Input is null or @SearchString is null or LEN(@SearchString) = 0 or LEN(@SearchString) > LEN(@input) There is also an error with your parenthesis. I've fixed your code. Thanks again! return 0
Chris Maunder
-
15 Aug '11 - 10:13
View
Christian - please post this as a comment, not as an answer. Better yet: report and close the question and move on to a question where you feel the author can best make use of what you can offer.
Chris Maunder
-
15 Aug '11 - 10:00
View
What's the error? You're not helping us help you.
Chris Maunder
-
11 Aug '11 - 21:43
View
Add the smallest snippet of code you can to your question and we might be able to help. Please edit the original question: don't post the info as an answer or comment.
Chris Maunder
-
11 Aug '11 - 21:42
View
From Steve: Still makes me say hmmm.... All of the other menu properties carry across the postback. Turns out on a postback, I was not resetting the properties for anything. All stayed except for RenderingMode. Moved RenderingMode before the bail on the postback, solved annoying problem
Chris Maunder
-
11 Aug '11 - 18:05
View
Post this as a comment, please, not an answer. It's just adding to the debris. (Deleting)
Chris Maunder
-
9 Aug '11 - 12:15
View
We can't answer if you haven't told us what you've tried and where your error is. Closing the question.
Chris Maunder
-
9 Aug '11 - 12:15
View
We can't answer if you haven't told us what you've tried and where your error is. Closing the question.
Chris Maunder
-
9 Aug '11 - 12:15
View
We can't answer if you haven't told us what you've tried and where your error is. Closing the question.
Chris Maunder
-
30 Jul '11 - 6:18
View
Why use a hammer? Deleting since this is too open and has no context.
Chris Maunder
-
27 Jul '11 - 11:30
View
Which is best? A hammer or a screwdriver?
Chris Maunder
-
26 Jul '11 - 22:04
View
This is a completely pointless comment. Let me know when you get it and I'll remove it.
Deleted
Chris Maunder
-
25 Jul '11 - 21:19
View
Just to be Devil's advocate here - well, not quite - doing a Select Column1,..., ColumnN from Table can be just as dangerous. Was the issue because you had two tables both with a column name with the same name? Select Table.Column1,..., Table.ColumnN from Table will at least allow the stored proc to compile, but even then your rowset will contain duplicate column names.
Correct database change management
is what will save you here. Select * is not the problem, it's a symptom.
Chris Maunder
-
18 Jun '11 - 13:23
View
What have you tried?
Deleted
Chris Maunder
-
12 Jun '11 - 20:28
View
Fair call. I've updated the code.
Deleted
Chris Maunder
-
12 Jun '11 - 16:42
View
typo
Chris Maunder
-
4 Jun '11 - 15:00
View
You haven't asked a question, you've just stated a problem. Ask a specific question and you may get some help
Chris Maunder
-
2 Jun '11 - 18:24
View
What have you tried?
Chris Maunder
-
27 May '11 - 22:07
View
How is client side scripting going to help with extremely large datasets on the server side?
Chris Maunder
-
27 May '11 - 22:05
View
What, specifically, isn't working? You need to be precise.
Chris Maunder
-
27 May '11 - 7:52
View
What's the question? We need more than that to help you
Chris Maunder
-
11 May '11 - 20:34
View
What type is "lboxStudentIDs.SelectedValue" and what type is "SchoolIDS"? You can't just cast between different types and expect it to work
Chris Maunder
-
11 May '11 - 20:32
View
What's your question?
Chris Maunder
-
21 Apr '11 - 8:50
View
But maybe Google is...
Chris Maunder
-
21 Apr '11 - 8:24
View
Ask a
sepcific
question. We won't do your homework.
Chris Maunder
-
19 Apr '11 - 8:56
View
Show us what you've tried and ask a
specific
question on what's blocking you and then we can help you.
Chris Maunder
-
15 Apr '11 - 9:30
View
If the poster has made no effort to help us answer his question then report the question and move on.
Chris Maunder
-
15 Apr '11 - 9:27
View
Do you want to do this within your code, at the database level? ie do you want the Access database to return the data pre-formatted. What have you tried so far?
Chris Maunder
-
15 Apr '11 - 9:22
View
You need to send us the statement you are using to insert the records.
Chris Maunder
-
8 Apr '11 - 8:53
View
If you tell us what you've tried we can provide specific help.
Chris Maunder
-
7 Apr '11 - 10:07
View
Best to just report the question as "Not a question" and move on.
Chris Maunder
-
6 Apr '11 - 14:10
View
That's great, but it's not a question. Ask us for
specific
help. We'll help, but we won't do your work for you. Reported as "Not a question"
Chris Maunder
-
5 Apr '11 - 12:28
View
Can you please post the code you have that wraps the "Phone Number" etc blocks? I think it's a wrapping problem
Deleted
Chris Maunder
-
22 Mar '11 - 22:16
View
No it isn't. And you mean MFC, right?
Chris Maunder
-
20 Mar '11 - 23:47
View
Which article?
Chris Maunder
-
20 Mar '11 - 23:47
View
That's not a question. What, specifically, are you asking?
Chris Maunder
-
16 Mar '11 - 11:13
View
*cough* blackberry *cough*
Chris Maunder
-
15 Mar '11 - 21:29
View
If the question is unclear then report it using the Flag icon above and to the right.
Deleted
Chris Maunder
-
1 Mar '11 - 16:04
View
From : donmillaalex Cool, article. We were doing something similar to manage concurrent users but hit a wall with when users refreshed the page. It was noticed during development test that the session count was not working right especially when users refreshed pages though App hit count was being read OK and different session ID's were being generated as expected. Plus it came to light as well that IE handles sessions slight different from Chrome and FF. - Just an observation not found a work around yet....
Deleted
Chris Maunder
-
21 Feb '11 - 21:11
View
My mistake then - I didn't dive into the docs for HashSet deeply enough and assumed that it would throw an error if you tried to add an item with an existing key and that you were using the try/catch to handle this. Carry on...
Deleted
Chris Maunder
-
18 Feb '11 - 23:49
View
Most images are going to have many, many repeated colours so you're using try/catch to handle common branching logic, not exceptional errors. Eww. Why not use "Contains" to check for existence first in order to save the overhead associated with try/catch?
Chris Maunder
-
9 Feb '11 - 7:34
View
This is an impossible question and, unfortunately, will be removed. You need to ask specific questions. We can't just write your app for you, or tell you how to do your job. Break the problem down into peices, work on them, and when you're stuck ask for specific help.
Chris Maunder
-
8 Feb '11 - 7:34
View
Please just delete questions of this calibre.
Chris Maunder
-
3 Feb '11 - 1:18
View
On behalf of original poster: Hi sandeep, I gone through the links,but that is not working in my project,In eclipse am using code like table id="displayNameRole" <th>Sl.no</th> <thcolspan=5>Member Name</th> <th>Role Name&</th> <%int flag=0; for(String logedInUser_RoleId:logedInUserRoleIdList){ if(flag==0){ if(logedInUser_RoleId.equalsIgnoreCase("Role2")||logedInUser_RoleId.equalsIgnoreCase("Role1")){ flag=1;%> <th>Change Role </th> <%} } } %> </tr> <% int i=1; for(some code){ flag=1; out.println("<tr>"); out.println("<td>"+ i +"</td>); String roleName=(String)viewMemberRoleMap.get(viewMembersName.get(i-1)); String membersName=(String)viewMembersName.get(i-1); out.println("<td colspan=5>"+retrieveUserName.getUserName(membersName,null)+"</td>"); out.println("<td>"+roleName+"</td>"); for(String logedInUser_RoleId:logedInUserRoleIdList){ if(flag==1){ if(logedInUser_RoleId.equalsIgnoreCase("Role2")&)||logedInUser_RoleId.equalsIgnoreCase("Role1"){ flag=0; out.println("<td>") } } } out.println("</tr>"); i++; } But it is not working..What to do?
Chris Maunder
-
3 Feb '11 - 1:15
View
An out paramter will always be assigned a value. Even so, I follow the pattern of if (!int.TryParse(..., out variable)) variable = 0;
Chris Maunder
-
2 Feb '11 - 6:30
View
"Each Task has different attributes and details": What do you mean? Are there more fields depending on the type of Task?
Chris Maunder
-
24 Jan '11 - 7:00
View
Why are you trying to stop someone hitting the back button? I'm assuming it's to stop them viewing a page that should only be viewed when logged in. So, my comment relates to what to do if someone tries to view a page they aren't meant to, and the answer is, handle this on the server side when they try and view the page. If you are trying to stop them, at the client side, from viewing a page you can't. If javascript is disabled then you scripting efforts are a waste. If they manually look up their history and go to the page, or have bookmarked a page and then go to the bookmark, then you're back to square 1. Discourage someone from viewing a page, yes, but don't mess with the history, and don't assume they won't get to the page.
Deleted
Chris Maunder
-
24 Jan '11 - 1:56
View
Encouraging developers to mess with browser history is a bad, bad thing. If I see a site is trying to stop me hitting a page you know what the first thing I do is? I try and see what they are hiding. If devs feel they can stop people hitting the back button then they may get sloppy and think the previous page is now safe and doesn't need safeguards from those not logged in. Besides: disable javascript and your solution fails.
Chris Maunder
-
22 Jan '11 - 6:55
View
Far better to just edit your original comment than repost a new one.
Deleted
Chris Maunder
-
18 Jan '11 - 6:59
View
[moved from answer]OP wrote: Hi, Thanks for your reply, I am already using placeholder to add the gridview control. i.e. placeholder.Controls.Add(grd); Also tried to add div control in place of placeholder to add the gridview; but that didn't work either. It would be helpful if you can explain your solution, if you have tried my code. Your help would be appreciated Thanks Tushar
Deleted
Chris Maunder
-
18 Jan '11 - 1:37
View
Just a test. Please ignore (I will delete)
Chris Maunder
-
15 Jan '11 - 6:38
View
How many times has a developer been tasked with something impractical? I'd say either help the poor suffering guy or move on.
Chris Maunder
-
12 Jan '11 - 6:12
View
Looks like your article is now "pending" but has been referred to the editors before it can be moderated and approved. Give it a few more hours and Sean will have had a coffee and be able to go through it.
Deleted
Chris Maunder
-
11 Jan '11 - 6:00
View
Testing, please ignore (I'll delete this!)
Deleted
Chris Maunder
-
4 Jan '11 - 7:40
View
Please let me know if you get this. I will delete the message after it's posted.
Deleted
Chris Maunder
-
30 Dec '10 - 17:07
View
TRying now in IE7 standards mode (I know, I could do this on my dev machine but this is more fun)
Deleted
Chris Maunder
-
30 Dec '10 - 17:04
View
Now testing with FF.
Deleted
Chris Maunder
-
30 Dec '10 - 17:02
View
Testing comments. Will delete this
Deleted
Chris Maunder
-
16 Dec '10 - 1:08
View
a) This is fine for a single line, but will not do anything to help format multiline HTML to formatted (or readable) plain text. b) Why not just use Replace(@"\<[^\>]*\>", String.Empty) (though this will fail for poorly formatted HTML such as "a < b or a > b" not being correctly HTML encoded)
Deleted
Chris Maunder
-
12 Nov '10 - 8:46
View
Just testing the comment system
Deleted
Chris Maunder
-
10 Oct '10 - 8:35
View
Unfortunately this entry cannot be approved and will be removed.
Deleted
Chris Maunder
-
9 Oct '10 - 8:11
View
Reason for my vote of 1 Plagiarism
Deleted
Chris Maunder
-
29 Sep '10 - 22:38
View
Reason for my vote of 5 Automatic vote of 5 for accepting answer.
Chris Maunder
-
29 Sep '10 - 18:26
View
Reason for my vote of 5 Automatic vote of 5 for accepting answer.
Chris Maunder
-
15 Sep '10 - 21:45
View
Please tell me you aren't leaving your sa password blank....
Deleted
Chris Maunder
-
15 Sep '10 - 9:09
View
Please don't spam the boards. This is totally inappropriate. Deleting
Deleted
Chris Maunder
-
11 Sep '10 - 21:39
View
Reason for my vote of 2 This is a test vote. Relax - I will remove this comment and restore the vote to 5.
Deleted
Chris Maunder
-
11 Sep '10 - 21:39
View
Reason for my vote of 5 This is a test vote. Relax - I will remove this comment and restore the vote to 5.
Chris Maunder
-
7 Sep '10 - 22:48
View
You can. You can also write code that's easily read by all levels of programmers that may need to touch your code. I prefer clarity to cleverness.
Chris Maunder
-
16 Aug '10 - 9:51
View
Better to post this in the Bugs and Suggestions forum. Removing this.
Chris Maunder
-
7 Aug '10 - 19:39
View
Doesn't work
Chris Maunder
-
14 Jul '10 - 22:17
View
Note quite: it's also available, as a previous answerer noted, in HttpContext.Current
Chris Maunder
-
12 Jul '10 - 22:45
View
Reason for my vote of 1 This isn't a question.
Chris Maunder
-
3 Jul '10 - 9:39
View
ASP.NET validation controls emit client side validation. Did you read the article link I posted?
Deleted
Chris Maunder
-
30 Jun '10 - 13:55
View
Nice.
Deleted
Chris Maunder
-
30 Jun '10 - 12:45
View
We'd still have to check for the existence before dropping it - though we couold wrap in a try/catch. Merging the SETs into a SELECT? Great idea!
Chris Maunder
-
28 Jun '10 - 22:37
View
This makes no sense. What are you actually trying to do?
Deleted
Chris Maunder
-
25 Jun '10 - 16:06
View
This is a test comment
Chris Maunder
-
16 Jun '10 - 1:12
View
Looks like Sloppy is the go. Thanks
Chris Maunder
-
16 Jun '10 - 1:12
View
No luck in getting this to install in Win7. I'll keep plugging away though.
Chris Maunder
-
16 Jun '10 - 0:04
View
Reason for my vote of 1 We can't help you unless you explain what you need.
Chris Maunder
-
11 Jun '10 - 7:53
View
Reason for my vote of 1 1 for downvoting the answer instead of clarifying the question in the case the answer was not quite what you wanted. Show some manners.
Chris Maunder
-
18 May '10 - 21:46
View
Reason for my vote of 1 You have not explained yourself. How can we possibly help you?
Chris Maunder
-
18 May '10 - 21:45
View
What is it about performance you wish to know?
Chris Maunder
-
18 May '10 - 14:16
View
Reason for my vote of 1 You've got to be kidding us if you want us to do your homework for you.
Chris Maunder
-
17 May '10 - 23:22
View
Reason for my vote of 1 You've not explained your problem at all.
Chris Maunder
-
13 May '10 - 12:31
View
Better to post this as a comment, not an answer...
Chris Maunder
-
13 May '10 - 7:47
View
Send code for what?
Deleted
Chris Maunder
-
12 May '10 - 17:59
View
this ; is a comment
Chris Maunder
-
4 May '10 - 8:49
View
We do detect the location, but IP locating isn't an exact science. Even though, really, it should be.
Chris Maunder
-
4 May '10 - 1:32
View
We can't answer your question without more information.
Deleted
Chris Maunder
-
4 May '10 - 0:31
View
This is a test comment
Advertise
|
Privacy
|
Mobile
Web02 | 2.6.130523.1 | Last Updated 1 Jan 1900
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid