15,606,838 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 Python questions
View Javascript questions
View C++ questions
View Java 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 V. (Top 200 by date)
V.
29-Jun-20 2:34am
View
try to google first, this is pretty basic stuff.
When stuck post a new question here on codeproject with what you tried and where it goes wrong, than people are glad to try to help you out.
V.
12-Mar-20 3:24am
View
that was a typ-o ;-)
Corrected
V.
19-Jun-18 2:01am
View
No, what we're saying is that, though it might look like a date to you, pandas probably sees it as a string. Have you checked the dataframe's dtypes property after you read the CSV? I bet it says "object" for the first column, which basically is regarded as a string. Convert it to datetime which pandas also provides and check the dtypes again. it should read something like "datetime".
Check the pandas documentation: http://pandas.pydata.org/pandas-docs/stable/
PS: same for the second column, VERIFY it to be numerical
V.
18-Jun-18 8:47am
View
have you tried to check and correct for wrong data? It might be that a date is malformed or that the SA column contains non-numeric values.
Also check the df.dtypes value. The datetime will probably have been read as a string (=object type in pandas). My guess is you need to change that to type datetime. (see pandas pages on how to do that)
V.
15-Jun-18 0:39am
View
You need to clarify what you want to do, because your question doesn't really make sense.
V.
6-Jun-18 1:41am
View
I think you misunderstood OriginalGriff's answer.
You do not do calculations in one format or the other.
You have a datetime. You can represent that datetime in any format you like. You can perform calculations on that datetime and NOT on it's representation. Then you can send that information (let's call it datetime 2) to another server and represent that datetime 2 any way you want. So datetime 1 and datetime 2 are both datetime types that can be represented in any format you like.
V.
26-Jun-17 6:49am
View
Yes:
<WebBrowser Name="wb_staffboxes" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
Sorry if that was not clear
V.
13-Apr-16 8:14am
View
Where is that data stored? database? File? Normally you cannot save to a config file like that, but you can store it to any other file. When you store it, check your medium (database/file/...) and make sure it's actually in there.
V.
1-Mar-16 8:46am
View
not like this, there might be a million things going wrong.
The best option is to gather all the info you have an post a new question.
V.
1-Mar-16 8:30am
View
This has nothing to do with server side events. this is pure javascript code. The page was completely finished. Besides, this question is almost 3 years old, although the code was cleaned up in the meantime, the error never returned.
V.
16-Jun-15 9:12am
View
what have you tried? Where are you stuck?
Basically you need a panel on which you use the Graphics object to paint lines and text on...
V.
8-May-15 6:26am
View
If it gives you an ORA-...... number. Search for that on google. The AskTom website is pretty good for Oracle: https://asktom.oracle.com/pls/apex/f?p=100:1:0
V.
9-Mar-15 5:34am
View
htmlText? The quotes are not escaped and the strings not concatenated. But that could be the format on CP of course. (likely, because that wouldn't compile, right?)
V.
12-Feb-15 3:22am
View
I consider this topic closed.
V.
2-Feb-15 1:24am
View
You can add the tab in the seperator array as well as newlines and other whitespace characters ;-)
V.
27-Jan-15 6:55am
View
not a clear question. What have you done, where are you stuck? Do you have connection with the web service or not at all ? We will not read and try to understand a full protocol for you, so more details are needed.
V.
27-Jan-15 6:52am
View
if longitude,latitude are x and y you could calculate the radius with r = sqrt(power(long, 2) + power(lat, 2)). using the knowledge that r has to be 2 you can reverse calculate the longitude if you have the laitude or vice versa.
However a small note, the earth is not flat and this formula only gives a 2d solution. If you want to use the "real" distance (on the sphere) you'll need to deproject it, which is not a trivial task.
Hope this helps.
V.
26-Jan-15 7:11am
View
Do you create a new DataGridView through code? If so, make sure to attach the event handler again with += ....
V.
24-Jan-15 7:48am
View
you´re welcome :)
V.
23-Jan-15 8:10am
View
can you update the question and add the lines where you use the parsing functions?
V.
23-Jan-15 5:38am
View
This phrase doesn't make sense. Please update the question with a clearer question. (use google translate ?) :-)
V.
23-Jan-15 2:40am
View
and what has the menustrip to do with it? That's somewhat unclear to me. Does the information in the datagrid need to be passed to the textboxes in the other form? (do not reply to this comment, rather update your question)
V.
21-Jan-15 7:17am
View
I will NOT send you code for that. I don't have it around and I don't have time to setup a database and code something that might be useful for you, effectively doing your work for you. Look up piece by piece and ask more precise question when they arise.
If you do need code I can always refer you to this site: http://www.rent-acoder.com/
V.
21-Jan-15 3:44am
View
what have you tried so far? installing the Oracle software is not enough, you need to setup a database, put something in it, choose a provider (allowing access to the database, like ODP.net, ODBC or OleDb) and connect with the provider and the correct connectionstring to the database through your code.
V.
20-Jan-15 10:57am
View
OK, excellent!
What was the issue?
V.
20-Jan-15 9:08am
View
It might be an access rights issue.
V.
20-Jan-15 4:55am
View
not sure if it will allow everything you want, but check out google analytics. It's easy to set up and there are plenty of things you'll like for sure.
ASSUMING, you're using a website.
V.
16-Jan-15 3:57am
View
You can upload the image to the server in a folder and save the path/filename in the varchar(100) field. You can retrieve the correct file based on the saved path.
V.
16-Jan-15 3:55am
View
I think the OP wants to upload the image to a folder and store the path in the database.
V.
19-Dec-14 4:43am
View
My first advice. Do research.
Secondly, the main problem is probably access. It is not a "real" database and the SQL needed to talk to access deviates significantly from the usual. The tool to talk to databases is irrelevant so "using C#" is not important here. Note that LINQ is probably slower than sending normal SQL to the database, so be careful with stating it is "better".
Basically if the data will remain a more static character, I don't see any issues, but if you're starting to enlarge the database (table/column wise or amount of data wise) using a real database is probably a better choice.
V.
19-Dec-14 4:36am
View
Without knowing more about the logic you're trying to achieve it's hard to give you a decent answer. My guess would be to save the values in the database and retreive the data from your webpage.
V.
19-Dec-14 4:34am
View
what is your question and what have you tried so far?
V.
19-Dec-14 4:32am
View
IMHO if you're new to .Net you're probably in over your head. Divide your problem in sub-problems. Search for connecting to database, retreive/store data from database and send email (with C#). There are many examples on each problem out there.
But again, if you're new. Start with a good book and a "hello world" program and build up from there.
V.
3-Dec-14 6:15am
View
try removing the "javascript:" like this onclick="doctorAppmodel(0,7,2/12/2014," am=");"
Secondly, If the function is in another file, make sure the file is included. Also make sure the function is defined before calling.
You can debug javascript code in the browser normally.
Hope this helps.
V.
3-Dec-14 3:35am
View
:-)
V.
3-Dec-14 3:20am
View
:-)
V.
3-Dec-14 3:20am
View
Actually DateTime does not have a "format". It's just a number (see the Ticks property). It's the representation of the DateTime object that has a certain format. Also use DateTime.TryParseExact for safe conversions. :-)
V.
2-Dec-14 6:02am
View
Maybe this: Software.Client.Source src = Software.Client.Source.Open(Url)
Isn't working and src is null... Again, debug and step through...
V.
2-Dec-14 5:52am
View
??? You can put a break point there if I'm not mistaken... Source Con = null is not wrong, I'm sure of that. You also haven't replied to my question. is Source.Open a static function? If not, then that's your culprit.
V.
2-Dec-14 5:41am
View
Is Source.Open a static function ?
It would help if you gave us more info (where does it break?) Did you step through?
V.
28-Nov-14 8:33am
View
please avoid text speech. You need to pass the dates as parameters. If it's an rpt file that exists, change the template to take the two parameters. If that works create the report viewer, load the report document and pass the two parameters via code, then the report will do the rest.
There's plenty of sample code to be found on google :)
V.
28-Nov-14 8:30am
View
IMHO this doesn't make sense. Why would you like to run a counter when form 2 loads in order to show a progress bar? If form 2 needs to do some work on load time, let form 2 generate the progress parameters and use delegates/events to pass this information back to form 1 which in its turn will update the progress bar.
Hope this helps.
V.
28-Nov-14 8:23am
View
If you're learning C# (I think you are) may I suggest to start from a good book instead of copy/pasting code? There are many things wrong with the code you're writing, even if you fix the bug you mention here. I'm not trying to be negative here, we all have to start somewhere, but a good basis is important if you want to become a good developer.
V.
5-Nov-14 5:59am
View
There must be a thousand ways to achieve this. Without any other information and without knowing what you've achieved already this is impossible to answer. I suggest to take substeps... Ask questions like, what data does the report need to show. What should it look like when presented? What available tools do I have (reporting tool, Word, Excel, notepad, ...) and so on and so forth.
V.
5-Nov-14 5:56am
View
Searched for "msdn dataset merge" in google and the first hit gave me this: http://msdn.microsoft.com/en-us/library/system.data.dataset.merge(v=vs.110).aspx That would be the first thing to investigate.
V.
5-Nov-14 5:54am
View
Please update the question with more information on what exactly you'd like to achieve and also with what you have tried so far.
V.
5-Nov-14 4:34am
View
Countered the 1 vote. You could have provided more information perhaps, but I don't see it as a bad question.
V.
5-Nov-14 4:32am
View
Well, one of the links (I very, very quickly browsed through to be honest) mentioned it replaces unused bits and replaces them with other bits. I would think that "unused" bits are somewhat limited in a file.
But again I did not read through the entire articles so I might have missed a great deal. (no time, because this looks pretty interesting)
V.
5-Nov-14 4:22am
View
nice. I will read that sometime.
Although I have no idea about steganography, is the "hidden" data not limited in that case?
V.
5-Nov-14 2:32am
View
Do I understand correctly that you want the data of three pictures in one picture, but only one "dataset" is known for an imageviewer, while your application can read all three datasets? I'm not sure why you would want to do this, but it seems tricky to me. You could look into the exif header and see if you can write the raw data there of the two hidden images (probably your best bet) or you can try to trick the image by setting img width and height to the first drawing, but writing the three datasets in the data section, but I'm pretty sure that will not work. It would be easier if the headers of the three images are the same. In that case, even if you have to serialize the binary data to fit into a header, you can reuse the header of the non-hidden image for creating the two hidden image. Hope I make a bit sense to you :-)
In any case you're in for a real challenge here.
V.
2-Nov-14 2:51am
View
Dude, It is YOU who crossed the line. I had and have no interest in going into depths of timing issues. If I ever had too I will be open for learning. If you have something to add to my solution, which I just conjured up in 10 minutes to give the guy an idea of how to do this sort of thing you could have created a solution 2 adding or improving your thoughts. Much more constructive without undermining anyone else. You´re smart enough, and it´s not about right or wrong. It´s about communication. You often cross this line (with everyone), which is why I reacted.
So you could say "thanks for understanding" in your previous reply and I can empathize you feel I don´t understand you, but from my point of view, you don´t (or didn´t) understand me.
With everything I have said up until now, you said I was wrong in some way. Something is not right there.
V.
1-Nov-14 17:35pm
View
Let´s just drop the conversation. We both have opposite opinions...
V.
1-Nov-14 13:52pm
View
You are a REALLY annoying person. You´re not helping in any way and your only goal is to make sure everyone knows how clever you are. This is not the first time I feel this way about your replies. Please get off my back.
V.
31-Oct-14 2:52am
View
The long loop is to have a larger "difference". (milliseconds instead of micro or nanoseconds). And yes, you're right, you should rerun this thing over and over in a non-jit situation. But the principle is enough in this case. I also believe the outcome will still be the same, may it be with less difference. But we could test ;-)
V.
29-Oct-14 9:56am
View
I thought of that, but I figured in this example that would be overkill ;-)
V.
29-Oct-14 9:34am
View
thanks :-)
V.
29-Oct-14 9:29am
View
please be a little more polite. You're asking for help, not us, the least you can do is be a little courteous to those trying to help you...
V.
29-Oct-14 9:17am
View
I would guess the first one will be faster, but you'll only know for sure when timing the two...
V.
18-Sep-14 7:53am
View
long shot, but try changing the String parameter to a StringBuilder. If that doesn't work, try checking out the C# Marshal functions. My guess is that the String class is managed while the LPCSTR is obviously not.
A very long time ago we had a similar issue and we fixed it, if I remember correctly, by using the StringBuilder.
V.
16-Sep-14 4:58am
View
Stupid question but shouldn't you hook up an event handler (onclick) to the saveDraft1 object? You added one to the FlowMenu1 object, but not to the dynamically created item...
V.
12-Sep-14 8:36am
View
What are you having trouble with? #1 is the image saved? #2 is the path correct? #3 what do you use a object holder? Bitmap, Image, ... (it helps if you specify if you're using winforms or WPF). #4 I'm not sure what the loadgrid function is supposed to do -- what is the imgFront / imgBack object? # 5 did you debug? are the properties in each step correct? Do they contain values? etc ...
V.
10-Sep-14 9:13am
View
English, German, Hindu, C++, LISP, Delphi or plain mathematics, the universal language? What is the problem exactly?
V.
10-Sep-14 9:11am
View
not sure but cryRpt.Load(@"D:\WebsiteHouse\Reports Designs\CRAppFormPg1.rpt"); might be the problem. Since you're working with ASP.Net it means that you should normally not be able to get to a windows folder like that.
V.
10-Sep-14 9:09am
View
try simpler showing a simple html into the modal dialog. Boost it with an aspx instead and then add an iframe. If all that works you can try to show the pdf.
V.
10-Sep-14 9:07am
View
you need to provide a lot more info before we can even guess what you want to achieve...
V.
10-Sep-14 9:06am
View
what do you mean with "But for different languages Recommendations wont work,so anything i can do like querying a normal list?"
V.
8-Sep-14 9:09am
View
If it is java this "regex" will only split the first. You need to add a "+" to split among multiple entries (I think).
Eg. Is used "\\s+" to split on whitespace and "[\r?\n]+" to split on carriage return/line feed entries...
If I would use these regex without the + sign, it only splits the first occurance, I believe. Make sure that none if the ^, ~, !, ... are special characters that need to be escaped.
Also look here:
http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)
[UPDATE]
The + is to split on multiple occurances one after the other (eg several spaces) : http://stackoverflow.com/questions/13081527/splitting-string-on-multiple-spaces-in-java
[/UPDATE]
V.
5-Sep-14 5:12am
View
yes, I realized that... ?
V.
5-Sep-14 4:41am
View
I'm confused,you add the values as a paramtrized query, but the query itself does not contain the param names, rather the concatenated values. (oh and BTW SQL injection ?) :-)
http://www.aspsnippets.com/Articles/Exception---ORA-01036-illegal-variable-namenumber.aspx
V.
27-Aug-14 8:51am
View
See answer of Rob Grainger which seems to work ;-)
V.
27-Aug-14 8:51am
View
Looks like this is working. Thanks!
V.
27-Aug-14 6:11am
View
thanks, I'll look into it!
V.
27-Aug-14 3:54am
View
true, but I did state I wanted the pixels -inside- the shape, not the shape itself... I updated the question to be more clear.
V.
27-Aug-14 3:43am
View
mmm, I'm not following where you want to go with this. The image is a drawing of sunspots. The user can (today) draw a rectangle around a sunspot group and the application will detect the "dirty" pixels (that make out the sunspots) and do some calculations on it. There are, however, unwanted features on these drawings (written text eg) which we could take out if we were using a polyline shape instead of a rectangle.
I'm not sure how your solution will solve this. (it could be I don't understand ;-))
V.
26-Aug-14 6:33am
View
Before anyone can even attempt to help you, please give more details. What library are you using? Are you doing a postback. Is the library client or server side? Are you doing a redraw of the chart? is it giving an error message? What do you mean with it doesn't show? ...
V.
8-Aug-14 8:04am
View
the code is in the link provided, from there you can find out how it works.
V.
23-Jun-14 7:38am
View
Avoid having "keywords" as column names as it can give you problems.
Secondly were is it going wrong? Can you step into the code until this line, hightlight "p.Field<double>("Number")", right-click and choose quickwatch. it will give you the value and the type normally. Decimal should convert to double without issues normally. Not sure how the let keyword reacts to this, can you remove it just to test?
[EDIT]It can very well be that decimal does not convert to double implicitly, so better check that indeed.[/EDIT]
V.
27-May-14 9:14am
View
add logs in the different steps of the application. When a slow search occurs, check the timestamps of each step to check what is taking so long.
V.
26-May-14 7:48am
View
also use \n\r instead of just \n
V.
26-May-14 5:55am
View
Think about the maximum security you'ld like. If you create an ecrypted file, your average user won't be able to handle it, but it is surprisingly easy to backwards engineer an application and derive the license system. So what you'ld like is that your application and your licensing system are independant.
V.
23-May-14 12:22pm
View
Only if you have a good tutor :-), but same goes for a good book vs bad book
V.
23-May-14 8:35am
View
I have no clue what you're trying to achieve or what the problem is. Please update your question.
V.
23-May-14 4:09am
View
You're welcome :-)
V.
23-May-14 4:08am
View
I see, but in that case you only need to change the array you pass into the split method like DamithSL showed...
V.
22-May-14 12:05pm
View
did you reload the page or the control?
V.
22-May-14 5:51am
View
Don´t post your question twice. It´s considered rude...
V.
22-May-14 3:50am
View
And what is the question? There is no question in your post...
V.
21-May-14 7:58am
View
Why should you read the value in and delete it afterwards?
You can always do it via two object, read it in a List object and then loop through the list adding to the dictionary object with the ContainsKey check. The List object is the copy of the list and the dictionary object your filtered copy. This is not an advanced object at all...
V.
21-May-14 3:39am
View
try passing a StringBuilder instead of a String.
V.
20-May-14 12:23pm
View
In that case you´ll need to use the api of Excel. There are many tutorials out there. You need to have excel installed on the pc that generates those files. Search for office automation or excel automation... Hope this helps.
V.
20-May-14 2:53am
View
euhm, no
You can check out this link : http://www.rent-acoder.com/ if you want the code provided for you.
One thing I can tell you is that the folder holding the files should be added to IIS as a virtual folder. Try that first and place some docx or pdf files in there. Then try to open via the browser...
V.
17-May-14 1:36am
View
This comment (and the ones below) do not really aid in anything ?
V.
15-May-14 8:59am
View
no problem. Did you downvote me for it? Seems strange that the answer is simultaniously downvoted and accepted... ;-)
V.
15-May-14 8:34am
View
Where are you stuck? Is the stored procedure running? Can´t you call the stored procedure? Is it returning a wrong value or can´t you set the values to the listview? (please update the question instead of replying to me ;-))
V.
12-May-14 8:10am
View
Where are you stuck? getting the image out of the database? Showing an image on the page ?
Please elaborate where you have a problem and what you've tried so far. (Please update the question, don't hit reply)
V.
9-May-14 9:03am
View
you're welcome.
V.
9-May-14 8:47am
View
thanks :-)
V.
6-May-14 9:40am
View
It has been a LONG time since I did Crystal reports, but I don't think your train of thought is correct here. Crystal Reports is pretty complex. I propose you search for a good samplecode and/or tutorial. There are several ways to create and populate reports each with its own ways of doing things.
My suggestion is to read up on this subject (Crystal Reports and Crystal Reports in .Net).
V.
8-Apr-14 4:22am
View
please elaborate a little on what you want. What did you already try, where are you stuck? What can and what can't you do ?
V.
7-Apr-14 8:11am
View
update the question please and be as thorough as possible (but stay compact)
V.
7-Apr-14 8:07am
View
That is a common issue. I always blame it on internal timing issues dus to optimizations for "release" compilation, but the truth is, I don't know. I just know that in some occasions there is a difference.
Glad it worked.
V.
7-Apr-14 7:33am
View
progress bar is a different control from the rest because it needs to update itself based on values. So it has som form of an inherent redraw. I had similar problems when using label updates simultaneously with progress bar updates.
Is the solution working then, or not?
V.
7-Apr-14 6:28am
View
please update the question to make your problem more clear. I have no idea what you want to achieve.
V.
25-Mar-14 10:20am
View
I'm not sure what you want exactly and if this is a client side control or server side and which of those id's you want. In the code behind some controls have the clientid property you can use for the client id and I think the name property will return the server side id of the control. You could do it through javascript as well, but probably you'll need to make sure the client id is not auto-generated in that case.
V.
24-Mar-14 10:21am
View
You need to be more specific, is there a database attached, what technology are you using. What is the exact problem? Where are you stuck... ? Which part of your code doesn't work?
V.
17-Feb-14 8:57am
View
I never did it, but an ex-colleague did. Apparently you need to use managed C++ as an interface between the unmanaged code and the managed code. They can't talk directly to each other.
Another thing you could do is make those calls "public" so they can be accessed with dynamic binding. (hope I'm explaining this correctly) Then you can use those function with a DllImport attribute. http://msdn.microsoft.com/en-us/library/aa984739(v=vs.71).aspx
I'm pretty sure there is an article about this topic.
V.
12-Feb-14 7:09am
View
fair enough, but perhaps you can update your question with what you do want? (unless the answer was already given of course)
V.
7-Feb-14 9:24am
View
Shouldn't it be INNER JOIN instead of JOIN ?
V.
7-Feb-14 3:50am
View
please update the code in the question (use the "pre" tags!), there is no formatting in the comments :-)
V.
7-Feb-14 3:17am
View
Can you try to clear out your question a bit, because it is very hard to understand what the exact problem is.
Also add what you have done and where you are stuck. What is the exact problem?
(PS: just update this question, you don't need to post a new one)
V.
31-Jan-14 6:18am
View
You are not listening to what I'm saying. So for the last time, There is insufficient information in your original post to intelligently respond to this. if my ASSUMPTION is correct LINQ does not seem to recognize the record as an existing one, but as a new one.
V.
31-Jan-14 5:30am
View
You need to assign a unique key to your student record. When you UPDATE a student, you have a key available and you perform an update, if you do not have a key available it concerns a a new record, hence an insert. Since you're working with LINQ (I assume) this is more or less done for you behind the scenes. The code you posted does not determine for any reader what is happening behind the scenes, but I stick with my first comment. "SubmitChanges" seems to think you're adding a new student.
V.
27-Jan-14 8:04am
View
See here for more on user controls: http://support.microsoft.com/kb/893667
You can create an instance of a user control dynamically and place it on the webpage. Each record can instantiate a new user control eg. The "cards" are equivalent to rows in a grid, with the same properties, but you can arrange and display those properties as you like. If you have never worked with user controls I'd recommend learning that before continuing the project...
V.
23-Jan-14 2:08am
View
I'm "guessing" you're still confused with DateTime and string. What is the error you get?
On which line?
DateTime mydts = (DateTime)dr["EndDate"];
or
row[1] = mydts.ToString("dd/MM/yyyy HH:mm:ss");
The safest (not necessarely the best) way to work here is:
if(dr["enddate"] != DBNull.Value){ //check if you didn´t receive a NULL value from the database (Which doesn´t equal the null from C#!)
string str_enddate = Convert.ToString(dr["EndDate"]);
if(!string.IsNullOrEmpty(str_enddate)){
DateTime enddts;
bool success = DateTime.TryParseExact(/*don´t know the exact arguments by heart last one is "out enddts"*/);
if(success){
row[1] = enddts; //since you defined it as typeof(System.DateTime)
}
}
}
apologies for the lack of formatting, not possible in comments.
V.
22-Jan-14 15:00pm
View
:-)
V.
22-Jan-14 11:30am
View
thx :-)
V.
14-Nov-13 2:21am
View
That has nothing to do with it. Each control has a client id, if none is assigned, asp.net will assign one. Open the web page and do a view source to see for yourself. As I said before, if you have never done so before, start a prototype test project. First set a checkbox to see how it works (client/server side code), then move on to a more complex situation similar to what you have here. Then you can incorperate that solution into this one.
V.
13-Nov-13 7:53am
View
each server control gets a client id when the page is built. I even think this is a property (ClientID or something) With that clientid you can use javascript to manipulate the control, in case of a checkbox: document.getElementById("mycliendid").checked = true; //or false
I propose to startup a small prototype project to get the hang of how to let server side and client side "work together".
The rest of the business logic is up to you, I don't know the specifications of your project.
V.
1-Jul-13 15:18pm
View
More dynamic for starters. If you really wish to use a method to fill in the properties I would call it differently, like setChicory() or something. But methods, IMHO is something you use to DO something. You could argue that setting properties is doing something, but I´m rather talking about performing algorithms. eg. Class car has a property speed, color, etc.. it also has a method Accelerate(...). One would think it just changes the property speed, but not necessarely only that. Accelerating DOES something, perhaps it also changes the throttle, the range (mileage), ... . Hope that explains a bit what I mean. Chicory, in this case looks rather a property than something the weed does. (Grow() would be an example of Weed method)
V.
1-Jul-13 8:59am
View
Sergey, play nicer please...
V.
1-Jul-13 8:53am
View
You're welcome :-).
V.
3-Jun-13 5:22am
View
Please set some indenting on your code (try spaces instead of tabs).
What do you mean by "when I add sql command" ?
V.
3-Jun-13 5:19am
View
Your question is too vague. is this menu from your own application or something else? Is it the same window or another? What do you mean with "present on the screen"?
V.
30-May-13 3:15am
View
pssst, it´s "knew" that ;-)
V.
29-May-13 8:37am
View
If you say "pgp +batchmode C:\input.pgp\ -o C:\output.txt\" works in the command prompt. Why do you add "/C" before the command in code? Perhaps that's the culprit?
V.
28-May-13 8:14am
View
what have you done so far? Where are you stuck? Ask specific questions.
V.
28-May-13 8:12am
View
are you sending the string "connStr" to the connection and the string "query" to the command? That doesn't look right...
V.
22-May-13 5:41am
View
It doesn't work that way. What have you done so far? What is the exact problem, where are you stuck?
V.
21-May-13 8:37am
View
You're not clear. Why would you want to select 2 years and not 5 or 10 ? Or do you want to select the number of trees between year 1 and year 2 ? What dropdown list should be 'linked', what do you mean by that? Best example of linked lists are country, city, street options eg. it is indeed not that difficult.
V.
14-May-13 9:38am
View
You need to provide more info. What database, where are you stuck? What is the exact requirement, what is the exact problem? Do you get errors? Do you have a design issue, don't you know where to start?
Don't reply to this comment, just update the question with more information.
V.
14-May-13 5:59am
View
good work. :-)
V.
13-May-13 9:25am
View
Don't apologize, not necessary. it is just harder to correctly answer a question. if you do change the code, make sure it "fits". I don't thing the provided sample works ...
V.
19-Apr-13 2:16am
View
Agree with Jameel. You need to provide more info if you want an answer.
V.
18-Apr-13 7:57am
View
What event triggers the event handler? If you added the event handler on cell-click or row-click or something, then that's logical. You need to
- or tie the Button object to an event handler
- or find the appropriate cell and get the Button object out. Check the quickwatch option in debug to play around with the objects.
V.
10-Apr-13 9:30am
View
try google? Seriously, this is not the forum (nor will you find one at that) to ask these kind of questions. Break down your request in sub-problems, search and try for a solution for each sub-problem and come back when you have a -specific- issue with coding.
V.
9-Apr-13 5:36am
View
I think you'll need to improve your question, because I have no idea what you want to achieve. You're using a standard serialization function, but you want to customize part of the serialization is that it?
V.
8-Apr-13 5:48am
View
what have you tried? What is given an error or unexpected result? You'll need to provide more details if you want to receive an answer.
V.
8-Apr-13 3:36am
View
Make sure the value of e.CommandArgument is parsable as Decimal. if there it contains letters or signs other then + or - it will fail. You can set a breakpoint on that line. Then when it breaks, select Request.QueryString["ValueTypeId"] and right-click. Select quickwatch from the dropdown and check what's in the value.
V.
5-Apr-13 4:10am
View
What did you do? If you're stuck with a big problem, try breaking it down into smaller problems:
1: Can you build a grid from code? Create a prototype solution and start with hardcoded values, then strip as much as you can to dynamic values
2: Can you read data from a database? Can you write to it? Create a prototype solution and start with selecting, updating and deleting values.
3: before jumping to merging 1 and 2. THINK. What does it need to do and what will it need to do next year, the year after that? What data needs to be in the database, what types and how will I structure it ? From the database design start coding the access to it (step 2). Once you have the data, create a "grid builder" that handles the translation from objects to a grid (step 1). Then go backward again: grid to object to database.
V.
29-Mar-13 8:13am
View
May I suggest you start with a "hello world" program and start working your way up from there. If you can't add an event handler to a button click event, this exercise is too difficult to you.
V.
29-Mar-13 8:10am
View
You should be able to deduce the code from the tips I gave you. I would send code if I had a sample lying around, but I would have to write one from scratch myself.
V.
29-Mar-13 7:03am
View
And how are the marks calculated? Do you get negative points for wrong answers? How many points for a correct answer? Have you managed to handle the submit event handler? Where does the students name come from? Add more info before we can help you.
V.
28-Mar-13 9:36am
View
still running without a flaw. I'm not 100% happy with it either, but as I said, I'n not going to start debugging the libraries.
V.
28-Mar-13 9:32am
View
found a workaround. You mentioning "memory leak" put me on the right track :-).
V.
28-Mar-13 4:14am
View
looking into that know. thanks. Posting relevant code is difficult: I don't yet know what the relevant code is, but I'm searching for it...
V.
27-Mar-13 14:41pm
View
First things I tried, but to no avail.
thanks anyway.
V.
27-Mar-13 14:07pm
View
I know.
V.
27-Mar-13 12:10pm
View
Hi Sergey. That would be very difficult. I don´t know how to reproduce it. I use my website and there is no problem. If I don´t attend it for a while, chrome suddenly shows the aw snap page. I put breakpoints in the server code, but it´s not getting there. Apparently it looks like a chrome issue, but I would like to find the root cause. Giving code, sure, but I would need to know what part causes the issue, which I don´t know, yet.
V.
19-Mar-13 3:55am
View
it doesn't work that way here at codeproject. I gave you more direction on where to look, you can start investigating by reading on http://msdn.microsoft.com/en-us/ or trying google or the articles here on codeproject. Create a prototype application of what you would like to achieve and come back here if you encounter a specific problem.
No one here on codeproject will give you "code" for an entire application.
V.
14-Mar-13 4:23am
View
Dear amit, What experience do you have with .Net? If you haven't figured out the link between a textbox (textarea does not even exist!) and a button I doubt you ever had a course or opened a book about C#. My advise to you is, start reading and start with a "Hello World" program and work up from there. I doubt you know what classes are, what encapsulation and polymorphism is and so on and so forth.
V.
13-Mar-13 10:02am
View
This is advise on an entire application. Please investigate by reading up on the material and asking specific questions when you get stuck. What is it, you can't do ?
For the record, I wrote exactly that kind of application when I was still a junior, everything you need is out there.
V.
13-Mar-13 2:53am
View
There is a property ClientId I believe that allows you to control the clientid for your control.
V.
20-Feb-13 11:14am
View
Well at least you know JQuery blocks events in some cases. That at least should give you some direction. :-)
Best of luck.
V.
20-Feb-13 9:20am
View
Not that I have found, else I would have told you. Maybe someone else has a better option.
V.
19-Feb-13 8:44am
View
What are you trying to achieve? You want a list of all the filenames in the drop down, or do you want the contents of these files in the dropdown. Please be as specific as possible.
V.
14-Feb-13 9:38am
View
Good question. I read several books, most of them where rubbish, so can't help you there. I heard that O'Reilly's have good books. I can also suggest searching Amazon and especially check out the ratings. That doesn't mean you have to buy them there, but it will at least give a good idea. I read a good WPF book a while back (to advanced for starting), but basically it was good because it started out real simple (aka hello world) and ended up real deep. Make sure to browse the topics.
V.
11-Feb-13 7:32am
View
Be more specific. Is it winforms or a web application. What do you want to achieve, it is not 100% clear to me.
We're not mind readers, tell us what you want and where exactly you get stuck. Then we'll be glad to be of any assistance.
V.
5-Feb-13 12:20pm
View
No, I´m saying that if you´re comfortable with Windows OS, stick with it and go .Net. If you´re more comfortable with linux or MacOs you ,might want to go Java. In the end you might end up switching anyway, like I did, because it´s not about the language, but what your company wants to do IT wise. In my case, I was a .Net guy. I wanted to move to the science world and now I ended up doing java and python and the likes.
V.
19-Oct-12 6:11am
View
1. your post title is meaningless
2. what database are you working with?
3. Is it winforms, wpf or Asp.Net?
4. Where are you stuck exactly, have you tried anything yet or do you have trouble finding a starting point?
V.
19-Oct-12 6:09am
View
What database are you working with?
V.
21-Jul-12 15:59pm
View
I never worked with the viewmodel before, so I have no idea how your code is implemented. The ´easy´ way would be to make everything public, which is a very bad idea. It might be a better option to put the neccesarty selecteditems properties into an object and pass the object down to where you want to go. Note that the viewmodel is not really part of the user interface and as such should not know anything directly about any controls.
V.
20-Jul-12 10:16am
View
yes, the ´watch´ during debugging allows access to protected and private members. Those are not accessible during normal runtime.
V.
20-Jul-12 8:21am
View
Please stop posting the same question over and over. People will answer you *when* they can and *if* they want.
V.
16-Apr-12 8:32am
View
There, I cleaned it a little, it uses the same object you recommend so it shouldn't be hard for the OP to understand.
V.
16-Apr-12 8:25am
View
He asked how to send a mail via SMTP, which is what I did. I admit I could have cleaned it a little more, but the code is correct and working. I'm not perfect, just trying to help.
V.
16-Apr-12 7:44am
View
Added code to question in code tags.
V.
16-Apr-12 7:39am
View
Did you use the reply button? I happened to check back on this, but I never received a notification.
V.
16-Apr-12 5:16am
View
SqlHelper is that something you wrote yourself? I'm guessing you want to create a 'framework' assembly with often used functionality, right?
V.
13-Apr-12 11:17am
View
I've read the posts below and I see you're dilemma a little, it's probably a matter of wording, but If you have a private member in the base clase, it is not accessible by the deriving class and thus not 'inherited' (at least for me), however that does not mean that it is not instantiated or used in some way. The whole point in inheriting is that you can or use or override a certain behavior.
V.
13-Apr-12 9:53am
View
Although I do not claim to be perfect, I kinda doubt that if I have a member say: private int id in base class A, I can use it in a derived class B. same for a method. If you think otherwise, I'll gladly accept your reasoning behind this. Or we could misunderstand each completely on terminology.
V.
13-Apr-12 9:49am
View
Please read my answer... it starts with "false, ..."
V.
13-Apr-12 9:44am
View
If it's not even visible, do you think it is inherited?
V.
13-Apr-12 9:20am
View
If you have specific problems, yes. I will not however, write it for you.
V.
13-Apr-12 3:09am
View
Can you shorten your title and increase the text of the question?
Also please indicate where you're stuck. Are you able to insert any data in the database (eg normal string or integer) ?
V.
12-Apr-12 9:54am
View
do you have more code? (javascript function eg.) Comment everything in that function out and replace by "alert('test');" Now an alert box should appear. Then you at least know the call is correct and you jump into the function. You can work from there to find the problem.
V.
12-Apr-12 9:22am
View
What is the error? What is going wrong?
V.
12-Apr-12 6:54am
View
There's not much difference. Mind you, people don't mind answering homework questions, more the fact that homework questions are of the type "plz give code urgentzzz" while a simple google could do the trick. Reading your question I have to admit I also got the feeling you were being lazy. (maybe you are, maybe you're not)
V.
12-Apr-12 3:48am
View
Can you elaborate on the question? You want to use double buffering or what?
V.
11-Apr-12 7:17am
View
post your relevant piece of code?
Also please use full sentences (would, good, ...)
V.
10-Apr-12 9:23am
View
I have no clue what you have or what you're trying to achieve. Can you elaborate?
V.
3-Apr-12 4:46am
View
if there's not too much code in the Page_load event handler can you post that code here? (please use the code tags when posting code)
V.
30-Mar-12 8:51am
View
What have you tried? What technology are you using to create the report? (word, cognos, crystal reports, ...)
V.
30-Mar-12 6:02am
View
Which proves you haven't checked out the link very well as there was an example there. Please investigate issues yourself more thouroughly before posting here.
V.
30-Mar-12 3:52am
View
added "pre" tags.
V.
28-Mar-12 8:57am
View
You mean this: http://www.dotnetspider.com/forum/148751-How-get-difference-between-two-times-sql.aspx?
V.
21-Mar-12 3:21am
View
What do you mean by dynamically? You can load an existing report and pass parameters to it or you can create rpt files 'on the fly' by passing DataSources and define your report through code.
I recommend the first approach.
V.
20-Mar-12 9:24am
View
Tip: Try a small file like 2K or 3K in size. if you're using web services the size of the posts and responses is limited and you need to override it in the web.config.
V.
20-Mar-12 3:54am
View
what type is Result?
V.
19-Mar-12 10:55am
View
Don't worry, similar things happen to me :-)
V.
19-Mar-12 10:46am
View
Excuse me? Array size will be 7 index will go from 0 - 6.
V.
19-Mar-12 9:19am
View
I think you need to pass it as a parameter, not inline.
Inline is always dangerous btw. (look up : SQL injection)
In this case DBNull.Value will be serialized as a string and this is not what you want to do.
V.
19-Mar-12 9:07am
View
Added Code tags.
V.
19-Mar-12 6:28am
View
Please also post how you attempt to do it now and where the exact problem is.
V.
16-Mar-12 4:13am
View
Nice, didn't think of that. I'll check this out as well.
V.
15-Mar-12 3:01am
View
"I just made few more amendments in the page and checked" -> Do you still remember those ammendments? Remove them and check, then add one by one and check each time.
V.
14-Mar-12 9:08am
View
What should trigger the postback? Is there a button? Does it perform the postback (and it hangs during that postback) or is it even before postback that page becomes unresponsive?
V.
14-Mar-12 9:00am
View
What is the exact problem and what did you try to fix it?
V.
9-Mar-12 9:21am
View
What it the exact problem? Where are you stuck? What did you try?
V.
7-Mar-12 9:52am
View
What do you want exactly? A concatenated primary key like 100_T_uid or 100_F_uid ? (T/F = deleted true/false) I'm not following what you want or where you want to go.
V.
1-Mar-12 3:24am
View
Can you give us more info on 'why' you want this behaviour? Also, is this a web application or an winforms? Forcing a user to do use a dummy for anything is usually bad practice and re-designing might be something to consider.
Show More