15,891,136 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 Morl99 (Top 40 by date)
Morl99
29-Jun-11 18:40pm
View
Even though I formulated this as a question, it is actually a suggestion which could work as a solution to his problem. If not, he has a good place to add something to it, so that I can edit my solution to fit his needs.
Morl99
29-Jun-11 16:52pm
View
Like Vivek stated, you would have two interface, one that has IProduct1 and IProduct2 in it, and another one which has IProduct3 in it, Factory2 would then implement both interfaces, Factory1 would only implement the first interface. If you want specific help, show us your real problem ;)
Morl99
29-Jun-11 14:23pm
View
All I can say as well is: good luck. And if you find a valid solution, don't forget to wrap it into a Code-Project article ;-)
Morl99
29-Jun-11 14:16pm
View
FYI, you can avoid the Tags if you write < instead of < and > instead of >.
Morl99
29-Jun-11 14:08pm
View
Maybe on a side note, this is not a portal where people do your work. Either you have a problem, or you don't. Do not expect complete programs here... Why don't you start with googling for "Storing Image into database CSharp" and "Capture Webcam Image CSharp". I am sure you find plenty of information. If you have a problem trying, come back here and post your specific problem.
Morl99
29-Jun-11 13:52pm
View
Do you start with anything? Or is the sole purpose of the application do capture an image and store it? Do you generally know how to work with a database? Or with C#?
Morl99
29-Jun-11 4:49am
View
Almighty... I guess this is out of my programming spectrum ;) I am still wondering though, why would you even need to caputre mouse input in a console application?
Morl99
29-Jun-11 3:52am
View
Great answer for a very general question, my 5 for your effort.
Morl99
29-Jun-11 3:43am
View
I can't imagine that you will Be able to capture clicks in the console, but prove me wrong!
Morl99
29-Jun-11 3:10am
View
The 2 lists of Mohammad also are of the same type (String). I will update my solution, maybe this will help.
Morl99
29-Jun-11 2:41am
View
Oh and don't get me wrong. I actually find your answer better than mine. But it is a lot harder to understand for somebody new to c#. I assume he has no idea of what is actually happening there. That's why he probably should use a simple for loop to iterate through the list. My Vote of 4 for this elegant, yet difficult solution.
Morl99
29-Jun-11 2:36am
View
Yeah that could also be the problem. If this is Windows Forms and not ASP, the thread opener could just print the contents of the Lists to the console to check (or better use the debugger)
Morl99
29-Jun-11 2:29am
View
I assume, that they are Not equal. What type are they? How do you identify the items as equal or not equal?
Morl99
28-Jun-11 12:10pm
View
Use my method instead. If you want to preserve the original list, copy it beforehand.
Morl99
27-Jun-11 9:54am
View
Please tell us in more detail where your problem is. Error message?
Morl99
15-Jun-11 17:44pm
View
Are you at all able to learn? Use a code block or don't expect any help. My 1
Morl99
14-Jun-11 6:57am
View
Another alternative would be, using standard Enums and then map those enums to a string by using a dictionary. It depends on what you actually want to do with the string.
Morl99
14-Jun-11 6:55am
View
thank you for bringing this up, I like this solution! It combines the great use of enums (you have an integer) with the need of Displaying some Text for that integer (without having to name the EnumVariable just the way you want it displayed). You can even add more than one Attribute, which makes it flexibel as hell. my5!
Morl99
14-Jun-11 6:50am
View
Then Google it, this is no "we do your work" Platform. All that you asked is out there a lot (start at the official documentation over at msdn)
Morl99
14-Jun-11 6:24am
View
yeah just what I thought. Thanks for looking this up! my 5
Morl99
14-Jun-11 5:26am
View
Not in an easy way, you always call the same Handler for the TextChanged Event. While you know which TextBox initiated this, you cannot easily go to the other Controls.
You could however create a dictionary<textbox,int32> where you save the TextBoxes and the corresponding row-Index on the DataBound Event of the datagrid. So you can later on do dictionary.TryGetValue(tb). Try googling it if you don't know about dictionarys (or maps which they are usually called).
Morl99
14-Jun-11 5:14am
View
For future reference, put your code inside a code block (<pre></pre>) that makes it readable to us!
Morl99
14-Jun-11 5:11am
View
I am sure english is not your native language, but your writing makes no sense to us. Please try to find a better translation or visit a site in your native language as we cannot adequately help you with this.
Morl99
14-Jun-11 5:02am
View
Your "DEMO" Link points to this discussion.
Morl99
14-Jun-11 2:36am
View
So how does your event listener for the command button look like? You can probably do e.Item.ItemIndex or something? Then my may will still work... Adapt it or show me your markup so I do not have to keep guessing your situation (which I will stop doing now)
Morl99
13-Jun-11 5:16am
View
Where? i edited my Solution to Target your problem with the row controls. If that didn't help, please describe your problem further.
Morl99
12-Jun-11 18:44pm
View
my 5 for your work
Morl99
12-Jun-11 18:40pm
View
Did my edit solve your problem? If so, please mark it as the solution and rate it accordingly.
Morl99
12-Jun-11 18:38pm
View
Crazy ;) So the TS needs to wrap the GV into a table and set dir="rtl" in it...
Morl99
12-Jun-11 18:33pm
View
Mh that generated Client code isn't really helping, probably would need an expert to figure it out this way.
Maybe you have two problems here? One that causes the PageValidation Error, and one that hinders your second dropbox from beeing filled correctly? Did you try setting a breakpoint at the beginning of the event handler ddl_ColumnFilterList1_selectedindexchanged? Do that and turn the eventValidation off for testing again. Is it firing?
I don't see a reason in your markup, why it shouldn't fire the selectedIndexChanged Event.
I'm quite sorry that I can't be of more help here...
Morl99
10-Jun-11 19:49pm
View
Ok there you go. It is still not really readable, but that is either the websites or my browsers fault (tabs are very spacy). I can't immediately point to the problem. I have seen this error, when I tried to call an ASP.NET Function out of the client code. I don't see you doing that here (is there any JavaScript code missing maybe?).
Maybe it is a totally different problem. Could you try commenting out all the update panel stuff, you don't really need that for trying it out, full rendering works just as well. Oh and btw, you do have a Scriptmanager somewhere, right?
Yu can also try debugging the event handler for selected index changed, does it fire? Or does the error occur before that?
Morl99
10-Jun-11 19:36pm
View
Why not convert it to a template field? It is a good solution. Maybe the direction thing does not work, it would be a hack anyways, and I feel this is not actually documented, so who knows when it will break. Visual studio helps you convert all your bound fields into templates fields. Do that and you win a lot of control. I end up having 80% template fields in my applications.
If you really want to do the direction thing, google for it, I am sure somebody out there figured it out, I have no expience with it.
Morl99
10-Jun-11 17:13pm
View
Yeah I was guessing that this will not really fix the problem. Please edit your first question and wrap the code in <pre> tags. Otherwise I (and most other people) will refuse to help you. And for future reference, it is better to write answers to follow up questions either as an edit in the original question or as a comment to that solution. Do not post it as a seperate solution. This will become very chaotic after a while.
Morl99
10-Jun-11 17:10pm
View
Please see my updated solution.
Morl99
10-Jun-11 17:04pm
View
You either supply some code, or nobody will be able to help you, because we just can't guess what your problem is! You probably have an error in your GV or DataSource.
Morl99
10-Jun-11 16:24pm
View
Please see my updated solution. If it does help you, please rate it accordingly.
Morl99
8-Jun-11 18:51pm
View
Well you should check if anything really changed, and only update if it did (try checking against a changed_timestamp or something). While this does not reduce the number of requests to the server, it might decrease the overall workload for these requests. I also made good experiences with update panels and timers, in ASP.NET 4 this seems to be a reliable choice.
Morl99
8-Jun-11 8:36am
View
Sure, which control do you want? Do you want to synchronize all the text boxes? You could iterate through all the rows and use the Cell.FindControl method for that. Tell me what you need and I try to help you.
Morl99
7-Jun-11 11:00am
View
what do you want to do? What is your problem? The Parsing of the XML Document? Or the displaying of the value?
Morl99
7-Jun-11 6:48am
View
Please tell us a bit more about the markup you use. It is hard to guess what you really need with the little information you provided.
Show More