Click here to Skip to main content

Comments by Abhinav S (Top 200 by date)

Abhinav S at 21-Sep-14 23:09pm View
   
Thanks.
Abhinav S at 12-Sep-14 23:33pm View
   
This is a repost.
Abhinav S at 3-Sep-14 22:48pm View
   
Thanks. Just imagine a fully working popup without any JavaScript. I found this article to be quite good.
Abhinav S at 3-Sep-14 22:48pm View
   
Yes. This would be much easier to implement. 5,
Abhinav S at 3-Sep-14 12:55pm View
   
5!
Abhinav S at 3-Sep-14 12:53pm View
   
Nope. It will handle System.Null.
Abhinav S at 3-Sep-14 3:24am View
   
Do you mean height of control or thickness of the border?
Abhinav S at 3-Sep-14 2:00am View
   
Thanks.
Abhinav S at 3-Sep-14 1:59am View
   
Cast can bad if the value is null.
Abhinav S at 2-Sep-14 23:28pm View
   
Thank you SA.
Abhinav S at 2-Sep-14 2:58am View
   
SA I have gone through your answer. I realize it is different to what I'm saying.
The initial question is about creating textboxes from the designer.
 
In this scenario, you would not want to load textboxes till the form_load event fires, since you would not be sure if all the textboxes have been instantiated. So your answer is ok for a textboxes generated at runtime, but not if textboxes are being created at design time. An alternate approach would be to create this array at the end of InitializeComponent() method but that is going to be a maintenance nightmare.
 
I agree that constructor is a better way than form_load.
Abhinav S at 2-Sep-14 1:04am View
   
I thought you might have a comment on 'top of a form' and I agree that is not mandatory but only good practice - since its easier to read.
As a result, I had put my comment "outside the methods" in brackets. :)
 
Also, you might like to read my answer little more carefully. I'm not saying 'avoid defining array', I'm saying 'avoid defining array in InitializeComponent'.
Abhinav S at 1-Sep-14 23:10pm View
   
5!
Abhinav S at 27-Aug-14 5:34am View
   
Debug. Which line do you get the error? That cell does not exist.
Abhinav S at 26-Aug-14 22:52pm View
   
Thank you SA.
Abhinav S at 26-Aug-14 22:52pm View
   
Thank you SA.
Abhinav S at 25-Aug-14 0:05am View
   
Well explained.
Abhinav S at 24-Aug-14 5:56am View
   
What are you having a problem with? Do you need help converting checkbox value to 0 or 1?
Abhinav S at 22-Aug-14 12:41pm View
   
5.
Abhinav S at 16-Aug-14 13:32pm View
   
You could disable caching in the browser.
Abhinav S at 16-Aug-14 6:32am View
   
Post that as another question. Maybe you will get better answers on that one.
Abhinav S at 16-Aug-14 6:32am View
   
Ok. Ignore my email then. :)
Abhinav S at 16-Aug-14 6:25am View
   
Hi Clarity Hunter - Request you to check my new answer. There is something called a component class.
Abhinav S at 16-Aug-14 6:20am View
   
Oops. Something new! Who uses component classes?
Abhinav S at 15-Aug-14 12:03pm View
   
What you need to pass is an object of a class containing all these values.
Hoewever, you can also try Tuple - http://msdn.microsoft.com/en-us/library/system.tuple%28v=vs.110%29.aspx.
Abhinav S at 15-Aug-14 9:44am View
   
What is your first query?
Abhinav S at 15-Aug-14 3:17am View
   
Case is something that the compiler will indicate by giving an error. I do not know why that should confuse the user.
The whole idea is to give it a try and solve the actual problem - without worrying too much about the details of case-sensitivity.
 
If the user had indeed made a mistake with case, then obviously, he has to be pointed in the right direction.
 
In questions like this one, case will not be important. What will be important is try to solve the real problem (which in this case was the null error).
Abhinav S at 15-Aug-14 0:30am View
   
Capitalization is for the OP to sort out.
Abhinav S at 14-Aug-14 2:44am View
   
Yes true.
Abhinav S at 13-Aug-14 11:08am View
   
5!
Abhinav S at 13-Aug-14 11:07am View
   
5!
Abhinav S at 13-Aug-14 11:03am View
   
What is the error?
Abhinav S at 10-Aug-14 1:58am View
   
What is the problem? Are you using other controls as well?
Abhinav S at 10-Aug-14 1:54am View
   
5 for the XKCD.
Abhinav S at 9-Aug-14 8:03am View
   
Yes but they would probably not be free.
Abhinav S at 9-Aug-14 6:22am View
   
Are you entering a valid date in the textbox?
Abhinav S at 2-Aug-14 0:51am View
   
5!
Abhinav S at 30-Jul-14 3:41am View
   
Its possible. Javascript has a Date.Parse() method.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse.
Other approaches - http://forums.asp.net/t/1861281.aspx?How+To+convert+string+into+datetime+in+javascript.
 
Calculating the difference between two dates - http://www.htmlgoodies.com/html5/javascript/calculating-the-difference-between-two-dates-in-javascript.html.
Abhinav S at 30-Jul-14 3:02am View
   
In my examples above, table name is same.
Abhinav S at 30-Jul-14 3:00am View
   
No. In your ASP.Net code.
Abhinav S at 30-Jul-14 2:29am View
   
5! Good point.
Abhinav S at 29-Jul-14 5:43am View
   
http://bhaveshgpatel.wordpress.com/2009/11/04/sql-server-list-all-constraints-of-database-or-table/
Abhinav S at 27-Jul-14 4:38am View
   
5!
Abhinav S at 27-Jul-14 2:42am View
   
Thank you SA.
Abhinav S at 26-Jul-14 9:48am View
   
Just declare it as a class level variable as use it across the form.
You don't need to use ref anywhere.
Abhinav S at 21-Jul-14 10:03am View
   
Yes this is required. If you use a converter (in Silverlight) in the same namespace for example, the reference needs to be added before using it.
Abhinav S at 18-Jul-14 3:19am View
   
Thank you Nirav.
Abhinav S at 29-Jun-14 0:28am View
   
Thank you SA.
Abhinav S at 28-Jun-14 8:44am View
   
Try something first.
Abhinav S at 28-Jun-14 8:13am View
   
5.
Abhinav S at 26-Jun-14 2:27am View
   
5!
Abhinav S at 26-Jun-14 2:27am View
   
5!
Abhinav S at 3-Jun-14 4:03am View
   
Thank you.
Abhinav S at 1-Jun-14 1:56am View
   
5/
Abhinav S at 29-May-14 0:58am View
   
5. I recommend windows service.
Abhinav S at 17-May-14 6:14am View
   
Thank you.
Abhinav S at 16-May-14 4:32am View
   
Sorry your question is not clear.
Abhinav S at 13-May-14 0:52am View
   
5!
Abhinav S at 13-May-14 0:52am View
   
5!
Abhinav S at 12-May-14 3:24am View
   
In that case, this question is wrong and you will get an compile error.
Abhinav S at 12-May-14 2:23am View
   
I would recommend you run this line in Java and check the output.
Abhinav S at 11-May-14 7:27am View
   
Try Server.MapPath("~\img\products\"+imgName");
Abhinav S at 11-May-14 0:51am View
   
Of course. 5.
Abhinav S at 10-May-14 4:28am View
   
Nope.
Abhinav S at 8-May-14 23:04pm View
   
Thank you Maciej.
Abhinav S at 5-May-14 22:51pm View
   
Thanks.
Abhinav S at 5-May-14 13:23pm View
   
5.
Abhinav S at 5-May-14 1:51am View
   
5!
Abhinav S at 4-May-14 6:00am View
   
Is this what the OP wants?
Abhinav S at 4-May-14 6:00am View
   
What is your selection criteria?
Abhinav S at 4-May-14 4:13am View
   
5!
Abhinav S at 3-May-14 3:44am View
   
Welcome. Mark as answered if it helped.
Abhinav S at 3-May-14 1:50am View
   
What have you tried so far?
Abhinav S at 2-May-14 14:33pm View
   
Thank you Maciej.
Abhinav S at 2-May-14 14:31pm View
   
Thank you.
Abhinav S at 2-May-14 14:25pm View
   
5.
Abhinav S at 2-May-14 13:11pm View
   
Deleted
This will work provided JQuery is being used.
Abhinav S at 2-May-14 12:55pm View
   
5.
Abhinav S at 2-May-14 4:16am View
   
5.
Abhinav S at 2-May-14 4:16am View
   
5.
Abhinav S at 2-May-14 4:15am View
   
Yep. 5.
Abhinav S at 2-May-14 4:15am View
   
Thank you.
Abhinav S at 2-May-14 4:11am View
   
5.
Abhinav S at 1-May-14 23:07pm View
   
Thank you.
Abhinav S at 29-Apr-14 1:34am View
   
I am aware of this SA. An interface can even contain events.
Abhinav S at 29-Apr-14 0:40am View
   
Done.
Abhinav S at 29-Apr-14 0:27am View
   
Done. String.Empty is what I meant. Thanks.
Abhinav S at 28-Apr-14 3:18am View
   
5!
Abhinav S at 25-Apr-14 4:54am View
   
More links. 5.
Abhinav S at 25-Apr-14 4:54am View
   
Thank you.
Abhinav S at 25-Apr-14 2:00am View
   
Try it on your own. Post issues here when you run into them.
Abhinav S at 24-Apr-14 7:59am View
   
5!
Abhinav S at 24-Apr-14 7:28am View
   
You are welcome.
Abhinav S at 22-Apr-14 3:19am View
   
Fair enough. Its a good tip.
Abhinav S at 22-Apr-14 3:10am View
   
Sorry. Try ,'')))=''''
Abhinav S at 22-Apr-14 3:09am View
   
Well that won't solve the error.
Abhinav S at 20-Apr-14 7:15am View
   
What kind of help?
Abhinav S at 19-Apr-14 0:44am View
   
He can use the book for studying for the certification.
Whether certifications themselves are useful or not is a topic of debate.
Abhinav S at 17-Apr-14 4:51am View
   
Try these solutions -
https://egghead.io/lessons/angularjs-sharing-data-between-controllers
https://gist.github.com/exclsr/3595424
Abhinav S at 17-Apr-14 2:39am View
   
What query are you using?
Abhinav S at 16-Apr-14 5:02am View
   
Thank you SA.
Abhinav S at 16-Apr-14 2:00am View
   
5. I have provided OP with some links on alternate controls.
Abhinav S at 15-Apr-14 14:11pm View
   
If the customer has another system, then its useful to install the database on that system.
If you are building a database only for one customer, you could consider using MSAccess?
Abhinav S at 14-Apr-14 14:21pm View
   
http://designscrazed.com/html5-jquery-file-upload-scripts/
Abhinav S at 14-Apr-14 14:21pm View
   
You are welcome.
Abhinav S at 14-Apr-14 13:45pm View
   
5!
Abhinav S at 14-Apr-14 0:36am View
   
5! More links in alternate answer.
Abhinav S at 13-Apr-14 11:42am View
   
Thank you.
Abhinav S at 8-Apr-14 13:07pm View
   
Thank you.
Abhinav S at 8-Apr-14 7:58am View
   
Vote if it helped.
Abhinav S at 7-Apr-14 1:54am View
   
The OP is looking for a solution that uses reflection.
Abhinav S at 6-Apr-14 22:53pm View
   
5!
Abhinav S at 6-Apr-14 5:28am View
   
No one can give you the exact code.
Try that on your own.
 
My suggestion is to debug and check what is going on.
Abhinav S at 6-Apr-14 5:27am View
   
You are welcome.
Abhinav S at 6-Apr-14 2:29am View
   
5!
Abhinav S at 5-Apr-14 6:28am View
   
Mark as answered if it helped. Thanks.
Abhinav S at 5-Apr-14 0:46am View
   
10 MB? Try 10485760.
Abhinav S at 4-Apr-14 0:09am View
   
Thank you SA. My 5 for the article.
 
Just got the news though that the first such power plant has been hacked!
Abhinav S at 3-Apr-14 13:43pm View
   
Vote if it helped.
Abhinav S at 3-Apr-14 7:17am View
   
Thank you.
Abhinav S at 3-Apr-14 6:39am View
   
Nope without credentials copy would not work.
Abhinav S at 2-Apr-14 22:59pm View
   
Thank you Maciej.
Abhinav S at 2-Apr-14 13:31pm View
   
5.
Abhinav S at 2-Apr-14 13:21pm View
   
Reason for my vote of 5 \n 5
Abhinav S at 2-Apr-14 13:16pm View
   
Thank you.
Abhinav S at 1-Apr-14 4:16am View
   
Vote if this answer helped.
Abhinav S at 1-Apr-14 4:16am View
   
And adds two sets of conditions. Where is to indicate filters on the table.
 
Abhinav S at 1-Apr-14 3:39am View
   
Thank you.
Abhinav S at 31-Mar-14 11:26am View
   
5.
Abhinav S at 31-Mar-14 11:26am View
   
Thank you.
Abhinav S at 31-Mar-14 2:39am View
   
Check the links in the answer for examples.
Abhinav S at 31-Mar-14 2:36am View
   
5!
Abhinav S at 31-Mar-14 2:10am View
   
Vote or mark as answered if it helped.
Abhinav S at 29-Mar-14 14:12pm View
   
5!
Abhinav S at 29-Mar-14 6:24am View
   
http://www.w3schools.com/js/tryit.asp?filename=tryjs_lengthvalidate
Abhinav S at 27-Mar-14 23:03pm View
   
5!
Abhinav S at 27-Mar-14 23:03pm View
   
Thanks for pointing that out SA.
Abhinav S at 27-Mar-14 1:53am View
   
You can give two conditions by using an AND clause.
Abhinav S at 26-Mar-14 23:09pm View
   
Vote or mark as answered if this helped.
Abhinav S at 23-Mar-14 14:27pm View
   
Thank you.
Abhinav S at 23-Mar-14 13:30pm View
   
Thank you SA.
Abhinav S at 23-Mar-14 2:19am View
   
Thank you BillWood ji.
Abhinav S at 23-Mar-14 0:48am View
   
5.
Abhinav S at 22-Mar-14 2:45am View
   
Thank you SA.
Abhinav S at 22-Mar-14 2:44am View
   
Thank you.
Abhinav S at 20-Mar-14 8:03am View
   
Percentage % cannot be converted to an integer.
Abhinav S at 20-Mar-14 3:58am View
   
Thanks.
Abhinav S at 20-Mar-14 1:56am View
   
Thanks.
Abhinav S at 20-Mar-14 1:56am View
   
Mark as answered if it helped.
Abhinav S at 19-Mar-14 4:32am View
   
That is correct. 5.
Abhinav S at 19-Mar-14 4:15am View
   
Intent is to make the OP reealize he has to use box brackets. He can figure out the rest himself.
Abhinav S at 19-Mar-14 3:48am View
   
He can check for his conditions within this loop.
For e.g. if conditions are based on values, he can check these values and then hide / unhide accordingly.
Abhinav S at 19-Mar-14 3:47am View
   
Thank you.
Abhinav S at 18-Mar-14 4:04am View
   
Which report are you using?
Abhinav S at 18-Mar-14 2:40am View
   
5.
Abhinav S at 18-Mar-14 2:40am View
   
Thank you.
Abhinav S at 17-Mar-14 13:37pm View
   
Thank you.
Abhinav S at 17-Mar-14 13:14pm View
   
5.
Abhinav S at 17-Mar-14 3:28am View
   
Vote if it helps.
Abhinav S at 17-Mar-14 3:22am View
   
http://forums.asp.net/t/1900487.aspx?MVC+4+how+to+create+dynamic+controls
Abhinav S at 16-Mar-14 8:01am View
   
Thank you.
Abhinav S at 16-Mar-14 7:31am View
   
Seemed to have been an issue with the file being open in another program.
Abhinav S at 16-Mar-14 7:25am View
   
Do the concatenation at the database level itself.
lblFirstName.Text = Convert..ToString(reader["FullName"]);
 
lblFirstName will then contain the full name.
Abhinav S at 16-Mar-14 7:13am View
   
Of course. 5.
Abhinav S at 16-Mar-14 7:05am View
   
Oh..Did not know it was a repost.
Abhinav S at 16-Mar-14 7:01am View
   
Thank you Maciej.
Abhinav S at 16-Mar-14 3:26am View
   
You can call javascript from .Net. That's the idea.
Abhinav S at 16-Mar-14 3:26am View
   
If you are using forms authentication, you will need to sign in first. Only then, you can check for login state.
Abhinav S at 16-Mar-14 2:50am View
   
Comment from OP - "thanks for this solution, but I have that error yet."
Abhinav S at 15-Mar-14 12:34pm View
   
Thank you.
Abhinav S at 15-Mar-14 12:28pm View
   
Thanks. Now i did.
Abhinav S at 15-Mar-14 12:28pm View
   
5.
Abhinav S at 15-Mar-14 7:12am View
   
This is not a solution. Post your own question.
Abhinav S at 13-Mar-14 6:37am View
   
Thanks.
Abhinav S at 11-Mar-14 13:07pm View
   
Thank you SA.
Abhinav S at 11-Mar-14 12:37pm View
   
<td></td>
Abhinav S at 11-Mar-14 12:26pm View
   
If it is the last row echo the radio button <td> instead of the normal text td.
Abhinav S at 10-Mar-14 14:11pm View
   
Thank you.
Abhinav S at 10-Mar-14 14:09pm View
   
5!
Abhinav S at 10-Mar-14 4:13am View
   
My 5.
Abhinav S at 10-Mar-14 4:13am View
   
Thank you SA.
Abhinav S at 9-Mar-14 6:04am View
   
If you use unmanaged code, you need to deallocate memory yourself.
Abhinav S at 9-Mar-14 6:02am View
   
Thanks. Nope you cant get the 1 back. Try c = "1";
But this is not a guarantee since the old 1 may already have been collected.
Abhinav S at 9-Mar-14 6:01am View
   
Thank you.
Abhinav S at 9-Mar-14 4:09am View
   
Clean does exist. http://msdn.microsoft.com/en-us/library/5tdasz7h%28v=vs.90%29.aspx
Abhinav S at 9-Mar-14 3:33am View
   
If you are using a database, then write a query to retrieve values from the database.
If its only a report, then open the file and display it.
Abhinav S at 9-Mar-14 3:10am View
   
Dont use the normal command prompt.
Use VIsual Studio's command prompt. Go to start menu/Visual Studio 2008 and locate the command prompt window.
Abhinav S at 9-Mar-14 2:02am View
   
5.
Abhinav S at 9-Mar-14 1:52am View
   
5.
Abhinav S at 8-Mar-14 11:22am View
   
max(recid) should work. What challenge are you facing?
Abhinav S at 6-Mar-14 23:45pm View
   
My 4 this time. Some links to help the OP understand would be useful.
Abhinav S at 6-Mar-14 22:19pm View
   
I saw your comment and removed my answer. Don't know what i was typing! :)
Stupid of me.
 
But in any case, such an error should not be too difficult to trace. Look at the line number, check the variable and fix - simple.
Abhinav S at 6-Mar-14 22:17pm View
   
Thank you.
Abhinav S at 4-Mar-14 11:40am View
   
https://vikasrao.wordpress.com/tag/compare-2-arrays-javascript/
Abhinav S at 4-Mar-14 11:27am View
   
Thank you SA.
Abhinav S at 4-Mar-14 11:07am View
   
5. I recommended a slightly different approach though.
Abhinav S at 1-Mar-14 11:53am View
   
Thank you.
Abhinav S at 1-Mar-14 4:58am View
   
Handle any event you want to.
Abhinav S at 28-Feb-14 2:57am View
   
The calendarExternder should return a DateTime type. Same properties can be applied to this date time field.
Abhinav S at 27-Feb-14 2:43am View
   
What errors?

Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid